Linux - General This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
|
09-06-2000, 01:03 PM
|
#16
|
|
LQ Newbie
Registered: Sep 2000
Location: Mebane NC
Posts: 10
Rep:
|
Tried the command and got reply that "hdparm command not found"
|
|
|
|
09-06-2000, 01:19 PM
|
#17
|
root 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 9,527
Original Poster
|
The directory /sbin is probably not in your path. Try typing
Code:
/sbin/hdparm -t /dev/harddrive
|
|
|
|
09-06-2000, 01:39 PM
|
#18
|
|
LQ Newbie
Registered: Sep 2000
Location: Mebane NC
Posts: 10
Rep:
|
Tried that and changing to the /sbin directory. Still get the command not message. I do a ls and the file is listed and highlighted but will not run.?
Could this be due to my other problem of not being able to log on the linux machine? I'm running from a win box with a term program with SSH.
|
|
|
|
09-06-2000, 02:36 PM
|
#19
|
|
Member
Registered: Jun 2000
Location: SUNY Buffalo
Posts: 79
Rep:
|
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.
|
|
|
|
09-06-2000, 02:47 PM
|
#20
|
|
LQ Newbie
Registered: Sep 2000
Location: Mebane NC
Posts: 10
Rep:
|
That worked.
/dev/hda1:
Timing buffered disk reads: 32 MB in 7.64 seconds = 4.19 MB/sec
It's a Compaq deskpro P2 400mhz IDE drive type and speed is unknown.
|
|
|
|
09-13-2000, 10:11 PM
|
#21
|
|
LQ Newbie
Registered: Sep 2000
Posts: 1
Rep:
|
Happier now
Strange. results !!!
P3 Laptop 300 Mhz + 12 GB Drive
Using redhat 6.2
64 MB is 15.46 seconds = 4.14 MB/sec ?
Using Gentus 3.0 (ABIT)
64 MB in 4.76 seconds = 13.45 MB/sec
10.7 Seconds and a 9.31 MB/sec difference !!!
|
|
|
|
09-14-2000, 01:43 AM
|
#22
|
root 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 9,527
Original Poster
|
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.
|
|
|
|
10-01-2000, 07:43 PM
|
#23
|
|
Member
Registered: Jun 2000
Location: SUNY Buffalo
Posts: 79
Rep:
|
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!
|
|
|
|
10-01-2000, 08:25 PM
|
#24
|
root 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 9,527
Original Poster
|
A have a few questions for you.
1) What driver are you using?
2) Do you have any non-Ultra2 devices on the chain?
|
|
|
|
10-01-2000, 11:00 PM
|
#25
|
|
Member
Registered: Jun 2000
Location: SUNY Buffalo
Posts: 79
Rep:
|
I have a few answers for you:
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.
|
|
|
|
10-01-2000, 11:27 PM
|
#26
|
root 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 9,527
Original Poster
|
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
|
|
|
|
10-08-2000, 06:10 PM
|
#27
|
root 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 9,527
Original Poster
|
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.
|
|
|
|
10-17-2000, 09:26 PM
|
#28
|
|
LQ Newbie
Registered: Oct 2000
Location: Las Vegas, NV, USA
Posts: 6
Rep:
|
hard drive speed
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...
|
|
|
|
11-07-2000, 08:52 AM
|
#29
|
|
Member
Registered: Sep 2000
Location: Haarlem, The Netherlands
Distribution: Freesco, RedHat, Debian
Posts: 41
Rep:
|
Power to the people :o)
/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.
|
|
|
|
11-17-2000, 05:18 AM
|
#30
|
|
Member
Registered: Sep 2000
Location: Haarlem, The Netherlands
Distribution: Freesco, RedHat, Debian
Posts: 41
Rep:
|
Help?
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???
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 12:38 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|