Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Hi. I just compiled my own 2.4.21 kernel. Everything is fine, except that when I read/write (especially write) to the hard drive, my system becomes bogged. I can barely move the mouse across the screen.
During kernel boot, I see:
"ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx"
I know for a fact my hard drive is 100MHz and my motherboard supports at least 100, if not 133MHz. I am not sure about my IDE cables. With other kernels, my hard drive ran smoothly. I could even navigate GUI while compiling, writing to HD, etc. This makes me suspect that my cables are also 100MHz, and that the setting is in the kernel.
# hdparm -Tt /dev/hda
/dev/hda:
Timing buffer-cache reads: 128 MB in 0.42 seconds =304.76 MB/sec
Timing buffered disk reads: 64 MB in 21.47 seconds = 2.98 MB/sec
I have two IBM 60 GB Desktar 7200rpm HDDs. They are both sharing the secondary IDE bus, so theoretically, performance settings should be same for both:
Well I'm extremely new to Linux, but from a Windows background I'd say it sounds like you're using PIO to read/write instead of DMA or UDMA. PIO is of course extremely slow for any modern hard drive.
Check the BIOS to make sure UDMA is enabled...I couldn't begin to tell you where to check in linux...
*** This makes me think I could just set kernel argument idebus=100, but I don't know if that's the max my system supports. I have checked my motherboard (Soyo SY-K7V Dragon Plus) manual, and I can't find anything about DMA - damn thing doesn't have an index. So I will keep searching. However, I would like to note that before (prior to compiling kernel, and on other distros) I would have transfer speeds (both on LAN and on local HD transfers) in excess of 100 and 200 MB/s. Now I can't seem to exceed 2.7 MB/s. This is a bit of a pain as I have over 11 GB of data backed up on my LAN.
Psyno, the only DMA-related option in my CMOS was this menu:
All the PIO's and UDMA's were set to Auto. If it helps, I have a Windows XP partition, I could check settings in there (as you said you are comfortable with Windows). Thanks.
I was trying to install Xine with DVD playback support, and the Xine website (http://xine.sourceforge.net) recommended that I turn DMA on my DVD drive.
# hdparm -d 1 /dev/hdc
/dev/hdc:
setting using_dma to 1 (on)
HDIO_SET_DMA failed: Operation not permitted
using_dma = 0 (off)
what is HDIO_SET_DMA? Is this related to my idebus settings?
If you have PCI-X that can run from 33 MHz to 100 MHz, then you can change it. Your motherboard is the standard PCI or 33 MHz. The PCI bus max out at 133 megabytes per second, so you can not achive more than 133 megabytes. You can add ide0=ata66 to your boot loader. This is dangerous if you don't know what you are doing. The 0 in ide is the device channel of your controller, so to set your secondary channel to ata66 you specify ide1.
At the console type
hdparm -X68 -d1 -c3 -k1 /dev/hda
hdparm -X68 -d1 -c3 -k1 /dev/hdb
Then see how that works. The -X68 is for UDMA 4 and it is supported by many IDE chipsets. You can use -X69 for UDMA 5 but you may run in the chance of freezing your computer. If everything works properly, you can add a few lines to your running scripts.
Your DVD drive could be using IDE-SCSI module so hdparm will not work. If you remove that module and run hdparm again. DMA should be enable for your drive.
You may need to recompile the kernel to support DMA.
I have been reading that people using the 2.4.21 kernel are having problems with DMA/ATA settings. I compiled a 2.4.20 kernel, and DMA works now. I can onced again multi-task. Thanks all for the suggestions.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.