linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: PROMBLEM: CD burning at 16x uses excessive CPU, although DMA is enabled
@ 2002-04-09 20:06 Roger Larsson
  2002-04-09 20:27 ` Andre Hedrick
  0 siblings, 1 reply; 15+ messages in thread
From: Roger Larsson @ 2002-04-09 20:06 UTC (permalink / raw)
  To: Anssi Saari; +Cc: linux-kernel, Mark Mielke

On tisdagen den 9 april 2002 12.01, Anssi Saari wrote:
> On Mon, Apr 08, 2002 at 06:02:55PM -0400, Mark Hahn wrote:
> > I think someone else already pointed out that doing
> > a kernel profile would be good.  strace would also
> > be quite useful, even just the -c form.
>
> Here it is:
>
> With unmaskirq=1 first:
>
>
>     49 handle_IRQ_event                           0.5104
>    239 file_read_actor                            2.4896
>   3324 default_idle                              69.2500
>  20097 ide_output_data                          104.6719

Hey, what is this?

Comment of the function is:
"This is used for most PIO data transfers *to* the IDE interface"
(see /drivers/ide/ide.c:426)
Has it reverted to PIO mode?

Some information might be found with
# more /proc/ide/hd*/settings

This is how mine look like
cat /proc/ide/hdc/settings
name                    value           min             max             mode
----                    -----           ---             ---             ----
bios_cyl			0               0               1023            rw
bios_head		0               0               255             rw
bios_sect		0               0               63              rw
current_speed	66              0               69              rw
ide_scsi		0               0               1               rw
init_speed		66              0               69              rw
io_32bit			0               0               3               rw
keepsettings	0               0               1               rw
log				0               0               1               rw
nice1			1               0               1               rw
number			2               0               3               rw
pio_mode		write-only      0               255             w
slow			0               0               1               rw
transform		1               0               3               rw
unmaskirq		1               0               1               rw
using_dma		1               0               1               rw

>  23952 total                                      0.0236
> Number of interrupts on ide1 during burn: 17531
>
> And then, unmaskirq=0:
>
> - - -
>    168 do_softirq                                 0.9545
>    234 file_read_actor                            2.4375
>   1942 handle_IRQ_event                          20.2292
>   2949 default_idle                              61.4375
>   6808 ide_intr                                  18.5000
>  12333 total                                      0.0122
> Number of interrupts on ide1 during burn: 17532

This looks like mine results. Quite some time spent in interrupt
routines. (weighted 38%)
Using or not using unmaskirq does not matter for me:
It stays below 40%, but I do only run at 10x (40% is quite much
for any disk bound operation...)

I will attempt a profiling while unmasked too.

I assume you also use ide_scsi, right?

/RogerL

--
Roger Larsson
Skellefteå
Sweden


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2002-08-31 16:23 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-09 20:06 PROMBLEM: CD burning at 16x uses excessive CPU, although DMA is enabled Roger Larsson
2002-04-09 20:27 ` Andre Hedrick
2002-04-10  9:10   ` Matthias Andree
2002-04-14 12:39   ` Anssi Saari
2002-08-30  4:33     ` PROBLEM: CD burning at 12x " Sergio Bruder
2002-08-30  4:48       ` Sergio Bruder
2002-08-30  6:14       ` Markus Plail
2002-08-30  6:51         ` Anssi Saari
2002-08-30  7:27           ` Markus Plail
2002-08-30 15:42             ` Anssi Saari
2002-08-30 16:58               ` Markus Plail
2002-08-30 21:22                 ` Sergio Bruder
2002-08-31 16:29                 ` Anssi Saari
2002-08-30  6:41       ` Andre Hedrick
2002-08-30 12:59         ` Henrique de Moraes Holschuh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).