Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then 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.
If yer within the /sbin directory type ./hdparm and see what happens. That or just type PATH=$PATH:/sbin/ then type EXPORT PATH which will put /sbin in your path so hopefully you'll be able to run it.
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,600
Original Poster
Rep:
Gentus does have UDMA/66 support, but I don't think that would cause such a large discrepancy. It could be that something it configured differently in the Red Hat install.
jeremy,
Well, I finally got Linux to recognize my SCSI controller/hard drive as Ultra2 SCSI, but my hdparm results haven't improved much at all.
(scsi0:0:0:0) Synchronous at 80.0 Mbyte/sec, offset 15.
Timing buffered disk reads: 64 MB in 4.96 seconds = 13.90 MB/sec
I've been all over my BIOS and there's nothing left to configure in there. Was there anything you did to the actual drivers to get your MB/sec up over 20? Thanks!
1) I'm using the aic7xxx driver that comes with RedHat6.2 version 5.1.28/3.2.4 (ripped from dmesg). It's running as a module.
2) I don't have any other non-Ultra2 on the chain... Well OK I do, but I removed them and didn't get any increase in performance. In other words I removed all my SCSI devices, save the hard drive, and then ran the latest hdparm test that I put in my previous post.
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,600
Original Poster
Rep:
You may want to try the latest driver, which is 5.1.31. The person who wrote the driver actually works for Red Hat now. The driver is available here - http://people.redhat.com/dledford/aic7xxx.html
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,600
Original Poster
Rep:
Here is a great tip for those of you with IDE drives. I just benchmarked my laptop and got the following
Quote:
64 MB in 20.04 seconds = 3.19 MB/sec
Now I know that laptops usually ship with pretty slow drives, but I have a fairly nice laptop and this seemed too low. I checked the settings on the hard drive and noticed 2 things.
1)The drive wasn't using 32-bit I/O and 2) The drive was not using DMA. If this is also the case for you type
Code:
hdparm -c 1 -d 1 -k 1 /dev/hda
My results after this simple change?
Quote:
64 MB in 6.53 seconds = 9.80 MB/sec
Over a 300% speed increase! You will need to put the hdparm line in your startup scripts if you don't want to type it after every reboot.
Open a term window and type hdparm -c 1 -d 1 -k 1 /dev/hda
and watch the speed increase... that is unless your install got the drives correct to begin with... Let me know if you need to have this happen with every reboot... cause that will clear it...
/dev/sda:
Timing buffered disk reads: 64 MB in 2.20 seconds = 29.09 MB/sec
coming from "my" new server, sda is a mirrored container of two 9GB Ultra-3 (U160) 10K SCSI disks in RAID-1 trough a Dell PERC 2/Si Ultra-2 raid controller.
Okay, issuing the hdparm command to set DMA and 32-bit IO worked, but after a reboot the settings are gone again.
So I tried creating a script in /etc/rc.d/init.d it contains:
Code:
#!/bin/sh
# Speed up harddisk by issuing hdparm commands
echo "Speed up harddisk"
/sbin/hdparm -c 1 -d 1 -k 1 /dev/hda
and I symlinked it into the rc1.d, rc2.d, rc3.d, rc4.d and rc5.d dirs with the name K01hdspeedup (so it would start before all the other scripts)
But after rebooting it didn't work at all
What am I doing wrong???
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.