Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Strange harddisk performance problem...
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
ichtys|dk
n00b
n00b


Joined: 16 Sep 2003
Posts: 9
Location: Denmark

PostPosted: Wed Sep 17, 2003 8:33 am    Post subject: Strange harddisk performance problem... Reply with quote

I've installed Gentoo Linux for my first time a couple of days ago, but one thing is not working proberly...

My system: Asus m2400n laptop, 1300Mhz Pentium M, 256mb DDR ram, 40GB harddisk...

My harddisk runs very slow, and it's pretty obvious that it has an effect on the whole system.

I've tried to recompile the kernel to ensure DMA support, but it doesn't change a bit.

I've run hdparm -X69 -c3 -m16 -d1 -u1 /dev/hda, and now hdparm -tT /dev/hda gives the following result:
/dev/hda:
Timing buffer-cache reads: 352 MB in 2.02 seconds = 174.26 MB/sec
Timing buffered disk reads: 10 MB in 3.42 seconds = 2.92 MB/sec

I've enabled DMA and everything... but still it works this slow...

What can I do, to improve the harddisk performance?
Back to top
View user's profile Send private message
marshall_j
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jan 2003
Posts: 98
Location: NZ

PostPosted: Thu Sep 18, 2003 1:47 am    Post subject: Reply with quote

If you do the following what does your output look like?

Code:

[root@method][/home/marshall]$ hdparm /dev/hda

/dev/hda:
 multcount    = 16 (on)
 IO_support   =  0 (default 16-bit)
 unmaskirq    =  0 (off)
 [b]using_dma    =  1 (on)[/b]
 keepsettings =  0 (off)
 readonly     =  0 (off)
 readahead    =  8 (on)
 geometry     = 9729/255/63, sectors = 156301488, start = 0


it does look a littls slow as I'm getting
Code:

[root@method][/home/marshall]$ hdparm -tT /dev/hda

/dev/hda:
 Timing buffer-cache reads:   388 MB in  2.02 seconds = 192.08 MB/sec
 Timing buffered disk reads:   42 MB in  3.07 seconds =  13.68 MB/sec

but then again how fast should a laptop drive be? ;)
Back to top
View user's profile Send private message
ichtys|dk
n00b
n00b


Joined: 16 Sep 2003
Posts: 9
Location: Denmark

PostPosted: Thu Sep 18, 2003 7:11 am    Post subject: Reply with quote

I don't remember all the settings, but here is the things I remember for sure:

/dev/hda:
multcount = 16 (on)
IO_support = 32 bit (default 16-bit)
unmaskirq = 1 (on)
using_dma = 1 (on)
readonly = 0 (off)
readahead = 8 (on)

It should be okay, but it's still very slow....
Back to top
View user's profile Send private message
Nermal
Apprentice
Apprentice


Joined: 18 Apr 2002
Posts: 259
Location: UK

PostPosted: Thu Sep 18, 2003 11:37 am    Post subject: Reply with quote

Make sure you have the correct IDE chipset support enabled in the kernel.
Back to top
View user's profile Send private message
Tronic
Apprentice
Apprentice


Joined: 28 Jul 2003
Posts: 194
Location: Finland

PostPosted: Thu Sep 18, 2003 10:26 pm    Post subject: Reply with quote

Mine are same otherwise, but readahead is 256! This is the default, I haven't changed it.

Might be the reason why I'm having very bad disk performance on random access. Running HP Xe4500 with 40 Go IBM Travelstar HDD.

hdparm "benchmark" results are 574 Mo/s and 19 Mo/s. I'm using the quotes because this is very bad benchmark for disk performance.
Back to top
View user's profile Send private message
Tronic
Apprentice
Apprentice


Joined: 28 Jul 2003
Posts: 194
Location: Finland

PostPosted: Thu Sep 18, 2003 11:10 pm    Post subject: Reply with quote

Hmm.. Changing the readahead setting didn't make much difference to bonnie++ results. I'm trying to find a low-level benchmark that works, so that we'll get some real results..

EDIT:

Looks like bonnie++ comes with somewhat useful separate program called zcav. With this, I'm getting 21 Mo/s at disk beginning. However, the results seem pretty unaccurate.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum