Hi All.
HP Vectra VL420
CPU: 1.7gig
RAM: 768meg
HD: IDE Seagate ATA/100
I'm running Fedora 8 with a 20gig IDE Drive that support UDMA5 ATA/100. This box is a Squid Server with Squidguard.
I'm currently in test and with 5-10 users and I see a lot of CPU %wa time when a user do a request that is not in memory.
I have some performance issue when I see the %wa time high. I'm sure that my hard drive is the bottleneck.
hdparm -i /dev/sda
Model=ST320011A , FwRev=3.10 , SerialNo=3HT0PENS
Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs RotSpdTol>.5% }
RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=4
BuffType=unknown, BuffSize=2048kB, MaxMultSect=16, MultSect=?16?
CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=39851760
IORDY=on/off, tPIO={min:240,w/IORDY:120}, tDMA={min:120,rec:120}
PIO modes: pio0 pio1 pio2 pio3 pio4
DMA modes: mdma0 mdma1 mdma2
UDMA modes: udma0 udma1 udma2 udma3 udma4 *udma5
AdvancedPM=no WriteCache=enabled
Drive conforms to: Unspecified: ATA/ATAPI-1,2,3,4,5
* signifies the current active mode
hdparm -v /dev/sda
/dev/sda:
IO_support = 0 (default 16-bit)
readonly = 0 (off)
readahead = 256 (on)
geometry = 2480/255/63, sectors = 39851760, start = 0
hdparm -tT /dev/sda
/dev/sda:
Timing cached reads: 442 MB in 2.01 seconds = 220.37 MB/sec
Timing buffered disk reads: 124 MB in 3.04 seconds = 40.74 MB/sec
Why I only get 40...MB/sec ? Is it normaly with my drive ?
My drive is a ATA/100, normally I'm supposed to do something better like 90MB/sec ? No ??
I tried to play with the hdparm -c ... -d ... parameter and always get an error that it is not allowed
hdparm -d1 /dev/sda
/dev/sda:
setting using_dma to 1 (on)
HDIO_SET_DMA failed: Inappropriate ioctl for device
[root@Proxy ~]# hdparm -c1 /dev/sda
/dev/sda:
setting 32-bit IO_support flag to 1
HDIO_SET_32BIT failed: Invalid argument
IO_support = 0 (default 16-bit)
Can someone help me ?
I need to put this Squid server in production in two weeks and I think that it will not support the load of my 140 users.
Thanks
Jonathan