2003-07-29 12:02:36

by Stefano Rivoir

[permalink] [raw]
Subject: Disk performance degradation

00:00.0 Host bridge: Intel Corp. 82830 830 Chipset Host Bridge (rev 04)
Subsystem: Intel Corp.: Unknown device 1969
Flags: bus master, fast devsel, latency 0
Memory at <unassigned> (32-bit, prefetchable)
Capabilities: [40] #09 [2105]

00:02.0 VGA compatible controller: Intel Corp. 82830 CGC [Chipset Graphics Controller] (rev 04) (prog-if 00 [VGA])
Subsystem: Hewlett-Packard Company: Unknown device 0021
Flags: bus master, fast devsel, latency 0, IRQ 9
Memory at e8000000 (32-bit, prefetchable) [size=128M]
Memory at e0000000 (32-bit, non-prefetchable) [size=512K]
Capabilities: [d0] Power Management version 1

00:02.1 Display controller: Intel Corp. 82830 CGC [Chipset Graphics Controller]
Subsystem: Hewlett-Packard Company: Unknown device 0021
Flags: bus master, fast devsel, latency 0
Memory at f0000000 (32-bit, prefetchable) [size=128M]
Memory at e0080000 (32-bit, non-prefetchable) [size=512K]
Capabilities: [d0] Power Management version 1

00:1d.0 USB Controller: Intel Corp. 82801CA/CAM USB (Hub #1) (rev 02) (prog-if 00 [UHCI])
Subsystem: Hewlett-Packard Company: Unknown device 0021
Flags: bus master, medium devsel, latency 0, IRQ 9
I/O ports at 1800 [size=32]

00:1d.1 USB Controller: Intel Corp. 82801CA/CAM USB (Hub #2) (rev 02) (prog-if 00 [UHCI])
Subsystem: Hewlett-Packard Company: Unknown device 0021
Flags: bus master, medium devsel, latency 0, IRQ 5
I/O ports at 1820 [size=32]

00:1d.2 USB Controller: Intel Corp. 82801CA/CAM USB (Hub #3) (rev 02) (prog-if 00 [UHCI])
Subsystem: Hewlett-Packard Company: Unknown device 0021
Flags: bus master, medium devsel, latency 0, IRQ 5
I/O ports at 1840 [size=32]

00:1e.0 PCI bridge: Intel Corp. 82801BAM/CAM PCI Bridge (rev 42) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0
Bus: primary=00, secondary=02, subordinate=02, sec-latency=64
I/O behind bridge: 00002000-00002fff
Memory behind bridge: e0200000-e02fffff

00:1f.0 ISA bridge: Intel Corp. 82801CAM ISA Bridge (LPC) (rev 02)
Flags: bus master, medium devsel, latency 0

00:1f.1 IDE interface: Intel Corp. 82801CAM IDE U100 (rev 02) (prog-if 8a [Master SecP PriP])
Subsystem: Hewlett-Packard Company: Unknown device 0021
Flags: bus master, medium devsel, latency 0, IRQ 5
I/O ports at <ignored>
I/O ports at <ignored>
I/O ports at <ignored>
I/O ports at <ignored>
I/O ports at 1860 [size=16]
Memory at e0100000 (32-bit, non-prefetchable) [size=1K]

00:1f.3 SMBus: Intel Corp. 82801CA/CAM SMBus (rev 02)
Subsystem: Hewlett-Packard Company: Unknown device 0021
Flags: medium devsel, IRQ 9
I/O ports at 1880 [size=32]

02:02.0 Communication controller: ESS Technology ES2838/2839 SuperLink Modem (rev 01)
Subsystem: Hewlett-Packard Company: Unknown device 0020
Flags: fast devsel, IRQ 5
I/O ports at 2440 [size=16]
Capabilities: [c0] Power Management version 2

02:03.0 Multimedia audio controller: ESS Technology ES1988 Allegro-1 (rev 12)
Subsystem: Hewlett-Packard Company: Unknown device 0021
Flags: bus master, medium devsel, latency 64, IRQ 5
I/O ports at 2000 [size=256]
Capabilities: [c0] Power Management version 2

02:04.0 CardBus bridge: O2 Micro, Inc. OZ6933 Cardbus Controller (rev 01)
Subsystem: Hewlett-Packard Company: Unknown device 0021
Flags: stepping, slow devsel, IRQ 9
Memory at 10000000 (32-bit, non-prefetchable) [disabled] [size=4K]
Bus: primary=02, secondary=03, subordinate=06, sec-latency=176
I/O window 0: 00000000-00000003
I/O window 1: 00000000-00000003
16-bit legacy interface ports at 0001

02:04.1 CardBus bridge: O2 Micro, Inc. OZ6933 Cardbus Controller (rev 01)
Subsystem: Hewlett-Packard Company: Unknown device 0021
Flags: stepping, slow devsel, IRQ 9
Memory at 10001000 (32-bit, non-prefetchable) [disabled] [size=4K]
Bus: primary=02, secondary=07, subordinate=0a, sec-latency=176
I/O window 0: 00000000-00000003
I/O window 1: 00000000-00000003
16-bit legacy interface ports at 0001

02:08.0 Ethernet controller: Intel Corp. 82801CAM (ICH3) PRO/100 VE (LOM) Ethernet Controller (rev 42)
Subsystem: Hewlett-Packard Company: Unknown device 0021
Flags: bus master, medium devsel, latency 66, IRQ 10
Memory at e0200000 (32-bit, non-prefetchable) [size=4K]
I/O ports at 2400 [size=64]
Capabilities: [dc] Power Management version 2


Attachments:
.config.2.4 (24.26 kB)
.config.2.6 (21.34 kB)
lspci.txt (4.17 kB)
Download all attachments

2003-07-29 16:20:25

by Voluspa

[permalink] [raw]
Subject: Re: Disk performance degradation


On 2003-07-29 12:00:06 Stefano Rivoir wrote:

> Is there something I'm missing?!

No, you are not ;-) You can reclaim some speed by doing a "hdparm -a
512". See thread for explanation (it's the borked value for readahead):

http://marc.theaimsgroup.com/?l=linux-kernel&m=105830624016066&w=2

Mvh
Mats Johannnesson

2003-07-29 16:50:47

by Lou Langholtz

[permalink] [raw]
Subject: Re: Disk performance degradation

Voluspa wrote:

>On 2003-07-29 12:00:06 Stefano Rivoir wrote:
>
>
>
>>Is there something I'm missing?!
>>
>>
>
>No, you are not ;-) You can reclaim some speed by doing a "hdparm -a
>512". See thread for explanation (it's the borked value for readahead):
>
>http://marc.theaimsgroup.com/?l=linux-kernel&m=105830624016066&w=2
>
Anyone want to field why we aren't we just setting the default to 512 so
users don't need to adjust this? I'm sure there's a good reason... I'd
just like to know what it is ;-)

2003-07-30 05:05:58

by Voicu Liviu

[permalink] [raw]
Subject: Re: Disk performance degradation

Lou Langholtz wrote:
> Voluspa wrote:
>
>> On 2003-07-29 12:00:06 Stefano Rivoir wrote:
>>
>>
>>
>>> Is there something I'm missing?!
>>>
>>
>>
>> No, you are not ;-) You can reclaim some speed by doing a "hdparm -a
>> 512". See thread for explanation (it's the borked value for readahead):
>>
>> http://marc.theaimsgroup.com/?l=linux-kernel&m=105830624016066&w=2
>>
> Anyone want to field why we aren't we just setting the default to 512 so
> users don't need to adjust this? I'm sure there's a good reason... I'd
> just like to know what it is ;-)
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
Good Idea, what could be the reason?

--
Voicu Liviu
Rothberg International School
Computation center, Mount Scopus
Hebrew University of Jerusalem
Tel: 972(2)-5881253
E-mail: [email protected]

Operating System: Linux Gentoo1.4 ( http://www.gentoo.org )

Click here to see my GPG signature:
http://search.keyserver.net:11371/pks/lookup?template=netensearch%2Cnetennomatch%2Cnetenerror&search=pacman%40mscc.huji.ac.il&op=vindex&fingerprint=on&submit=Get+List

2003-07-30 08:50:53

by Stefano Rivoir

[permalink] [raw]
Subject: Re: Disk performance degradation

Voluspa wrote:

> On 2003-07-29 12:00:06 Stefano Rivoir wrote:
>
>
>>Is there something I'm missing?!
>
>
> No, you are not ;-) You can reclaim some speed by doing a "hdparm -a
> 512". See thread for explanation (it's the borked value for readahead):

Thanks for the hint. This seems to make things a little better, but I'm
still far away from 2.4 performances. I thought that anticipatory sched
could be part of the problem, and booting with elevator=deadline
does a little better... but using 2.4 is completely another thing.
By the way, -a 512 vs -a 8 is a kernel "change" or an hdpam one?

Bye

--
Stefano RIVOIR
GTS Srl



2003-07-30 10:55:05

by Andrew Morton

[permalink] [raw]
Subject: Re: Disk performance degradation

Stefano Rivoir <[email protected]> wrote:
>
> Voluspa wrote:
>
> > On 2003-07-29 12:00:06 Stefano Rivoir wrote:
> >
> >
> >>Is there something I'm missing?!
> >
> >
> > No, you are not ;-) You can reclaim some speed by doing a "hdparm -a
> > 512". See thread for explanation (it's the borked value for readahead):
>
> Thanks for the hint. This seems to make things a little better, but I'm
> still far away from 2.4 performances. I thought that anticipatory sched
> could be part of the problem, and booting with elevator=deadline
> does a little better... but using 2.4 is completely another thing.
> By the way, -a 512 vs -a 8 is a kernel "change" or an hdpam one?

What makes you think it is a disk performance problem at all? All we know
is that KDE applications take longer to start up, yes?

How much memory is in that machine? Can you run a `vmstat 1' trace during
the "slow" operations?

2003-07-30 11:44:08

by Frederick, Fabian

[permalink] [raw]
Subject: RE: Disk performance degradation

Comparative vmstat -d 1 could help as well

-----Message d'origine-----
De : Andrew Morton [mailto:[email protected]]
Envoy? : mercredi 30 juillet 2003 12:55
? : Stefano Rivoir
Cc : [email protected]; [email protected]
Objet : Re: Disk performance degradation


Stefano Rivoir <[email protected]> wrote:
>
> Voluspa wrote:
>
> > On 2003-07-29 12:00:06 Stefano Rivoir wrote:
> >
> >
> >>Is there something I'm missing?!
> >
> >
> > No, you are not ;-) You can reclaim some speed by doing a "hdparm -a
> > 512". See thread for explanation (it's the borked value for readahead):
>
> Thanks for the hint. This seems to make things a little better, but I'm
> still far away from 2.4 performances. I thought that anticipatory sched
> could be part of the problem, and booting with elevator=deadline
> does a little better... but using 2.4 is completely another thing.
> By the way, -a 512 vs -a 8 is a kernel "change" or an hdpam one?

What makes you think it is a disk performance problem at all? All we know
is that KDE applications take longer to start up, yes?

How much memory is in that machine? Can you run a `vmstat 1' trace during
the "slow" operations?

2003-07-30 16:06:25

by Stefano Rivoir

[permalink] [raw]
Subject: Re: Disk performance degradation

Andrew Morton wrote:

> Stefano Rivoir <[email protected]> wrote:

>>Thanks for the hint. This seems to make things a little better, but I'm
>>still far away from 2.4 performances. I thought that anticipatory sched
>>could be part of the problem, and booting with elevator=deadline
>>does a little better... but using 2.4 is completely another thing.
>>By the way, -a 512 vs -a 8 is a kernel "change" or an hdpam one?
>
>
> What makes you think it is a disk performance problem at all? All we know
> is that KDE applications take longer to start up, yes?

> How much memory is in that machine? Can you run a `vmstat 1' trace during
> the "slow" operations?

I think I've got it. 2.4 fails to load DRI, so when X is up there is
memory available until the load of gnucash, the last operation. 2.6
loads dri and probably this eats too much too early, causing the
system to touch swap since the first operation after X startup. This
does not happen anymore disabling DRI in X.

Sorry for wasting your time :(

Thanks.

--
Stefano RIVOIR
GTS Srl



2003-07-30 18:44:13

by Andrew Morton

[permalink] [raw]
Subject: Re: Disk performance degradation

Stefano Rivoir <[email protected]> wrote:
>
> I think I've got it. 2.4 fails to load DRI, so when X is up there is
> memory available until the load of gnucash, the last operation. 2.6
> loads dri and probably this eats too much too early, causing the
> system to touch swap since the first operation after X startup.

hrm, Why should loading DRI in X consume a significant amount of memory?

How much more memory is X using when DRI is loaded?

2003-07-30 21:03:05

by Mike Dresser

[permalink] [raw]
Subject: Re: Disk performance degradation

On Tue, 29 Jul 2003, Lou Langholtz wrote:

> Anyone want to field why we aren't we just setting the default to 512 so
> users don't need to adjust this? I'm sure there's a good reason... I'd
> just like to know what it is ;-)

mike:~# hdparm -a 512 /dev/hda

/dev/hda:
setting fs readahead to 512
BLKRASET failed: Invalid argument
readahead = 8 (on)

mike:~# hdparm -a 255 /dev/hda

/dev/hda:
setting fs readahead to 255
readahead = 255 (on)

mike:~# hdparm -a 256 /dev/hda

/dev/hda:
setting fs readahead to 256
BLKRASET failed: Invalid argument
readahead = 255 (on)

Probably for reasons like that. For some reason, I can't set my ICH4
based controller(ASUS P4B533) and Quantum Fireball AS40.0 to more than
255. Kernel is 2.4.21

Or I'm missing more of this thread than I thought and I'm completely off
topic here!

(i'm guessing the latter)

Mike

2003-07-31 00:04:47

by Rahul Karnik

[permalink] [raw]
Subject: Re: Disk performance degradation

Andrew Morton wrote:
> Stefano Rivoir <[email protected]> wrote:
>
>>I think I've got it. 2.4 fails to load DRI, so when X is up there is
>> memory available until the load of gnucash, the last operation. 2.6
>> loads dri and probably this eats too much too early, causing the
>> system to touch swap since the first operation after X startup.
>
>
> hrm, Why should loading DRI in X consume a significant amount of memory?

Perhaps this is a machine with "shared video memory", like the Intel
integrated video chipsets (i810). Stefano?

-Rahul
--
Rahul Karnik
[email protected]

2003-07-31 07:00:35

by Stefano Rivoir

[permalink] [raw]
Subject: Re: Disk performance degradation

procs -----------memory---------- ---swap-- -----io---- --system-- ----cpu----
r b swpd free buff cache si so bi bo in cs us sy id wa
0 0 0 95252 2952 11772 0 0 174 89 1033 95 6 8 64 23
0 0 0 95252 2952 11772 0 0 0 0 1005 8 1 0 99 0
0 0 0 95228 2960 11772 0 0 0 68 1005 15 0 0 98 2
0 0 0 95228 2960 11772 0 0 0 0 1003 4 0 0 100 0
0 0 0 95228 2960 11772 0 0 0 0 1023 44 0 0 100 0
0 0 0 95228 2960 11772 0 0 0 0 1026 47 0 0 100 0
0 0 0 95228 2960 11772 0 0 0 0 1019 29 0 0 100 0
0 2 0 94116 3032 12408 0 0 708 4 1052 136 1 2 45 52
0 1 0 91044 3212 14100 0 0 1844 136 1094 220 5 3 0 92
2 0 0 57100 3268 18336 0 0 4228 0 1155 149 42 6 0 52
0 1 0 55948 3328 19004 0 0 728 0 1052 62 66 1 0 33
0 0 0 55756 3448 19192 0 0 308 0 1059 120 6 1 58 35
0 1 0 53308 3540 19620 0 0 504 452 1048 61 23 1 43 34
1 0 0 50340 3644 21460 0 0 1944 0 1078 311 8 4 0 88
0 1 0 49332 3808 22588 0 0 1276 0 1070 279 3 2 0 95
0 1 0 45036 3880 26104 0 0 3588 0 1093 142 3 1 0 96
0 1 0 41244 3904 30512 0 0 4428 0 1093 166 10 0 0 90
0 2 0 38820 3940 32108 0 0 1628 732 1108 94 15 2 0 83
1 1 0 32988 3960 36616 0 0 4524 4 1401 304 7 2 0 91
0 2 0 28892 4068 37796 0 0 1280 0 1055 273 48 3 0 49
1 1 0 27116 4252 38892 0 0 1280 0 1080 271 11 2 0 87
procs -----------memory---------- ---swap-- -----io---- --system-- ----cpu----
r b swpd free buff cache si so bi bo in cs us sy id wa
0 1 0 22292 4424 40472 0 0 1744 0 1111 547 37 4 0 59
0 1 0 21980 4652 40480 0 0 220 584 1067 265 1 0 0 99
0 2 0 20452 4828 41036 0 0 728 0 1068 343 5 2 0 93
0 2 0 18372 5096 42160 0 0 1396 0 1097 346 10 2 0 88
0 1 0 17860 5360 42164 0 0 268 0 1069 339 2 1 0 97
0 1 0 16612 5884 42164 0 0 524 0 1134 279 2 1 0 97
1 0 0 13264 6012 43088 0 0 1036 440 1072 2627 32 7 0 61
0 2 0 8744 6156 44600 0 0 1644 0 1091 727 34 6 0 60
0 1 0 9028 6192 46408 0 0 1844 0 1072 356 29 2 0 69
0 2 0 8712 6256 49232 0 0 2888 0 1096 296 6 3 0 91
1 2 0 3956 5796 51308 0 0 3228 0 1084 464 53 3 0 44
1 1 0 4504 4796 48540 0 0 716 1008 1133 617 42 7 0 51
0 1 0 4624 4796 45204 0 0 1144 0 1131 1222 44 5 0 51
0 1 0 4664 4572 42212 0 0 932 28 1106 969 30 6 0 64
1 3 0 9800 3300 36428 0 0 868 100 1106 641 30 5 0 65
0 3 0 5720 3400 37296 0 0 964 0 1135 991 37 4 0 59
0 3 0 4312 3492 37872 0 0 648 916 1141 433 12 1 0 87
0 2 0 3832 3288 38168 0 0 1540 48 1248 535 10 3 0 87
0 3 0 4448 3172 37592 0 0 416 20 1113 813 8 2 0 90
1 3 0 4196 2948 35456 0 0 1384 40 1123 614 17 3 0 80
0 7 0 3300 2836 35712 0 0 1824 128 1245 379 13 2 0 86
procs -----------memory---------- ---swap-- -----io---- --system-- ----cpu----
r b swpd free buff cache si so bi bo in cs us sy id wa
0 5 0 3948 2784 35008 0 0 816 812 1142 305 4 1 0 95
3 2 0 6240 2800 35196 0 0 796 8 1130 325 56 3 0 41
0 4 0 2108 2792 35268 0 0 1712 44 1145 1023 35 8 0 57
0 2 0 3324 2488 33620 0 0 476 176 1169 508 31 4 0 65
0 4 0 3112 1972 33976 0 0 1360 668 1294 543 5 2 0 93
0 3 188 3612 1816 33472 0 188 760 512 1402 788 13 2 0 85
0 2 188 3852 1892 33332 0 0 664 36 1288 762 6 2 0 92
0 1 188 3636 1988 33704 0 0 536 0 1126 409 7 1 0 92
0 1 188 3884 2016 33672 0 0 760 20 1144 732 6 2 0 92
0 2 188 3764 2148 33672 0 0 132 512 1152 270 0 1 0 99
0 2 188 3572 2328 33672 0 0 168 360 1138 358 1 1 0 98
0 0 188 3452 2452 33672 0 0 120 4 1095 261 1 2 41 56
0 0 188 3472 2452 33672 0 0 0 0 1055 154 4 0 96 0
0 0 188 3472 2452 33672 0 0 0 0 1054 158 3 1 96 0
0 0 188 3472 2460 33672 0 0 0 136 1055 184 0 0 99 1
0 0 188 3472 2460 33672 0 0 0 0 1057 172 0 0 100 0
0 0 188 3488 2472 33672 0 0 12 0 1055 187 0 0 94 6
0 0 188 3488 2472 33672 0 0 0 0 1052 162 0 0 100 0
0 0 188 3488 2472 33672 0 0 0 0 1053 162 0 0 100 0
0 0 188 3488 2480 33672 0 0 0 228 1058 192 0 0 99 1
0 0 188 3492 2480 33672 0 0 0 0 1052 167 1 1 98 0
procs -----------memory---------- ---swap-- -----io---- --system-- ----cpu----
r b swpd free buff cache si so bi bo in cs us sy id wa
0 0 188 3492 2500 33680 0 0 28 0 1060 187 0 0 90 10
0 0 188 3492 2500 33680 0 0 0 0 1052 174 0 0 100 0
0 0 188 3492 2500 33680 0 0 0 0 1055 174 1 1 98 0
0 0 188 3496 2512 33684 0 0 8 244 1276 333 4 0 91 5
0 0 188 3352 2624 33704 0 0 132 0 1544 488 3 1 48 48
0 0 188 3352 2624 33704 0 0 0 0 1529 274 0 2 98 0
0 0 188 3352 2624 33704 0 0 0 0 1209 163 0 0 100 0
0 0 188 3352 2624 33704 0 0 0 0 1053 162 0 0 100 0
0 0 188 3352 2632 33704 0 0 0 244 1059 200 0 0 99 1
0 0 188 3352 2632 33704 0 0 0 0 1052 166 0 0 100 0
0 0 188 3352 2632 33704 0 0 0 0 1054 168 0 0 100 0
0 2 188 3392 2316 33600 0 0 624 12 1556 942 5 2 17 76
0 2 752 3620 2044 32536 0 564 1588 608 1268 1055 10 4 0 87
0 2 2232 3644 2124 32808 0 1480 812 2100 1188 706 20 3 0 77
0 2 2232 3540 2068 32836 0 0 1536 32 1355 822 12 1 0 87
0 1 2396 5676 2116 29992 32 164 1292 172 1278 999 15 3 0 83
1 1 2396 4484 2260 30556 0 0 704 0 1196 673 7 2 0 92
0 3 2396 3972 2476 30644 0 0 704 16 1175 1528 13 3 0 84
0 2 2396 4192 2476 30292 0 0 772 520 1146 644 5 2 0 93
0 2 2840 4260 2516 29960 184 444 736 476 1138 633 8 2 0 90
0 3 3180 4400 2532 29984 32 340 604 424 1142 649 6 2 0 92
procs -----------memory---------- ---swap-- -----io---- --system-- ----cpu----
r b swpd free buff cache si so bi bo in cs us sy id wa
0 3 4008 4104 2584 29652 0 828 1456 1040 1151 467 2 3 0 95
0 4 4632 3856 2584 29520 0 624 784 872 1163 379 2 1 0 97
0 3 5376 4384 2488 29556 0 744 392 748 1141 480 7 2 0 91
0 2 6368 4132 1908 29164 28 992 132 1340 1146 588 3 3 0 94
0 2 6368 4032 1988 29728 0 0 656 4 1095 441 11 2 0 87
0 2 6696 4768 2104 30460 32 328 1280 328 1160 711 13 2 0 85
0 3 6696 4528 2324 30484 0 0 244 124 1112 513 4 1 0 95
0 3 6696 4144 2512 30592 0 0 280 484 1114 485 2 1 0 97
0 2 6696 5080 2164 30172 0 0 424 36 1116 606 11 2 0 87
0 1 6696 4772 2356 30308 0 0 332 0 1122 428 2 1 0 97
0 0 6696 4748 2368 30312 0 0 12 0 1057 225 2 0 89 9
0 0 6696 4728 2380 30312 0 0 0 336 1058 201 0 0 98 2
0 0 6696 4728 2380 30312 0 0 0 0 1053 188 0 0 100 0
0 0 6696 4744 2384 30312 0 0 4 0 1053 200 1 1 98 0
0 0 6696 4744 2384 30312 0 0 0 0 1054 202 1 0 99 0
0 0 6696 4744 2384 30312 0 0 0 0 1054 170 0 0 100 0
0 0 6696 4744 2392 30312 0 0 0 232 1056 194 1 1 98 0
0 2 6696 4528 2312 30316 0 0 716 12 1090 192 2 1 69 28
0 1 7020 4076 2448 30656 0 324 1072 356 1111 294 0 1 0 99
0 3 7520 2104 2368 30496 0 500 1444 524 1077 550 25 3 0 72
0 2 7856 2500 2424 29952 0 336 452 472 1090 370 11 4 0 85
procs -----------memory---------- ---swap-- -----io---- --system-- ----cpu----
r b swpd free buff cache si so bi bo in cs us sy id wa
0 0 9020 6300 2468 29944 0 1164 132 1784 1171 314 5 1 55 39
0 0 9020 6300 2468 29944 0 0 0 0 1003 96 0 0 100 0
0 0 9020 6304 2468 29944 0 0 0 0 1006 82 0 0 100 0
0 0 9020 6304 2468 29944 0 0 0 0 1002 80 0 0 100 0
0 0 9020 6344 2468 29944 0 0 0 0 1004 94 0 1 99 0
0 0 9020 6368 2476 29944 0 0 0 232 1008 149 1 0 99 0
0 0 9020 6372 2476 29944 0 0 0 0 1003 87 0 0 100 0
0 0 9020 6372 2476 29944 0 0 0 0 1002 87 0 0 100 0
0 0 9020 6372 2476 29944 0 0 0 0 1003 91 0 0 100 0
0 0 9020 6372 2476 29944 0 0 0 0 1002 80 0 0 100 0
0 0 9020 6400 2484 29944 0 0 0 232 1007 106 1 1 98 0
0 0 9020 6400 2484 29944 0 0 0 0 1002 131 2 0 98 0
0 0 9020 6304 2496 29972 128 0 168 0 1013 106 0 0 86 14
0 0 9020 6304 2496 29972 0 0 0 0 1003 81 0 0 100 0
0 0 9020 6304 2496 29972 0 0 0 0 1003 89 0 0 100 0
0 1 9020 6304 2496 29972 0 0 0 804 1066 130 0 0 82 18
1 0 9020 6304 2504 29972 0 0 0 12 1109 106 1 2 7 90
0 0 9020 6304 2504 29972 0 0 0 0 1002 121 1 0 99 0
0 0 9020 6304 2504 29972 0 0 0 0 1004 96 0 0 100 0
0 0 9020 6304 2504 29972 0 0 0 0 1003 81 0 0 100 0
0 0 9020 6304 2512 29972 0 0 0 232 1009 101 0 0 100 0
procs -----------memory---------- ---swap-- -----io---- --system-- ----cpu----
r b swpd free buff cache si so bi bo in cs us sy id wa
0 0 9020 6304 2512 29972 0 0 0 0 1002 89 0 0 100 0
0 0 9020 6304 2512 29972 0 0 0 0 1003 87 1 1 98 0
0 0 9020 5104 2620 30364 384 0 884 0 1076 1096 13 1 9 77
0 1 9020 5056 2628 30392 32 0 68 0 1011 200 1 0 91 8
0 0 9020 4744 2672 30516 0 0 156 296 1035 222 2 1 67 30
1 1 9388 3992 2424 30476 0 368 948 404 1109 1104 19 2 14 64
0 1 9864 4168 2496 30084 60 476 416 596 1099 332 9 2 0 89
0 1 9868 4756 2376 29720 120 4 848 28 1125 952 11 3 0 86
0 3 9868 4048 2420 29800 96 0 940 4 1130 1164 10 2 0 88
0 0 10748 4360 2432 29636 0 880 104 1540 1082 188 0 1 77 22
0 0 10748 4360 2432 29640 0 0 4 0 1026 104 0 0 97 3
0 0 10748 4364 2432 29640 0 0 0 0 1004 80 0 0 100 0
0 0 10748 4364 2432 29640 0 0 0 0 1003 82 0 0 100 0
0 0 10748 4364 2432 29640 0 0 0 0 1003 89 1 1 98 0
0 0 10748 4364 2440 29640 0 0 0 232 1010 140 2 0 98 0
0 0 10748 4384 2440 29640 0 0 0 0 1002 81 0 0 100 0
0 0 10748 4384 2440 29644 0 0 0 0 1003 90 0 0 100 0
0 0 10748 4384 2440 29644 0 0 0 0 1004 85 0 0 100 0
0 0 10748 4384 2440 29644 0 0 0 0 1003 81 0 0 100 0
0 0 10748 4384 2448 29644 0 0 0 28 1006 116 0 0 100 0
0 0 10748 4384 2448 29644 0 0 0 0 1002 113 2 0 98 0
procs -----------memory---------- ---swap-- -----io---- --system-- ----cpu----
r b swpd free buff cache si so bi bo in cs us sy id wa
0 0 10748 4384 2448 29644 0 0 0 0 1002 82 0 0 100 0
0 0 10748 4384 2448 29644 0 0 0 0 1003 82 0 0 100 0
0 0 10748 4384 2448 29644 0 0 0 0 1002 92 0 0 100 0
0 0 10748 4384 2456 29644 0 0 0 232 1006 108 0 1 98 1
0 0 10748 4384 2456 29644 0 0 0 0 1003 88 0 0 100 0
1 1 10896 2960 2432 29988 96 148 896 160 1088 1446 16 5 3 76
0 1 11392 3604 2420 28672 0 496 496 632 1123 607 21 3 0 76
0 2 11820 3724 1984 28456 0 428 1268 436 1205 974 15 2 0 84
0 2 12008 3628 1948 29072 0 188 1912 484 1161 466 3 1 0 96
0 2 13220 3796 1908 29296 0 1212 1992 1640 1162 459 17 2 0 81
0 2 13220 3900 2080 29188 0 0 888 12 1194 555 1 1 0 98
0 2 13220 4284 2016 29216 0 0 500 8 1076 560 4 1 0 95
1 3 13220 3708 2060 29256 32 0 448 24 1076 1693 16 3 0 81
0 3 13280 3948 2076 28948 0 60 168 484 1114 303 2 1 0 97
0 2 13280 3420 2044 29444 64 0 1276 348 1148 459 5 2 0 93
0 2 13464 2904 2024 29272 208 184 1124 196 1238 371 41 1 0 58
0 4 13732 2228 2100 29600 64 268 1652 284 1248 970 8 2 0 90
0 5 14740 2320 1980 29048 0 1008 564 1048 1124 664 15 3 0 82
0 5 15588 1972 1712 27696 0 848 556 988 1069 452 9 2 0 89
0 3 16672 5800 736 25320 0 1084 104 1352 1085 560 5 5 0 90
0 1 16672 6044 984 25432 0 0 360 4 1088 473 5 2 0 93
procs -----------memory---------- ---swap-- -----io---- --system-- ----cpu----
r b swpd free buff cache si so bi bo in cs us sy id wa
0 2 16672 5756 1136 25560 0 0 272 0 1053 346 0 1 47 52
0 0 16672 5396 1208 25824 0 0 332 368 1056 373 3 2 50 45
0 0 16672 5400 1208 25824 0 0 0 0 1002 217 0 0 100 0
0 0 16672 5400 1208 25824 0 0 0 0 1002 213 0 0 100 0
0 0 16672 5456 1208 25824 0 0 0 0 1003 209 0 0 100 0
0 0 16672 5456 1208 25824 0 0 0 0 1002 207 0 0 100 0
0 0 16672 5460 1216 25824 0 0 0 232 1008 261 0 1 98 1
0 0 16672 5412 1216 25888 0 0 64 0 1003 290 1 0 97 2
0 0 16672 5428 1216 25916 0 0 28 0 1005 213 0 0 97 3
0 0 16672 5428 1216 25916 0 0 0 0 1003 209 0 0 100 0
0 0 16672 5428 1216 25916 0 0 0 0 1003 210 0 0 100 0
0 0 16672 5428 1224 25916 0 0 0 16 1005 221 0 0 100 0
0 0 16672 5276 1256 26088 0 0 196 0 1030 256 4 1 75 20
0 0 16672 5280 1256 26088 0 0 0 0 1002 136 1 1 98 0
0 0 16672 5280 1256 26088 0 0 0 0 1002 90 0 0 100 0
0 0 16672 5280 1256 26088 0 0 0 0 1002 93 0 0 100 0
0 0 16672 5292 1268 26088 0 0 0 304 1009 104 0 0 100 0
0 0 16672 5292 1268 26088 0 0 0 0 1003 99 0 0 100 0
0 0 16672 5292 1268 26088 0 0 0 0 1005 93 1 1 98 0
0 0 16672 5292 1268 26088 0 0 0 0 1003 121 0 0 100 0
0 0 16672 4636 1272 26424 224 0 564 0 1043 1140 6 2 68 24
procs -----------memory---------- ---swap-- -----io---- --system-- ----cpu----
r b swpd free buff cache si so bi bo in cs us sy id wa
0 0 16672 4668 1284 26428 0 0 4 244 1038 127 0 0 96 4
0 0 16672 4536 1284 26528 0 0 100 0 1023 367 3 0 91 6
0 2 16672 4464 1388 26540 8 0 124 0 1042 787 6 1 53 40
0 2 16672 3872 1208 26240 108 0 976 16 1075 727 11 3 0 86
0 2 16976 3608 1324 26084 0 304 1232 304 1129 547 13 1 0 86
0 3 17404 2808 1356 27036 84 428 1412 596 1126 685 9 2 0 89
1 3 18388 2944 1484 26728 40 984 464 988 1079 578 1 0 0 99
0 1 20012 3824 1564 26792 88 1624 1204 2104 1112 553 7 2 0 91
1 0 20296 3904 1644 27292 100 284 860 288 1088 1672 15 1 0 84
0 1 20912 3760 1728 27516 0 616 1492 624 1121 410 2 2 3 93
0 1 20912 3280 2060 27516 0 0 332 272 1116 268 1 2 17 80
0 0 20912 3256 2072 27520 0 0 4 480 1038 149 1 0 72 27
0 0 20912 3260 2072 27520 0 0 0 0 1002 101 0 0 100 0
0 0 20912 3236 2072 27520 32 0 32 0 1007 102 0 0 97 3
0 0 20912 3236 2072 27520 0 0 0 0 1002 97 0 0 100 0
0 1 20912 3260 2072 27520 0 0 0 4 1002 102 0 1 98 1
0 0 20912 3260 2080 27520 0 0 0 240 1019 144 2 0 97 1
0 0 20912 3264 2080 27520 0 0 0 0 1020 87 0 0 100 0
0 0 20912 3264 2080 27520 0 0 0 0 1015 125 0 0 100 0
0 0 20912 3268 2080 27520 0 0 0 0 1039 287 0 0 100 0
0 0 20912 3268 2088 27520 0 0 0 16 1005 101 0 0 100 0
procs -----------memory---------- ---swap-- -----io---- --system-- ----cpu----
r b swpd free buff cache si so bi bo in cs us sy id wa
0 0 20912 3268 2088 27520 0 0 0 0 1003 102 1 1 98 0
0 0 20912 3268 2088 27520 0 0 0 0 1002 120 0 0 100 0
0 0 20912 3268 2088 27520 0 0 0 0 1002 97 0 0 100 0
0 0 20912 3268 2088 27520 0 0 0 0 1003 95 0 0 100 0
0 0 20912 3268 2096 27520 0 0 0 232 1007 116 0 0 99 1
0 0 20912 3236 2096 27520 0 0 0 0 1008 1040 7 1 92 0
0 0 20912 3236 2096 27520 0 0 0 0 1003 306 2 1 97 0
0 0 20912 3236 2096 27520 0 0 0 0 1022 445 3 0 97 0
0 0 20912 3236 2096 27520 0 0 0 0 1003 102 0 0 100 0
0 3 20912 2260 1824 27284 0 0 116 16 1030 1223 17 3 54 26
1 1 22264 3308 1700 27320 0 1480 816 1924 1064 503 24 3 0 73
0 1 23284 3900 1556 26908 0 1020 224 1060 1068 1720 18 4 0 78
0 1 23284 3732 1604 26968 60 0 168 0 1024 163 0 1 59 40
0 0 23284 3636 1696 26980 0 0 104 0 1029 195 2 1 59 38
0 0 23284 3628 1720 26980 0 0 4 640 1013 107 0 0 93 7
0 0 23284 3628 1720 26980 0 0 0 0 1002 107 0 0 100 0
0 0 23284 3628 1720 26980 0 0 0 0 1005 94 0 0 100 0
0 0 23284 3628 1720 26980 0 0 0 0 1005 106 0 0 100 0
0 0 23284 3632 1720 26980 0 0 0 0 1002 96 1 1 98 0
0 0 23284 3632 1728 26980 0 0 0 244 1007 134 1 0 99 0
0 0 23284 3632 1728 26980 0 0 0 0 1004 94 0 0 100 0
procs -----------memory---------- ---swap-- -----io---- --system-- ----cpu----
r b swpd free buff cache si so bi bo in cs us sy id wa
0 0 23284 3632 1728 26980 0 0 0 0 1004 94 0 0 100 0
0 0 23284 3636 1728 26980 0 0 0 0 1002 91 0 0 100 0
0 0 23284 3636 1728 26980 0 0 0 0 1003 90 0 0 100 0
0 1 23284 3636 1728 26980 0 0 0 668 1072 139 0 0 80 20
0 0 23284 3612 1736 26984 0 0 0 24 1739 215 1 1 57 40
0 0 23284 3612 1752 26984 0 0 16 0 1006 103 0 0 91 9
0 0 23284 3612 1752 26984 0 0 0 0 1003 90 0 0 100 0
0 0 23284 3612 1752 26984 0 0 0 0 1003 90 0 0 100 0
0 0 23284 3612 1760 26984 0 0 0 240 1009 112 0 0 98 2
0 0 23284 3612 1760 26984 0 0 0 0 1003 139 1 1 98 0
0 0 23284 3612 1760 26984 0 0 0 0 1003 155 0 0 100 0
0 0 23284 3468 1760 26984 0 0 0 0 1020 1236 6 1 93 0
0 0 23284 3468 1760 26984 0 0 0 0 1017 335 2 0 98 0
0 0 23284 3060 1876 27184 96 0 396 276 1056 324 1 1 41 57
0 2 23284 3340 1732 26948 0 0 160 20 1026 866 6 2 73 19
1 1 23996 2476 1692 27440 0 712 1796 716 1142 503 5 3 0 92
0 2 24328 3364 1740 27192 0 332 2148 336 1158 417 5 2 0 93
0 1 25168 3848 1792 27188 0 840 3340 1372 1202 383 0 2 0 98
0 1 25172 3176 1652 28092 0 4 2352 52 1203 255 1 1 0 98
0 1 25620 3248 1600 28112 0 448 2036 488 1254 265 0 0 0 100
0 3 25992 3880 1568 28248 0 372 1880 420 1187 306 3 2 0 95
procs -----------memory---------- ---swap-- -----io---- --system-- ----cpu----
r b swpd free buff cache si so bi bo in cs us sy id wa
1 1 26020 3880 1368 28388 0 28 1740 48 1232 314 3 1 0 96
0 2 26424 3764 1380 28304 0 404 2372 696 1124 381 12 2 0 86
0 2 26484 2168 1360 28044 0 60 1536 100 1194 549 11 2 0 88
0 2 27076 2336 1024 28644 0 632 3872 696 1295 480 22 1 0 77
0 1 27444 3256 1016 28140 0 368 828 396 1195 237 25 1 0 74
0 3 27444 3904 1024 27412 0 0 1512 8 1134 321 2 1 0 97
0 2 27444 3120 1120 28056 32 0 768 192 1188 380 3 1 0 96
0 2 27936 3624 1080 27492 64 492 956 616 1082 330 1 1 0 98
0 2 27936 3048 1296 27832 0 0 556 0 1091 354 1 0 0 99
0 2 28036 3388 1224 27792 32 100 1000 152 1101 381 2 1 0 97
0 3 28036 3628 1292 27456 192 0 1092 20 1131 428 1 2 0 97
0 3 28284 3452 1320 26988 760 248 1256 492 1230 385 2 0 0 98
0 3 29016 4116 1380 26448 32 732 1604 764 1500 569 3 1 0 96
0 3 29016 3852 1620 26492 0 0 284 0 1070 266 1 1 0 98
0 3 29016 3300 1904 26644 0 0 436 0 1089 336 2 1 0 97
0 2 29064 3492 1664 26552 128 48 576 504 1071 346 18 1 0 81
0 2 30756 2740 1656 25872 888 1692 2004 1700 2839 1643 23 2 0 75
1 0 32612 3244 1588 24684 0 1928 528 1988 1171 403 44 3 0 53
1 1 33208 2764 1528 24356 0 596 692 600 1140 427 56 2 0 42
0 1 33620 3028 1384 24356 0 412 436 740 1082 254 50 2 0 48
0 2 34332 2912 1244 24452 0 712 2180 724 1157 340 0 2 0 98
procs -----------memory---------- ---swap-- -----io---- --system-- ----cpu----
r b swpd free buff cache si so bi bo in cs us sy id wa
0 2 34332 3176 1312 24876 0 0 808 12 1289 409 2 2 0 97
0 3 34332 2912 1328 24784 0 0 484 4 1078 329 5 0 0 95
0 3 34608 2888 1392 24648 0 276 368 280 1115 272 4 1 0 95
0 3 35656 3020 972 24044 0 1048 556 1412 1146 503 19 3 0 78
0 3 36268 2600 1012 22580 0 612 740 912 1213 476 16 4 0 81
0 2 36528 8608 1080 22928 128 260 804 260 1405 360 2 1 0 97
0 2 36528 7600 1184 23540 184 0 900 0 1082 311 4 1 0 95
1 3 36528 6220 1304 24660 32 0 1272 4 1085 419 3 1 0 96
0 8 36528 4964 1400 25432 336 0 1160 228 1079 1141 6 2 0 92
0 1 36528 3884 1604 25852 464 0 1124 0 1106 1081 4 1 0 95
0 0 36528 3380 1724 26108 128 0 500 0 1279 303 2 1 53 44
0 0 36528 4580 1668 25560 56 0 220 12 1500 1789 7 4 73 16
0 1 36528 3980 1688 26096 0 0 548 244 1507 1354 17 2 55 26
0 1 36528 3380 1644 25732 732 0 1528 0 1576 2565 16 4 0 80
0 0 36528 4100 1400 24112 1152 0 1868 12 1596 1362 7 3 11 79
0 1 36528 4004 1404 24148 28 0 64 0 1499 494 1 1 89 9
0 2 36528 3604 1404 24280 288 0 1612 24 1583 1005 9 2 0 89
0 0 37176 15216 1440 24644 12 804 788 884 1220 403 1 2 29 68
0 1 37168 14320 1448 24792 584 0 732 0 1059 279 28 0 35 38
0 0 37160 13792 1472 24912 384 0 520 0 1032 125 39 1 35 25


Attachments:
kde-k2.6.0-t2-nodri.txt (14.07 kB)
kde-k2.4.21.txt (20.77 kB)
kde-k2.6.0-t2.txt (24.83 kB)
Download all attachments

2003-07-31 07:15:53

by Andrew Morton

[permalink] [raw]
Subject: Re: Disk performance degradation

Stefano Rivoir <[email protected]> wrote:
>
> > How much more memory is X using when DRI is loaded?
>
> Here attached you'll find the vmstats, 2.4.21, 2.6.0 with DRI and 2.6.0
> w/o DRI. 2.4.21 and 2.6.0-nodri are more or less the same...

wow, it seems to have taken 24 megabytes.

You may get nicer performance out of that little machine by decreasing
/proc/sys/vm/swappiness. I have the feeling that the current default of
60% is about right for 256M machines, but too small for larger machines,
too large for smaller machines. I use 85% on a 1G desktop machine.


2003-07-31 08:39:18

by MånsRullgård

[permalink] [raw]
Subject: Re: Disk performance degradation

Mike Dresser <[email protected]> writes:

> Probably for reasons like that. For some reason, I can't set my ICH4
> based controller(ASUS P4B533) and Quantum Fireball AS40.0 to more than
> 255. Kernel is 2.4.21

It appears that in 2.[56] kernels the unit for readahead is bytes,
rather than sectors, as used in 2.4 kernels.

--
M?ns Rullg?rd
[email protected]

2003-07-31 14:00:41

by Mike Dresser

[permalink] [raw]
Subject: Re: Disk performance degradation

On Thu, 31 Jul 2003, [iso-8859-1] M?ns Rullg?rd wrote:

> It appears that in 2.[56] kernels the unit for readahead is bytes,
> rather than sectors, as used in 2.4 kernels.

See, I knew I was offtopic!

Thanks though =)

Mike

2003-07-31 21:27:41

by Andrew Morton

[permalink] [raw]
Subject: Re: Disk performance degradation

[email protected] (M?ns Rullg?rd) wrote:
>
> Mike Dresser <[email protected]> writes:
>
> > Probably for reasons like that. For some reason, I can't set my ICH4
> > based controller(ASUS P4B533) and Quantum Fireball AS40.0 to more than
> > 255. Kernel is 2.4.21
>
> It appears that in 2.[56] kernels the unit for readahead is bytes,
> rather than sectors, as used in 2.4 kernels.

The ioctl which is used by

blockdev --setra

is still in 512-byte units.

There are other backdoors such as IDE-private /proc files which can be used
to set readahead. I'm not sure what units they use, and I don't know what
mechanism hdparm is using to diddle readahead.

Whatever it is, I suggest you ignore it and use /sbin/blockdev; it works
for all disk types.

Subject: Re: Disk performance degradation


On Thu, 31 Jul 2003, Andrew Morton wrote:

> [email protected] (M?ns Rullg?rd) wrote:
> >
> > Mike Dresser <[email protected]> writes:
> >
> > > Probably for reasons like that. For some reason, I can't set my ICH4
> > > based controller(ASUS P4B533) and Quantum Fireball AS40.0 to more than
> > > 255. Kernel is 2.4.21
> >
> > It appears that in 2.[56] kernels the unit for readahead is bytes,
> > rather than sectors, as used in 2.4 kernels.
>
> The ioctl which is used by
>
> blockdev --setra
>
> is still in 512-byte units.
>
> There are other backdoors such as IDE-private /proc files which can be used
> to set readahead. I'm not sure what units they use, and I don't know what
> mechanism hdparm is using to diddle readahead.

in 2.4.x:

/proc/ide/hdX/settings

breada_readahead - BLKRA{GET/SET}
file_readahead - BLKFRA{GET/SET}

both are in 1024 bytes units

in 2.6.x they are gone :-).

and hdparm is using BLKRA{GET/SET}

--
Bartlomiej