Very Poor Multi-tasking, Apparent Hard Drive I/O Issue
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Very Poor Multi-tasking, Apparent Hard Drive I/O Issue
This is a very weird issue and I'll try my best to explain it. Whenever a process tries accessing the hard drive, the computer will stutter, and if a process is doing it all of the time, everything else completely slows to a crawl. Here's what I mean:
Say I want to burn a CD while I'm listening to music and browsing the web. XCDRoast hogs the CPU, the music stutters so badly that I get a headache listening to it, and the mouse cursor is very choppy when I move it, so much so that it's highly inconvenient to do anything with it. Typing text will take forever, etc. Specifically, the kblockd daemon takes up about 25% CPU (according to the KDE System Guard).
There are other processes that will do this, but CD burning is quite bad. CD burning, extracting tar balls, and moving files on the hard drive are pretty much the worst, all of which involve using the hard drive (CD burning would mean accessing an ISO image). Even activity like downloading a file from the Internet will cause the computer to stutter about every five seconds. I'm guessing that that's because file doesn't copy as quickly as moving a file from one directory to another. Now that I can't even download without getting bothered, I've really gotten fed up with the issue. I very strongly suspect that the kernel is at fault (kblockd is a kernel daemon, isn't it?). I'm running 2.6.10, but I've tried this with lots of others, including 2.4.x, and I still have the same problems. Am I forgetting to enable/disable some option? Help would be *greatly* appreciated.
Post the results of
hdparm -tT /dev/hda (or whatever drive you're booting from)
hdparm /dev/hda
hdparm -i /dev/hda
And look on google for people promising to make your drives faster by using hdparm. There are quite a few guides out there. If they don't help, come, post, and we'll try again.
Also try running your filesystem check utility of choice. (it varies according to what fs you're running)
Fixed! I believe the problem was with the kernel's support for my IDE chipset. In the kernel configuration, I went into "Device Drivers" -> "ATA/ATAPI/MFM/RLL support". There, I enabled "PCI IDE chipset support", "Generic PCI IDE Chipset Support", "Use PCI DMA by default when available" and "AMD and nVidia IDE support" (this is because my motherboard chipset is NVIDIA nForce2). Now everything works great. I'm not sure if I can or should disable any of these options, but now it works so I'm not really touching it. I do know that my "timing buffered disk" rate (what you get with 'hdparm -t /dev/hdX') is now up from about 6 or 7 MB/sec to 32 MB/sec, which is a great bonus (I think it must be because of the DMA), even though the trouble wasn't with the transfer rate. Anyhow, thank you teval for your help.
Boy I'm glad that's fixed. It was the biggest thorn in my side for such a long time.
Originally posted by lasindi I do know that my "timing buffered disk" rate (what you get with 'hdparm -t /dev/hdX') is now up from about 6 or 7 MB/sec to 32 MB/sec, which is a great bonus (I think it must be because of the DMA), even though the trouble wasn't with the transfer rate. Anyhow, thank you teval for your help.
Well, I do think that the trouble was the transfer rate you're talking about. From what I've learned on this forum, the result of "hdparm -t" is a sustained transfer rate, which means the internal read/write speed of the disk.
The rate jumped most probably because of the chipset support you compiled into the kernel. I doubt the DMA setting ("hdparm -d") would make much of a difference. My hard disk has an STR of about 50 MB/sec, whether or not I enable DMA on it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.