LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 01-13-2004, 08:01 PM   #1
wayback
LQ Newbie
 
Registered: Dec 2003
Location: WA
Distribution: slackware 9.1
Posts: 18

Rep: Reputation: 0
2.6.0 SLOW disk access


I built a 2.6.0 kernel and have been testing it with my installed slackware 9.1 which normally uses a 2.4.22 kernel. I noticed that it seemed slow, especially disk-intensive things. Testing with hdparm shows it is MUCH slower than 2.4.22 --

hdparm -t on 2.4.22:
buffered disk read: 64 MB in 1.61 seconds

hdparm -t on 2.6.0:
buffered disk read: 64 MB in 34.01 seconds

Naturally both runs are using the same disk/partition, nothing else running, tried mutliple times, etc. I can't find anything left to enable in the kernel config that seems like it might help. Any suggestions as to what might explain this?
 
Old 01-13-2004, 08:35 PM   #2
tricky_linux
Member
 
Registered: Jul 2003
Distribution: Red Hat Linux 9.0; Old and Solid
Posts: 674

Rep: Reputation: 30
did you enable dma? or did you compile dma support?
do "hdparm <drive>" as root to see the difference.
 
Old 01-13-2004, 08:46 PM   #3
wayback
LQ Newbie
 
Registered: Dec 2003
Location: WA
Distribution: slackware 9.1
Posts: 18

Original Poster
Rep: Reputation: 0
Yes dma is enabled, at least in the kernel config ("use by default"). But I did notice the following difference from doing hdparm -I:

2.4.22:
R/W multiple sector transfer: Max = 16 Current = 16

2.6.0:
R/W multiple sector transfer: Max = 16 Current = 0

That's the only difference (from hdparm). Where does this get configured?
 
Old 01-14-2004, 10:26 AM   #4
tricky_linux
Member
 
Registered: Jul 2003
Distribution: Red Hat Linux 9.0; Old and Solid
Posts: 674

Rep: Reputation: 30
try "hdparm -m16 <device>"
and use "hdparm -tT <device>" to test how fast it is?
 
Old 01-14-2004, 10:33 AM   #5
TheOneKEA
Member
 
Registered: Oct 2003
Distribution: Debian GNU/Linux 11 (amd64) w/kernel 6.0.15
Posts: 299

Rep: Reputation: 30
Are you sure you compiled in chipset-specific support in 2.6? The specific chipset support allows the kernel to manipulate the PIO, DMA, UDMA and IRQ settings of the IDE core, which allows you to increase performance without having to run hdparm every time the system boots.
 
Old 01-15-2004, 01:43 AM   #6
wayback
LQ Newbie
 
Registered: Dec 2003
Location: WA
Distribution: slackware 9.1
Posts: 18

Original Poster
Rep: Reputation: 0
Thanks for that tip, helped me to finally solve this... I had the chipset (VIA) support configured as a module instead of built-in, and had most of the other chipsets also enabled as modules, plus the "generic" ide was enabled. Changed to VIA as built-in, and removed all other chipset support including "generic", and now it uses the correct driver. Before it was not enabling dma (couldn't even get hdparm to enable it), now it is. However it's still not enabled multiple-sector transfers, but that can be enabled with hdparm. (Dma accounts for most of the speed-up anyway.)

Next problem is getting the sound to work...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Very Slow Hard disk lm317t Linux - Hardware 5 11-02-2005 01:06 PM
slow disk performance oldi *BSD 1 08-02-2004 10:11 PM
slackware: slow disk access ? Menestrel Slackware 3 05-22-2004 05:46 PM
slow internet access. too slow!!! iamstinke Linux - Networking 2 01-01-2004 09:46 PM
Slow IDE disk... smudge Linux - Hardware 1 11-10-2003 08:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 03:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration