Re: PROMBLEM: CD burning at 16x uses excessive CPU, although DMA is enabled

Bill Davidsen (davidsen@tmr.com)
Mon, 8 Apr 2002 13:35:35 -0400 (EDT)


On Mon, 8 Apr 2002, Anssi Saari wrote:

> On Mon, Apr 08, 2002 at 10:54:29AM -0400, Bill Davidsen wrote:
> > On Mon, 8 Apr 2002, Anssi Saari wrote:
> >
> > > [1.] One line summary of the problem:
> > > CD burning at 16x uses excessive CPU, although DMA is enabled
> >
> > That's a hint things are not working as you expect...
> >
> > > [2.] Full description of the problem/report:
> > > My system seems to use a lot of CPU time when writing CDs at 16x. The
> > > system is unable to feed the burning software's buffer fast enough when
> > > burning software (cdrecord 1.11a20, cdrdao 1.1.5) is run as normal user.
> > > If run as root, system is almost unresponsive during the burn.
> >
> > With all the information you provided, you have totally not quatified
> > how much CPU you find "excessive."
>
> I didn't really know how to put it. Maybe system load would be better. But
> the actual problem is, I effectively can't burn audio and other types
> at 16x in Linux, while there is no problem in some other operating systems
> with the same hardware and applications.
>
> Here're some time figures from cdrdao:
>
> cdrdao simulate -n --speed 8 foo.cue 2.62s user 3.37s system 1% cpu 6:41.86 total
> cdrdao simulate -n --speed 12 foo.cue 2.78s user 29.91s system 12% cpu 4:31.71 total
> cdrdao simulate -n --speed 16 foo.cue 2.67s user 128.77s system 52% cpu 4:10.68 total
>
> So yes, system time goes up quite steeply.

Okay, this is good information. At the risk of asking a dumb question,
are you sure that both the burner and the source drive ar using DMA? And
that they are on separate cables (controllers)? Usually the high system
time indicated either PIO in use or some path looping in the kernel.

> cdrdao simulate -n --speed 16 foo.cue 2.75s user 75.18s system 58% cpu
> 2:13.22 total

That's still high. My only fast burners are in the office, if I get back
during the week I'll run a test at 16 and 24x and see what I find.

This would be a good question for the CD writing list,
cdwrite@other.debian.org.

-- 
bill davidsen <davidsen@tmr.com>
  CTO, TMR Associates, Inc
Doing interesting things with little computers since 1979.

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/