LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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


Reply
  Search this Thread
Old 09-06-2000, 01:03 PM   #16
rickbb
LQ Newbie
 
Registered: Sep 2000
Location: Mebane NC
Posts: 10

Rep: Reputation: 0

Tried the command and got reply that "hdparm command not found"
 
Old 09-06-2000, 01:19 PM   #17
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,600

Original Poster
Rep: Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083
The directory /sbin is probably not in your path. Try typing
Code:
/sbin/hdparm -t /dev/harddrive
 
Old 09-06-2000, 01:39 PM   #18
rickbb
LQ Newbie
 
Registered: Sep 2000
Location: Mebane NC
Posts: 10

Rep: Reputation: 0
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.
 
Old 09-06-2000, 02:36 PM   #19
bickford
Member
 
Registered: Jun 2000
Location: SUNY Buffalo
Posts: 79

Rep: Reputation: 15
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.
 
Old 09-06-2000, 02:47 PM   #20
rickbb
LQ Newbie
 
Registered: Sep 2000
Location: Mebane NC
Posts: 10

Rep: Reputation: 0
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.
 
Old 09-13-2000, 10:11 PM   #21
keef2
LQ Newbie
 
Registered: Sep 2000
Posts: 1

Rep: Reputation: 0
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 !!!
 
Old 09-14-2000, 01:43 AM   #22
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,600

Original Poster
Rep: Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083
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.
 
Old 10-01-2000, 07:43 PM   #23
bickford
Member
 
Registered: Jun 2000
Location: SUNY Buffalo
Posts: 79

Rep: Reputation: 15
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!
 
Old 10-01-2000, 08:25 PM   #24
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,600

Original Poster
Rep: Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083
A have a few questions for you.

1) What driver are you using?
2) Do you have any non-Ultra2 devices on the chain?
 
Old 10-01-2000, 11:00 PM   #25
bickford
Member
 
Registered: Jun 2000
Location: SUNY Buffalo
Posts: 79

Rep: Reputation: 15
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.
 
Old 10-01-2000, 11:27 PM   #26
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,600

Original Poster
Rep: Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083
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
 
Old 10-08-2000, 06:10 PM   #27
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,600

Original Poster
Rep: Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083
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.
 
Old 10-17-2000, 09:26 PM   #28
vansouza
LQ Newbie
 
Registered: Oct 2000
Location: Las Vegas, NV, USA
Posts: 6

Rep: Reputation: 0
Smile 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...
 
Old 11-07-2000, 08:52 AM   #29
bako
Member
 
Registered: Sep 2000
Location: Haarlem, The Netherlands
Distribution: Freesco, RedHat, Debian
Posts: 41

Rep: Reputation: 15
Talking 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.
 
Old 11-17-2000, 05:18 AM   #30
bako
Member
 
Registered: Sep 2000
Location: Haarlem, The Netherlands
Distribution: Freesco, RedHat, Debian
Posts: 41

Rep: Reputation: 15
Unhappy 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???
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Test Hard Drive performance? voxel Linux - Hardware 7 09-07-2005 01:44 AM
Horrible Hard Drive Performance????? linux-rulz Linux - Hardware 13 06-26-2005 08:10 PM
hard drive performance true_atlantis Linux - General 3 10-26-2004 03:15 AM
Did not get the Hard drive performance Raid0! alpha97 Linux - Hardware 21 07-24-2004 03:52 AM
hard drive performance bynaar Slackware 2 12-18-2002 06:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:34 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