Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
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 currently have 2 computers running Ubuntu 5.04. One of them is a Sony Vaio, 512 MB RAM, P4 2.8 GHz (no HT) 120 GB hda, 8 GB hdb, and I'm not sure what other info you need.
The other is an HP Pavilion AMD Athlon XP 2200+ (1.8 GHz), 1 GB RAM, 60 GB hda, 15 GB hdb and again, ask if u need more info.
On the Vaio, when I use the command hdparm -t to test hard disk performance, I get approx. 50 MB per second on hda and approx 15 MB per second on hdb.
On the Pavilion however, I only get between 6 and 7 MB per second for both harddrives. Both have DMA enabled. Since both harddrives are running slower than they should be, I have a feeling that it is something wrong with the MoBo and not the harddrives.
I'd tend to want to bet money that the 15GB has a slower rotational speed than the 120GB. That will acount for a lot of it. And I think that 50 is not a bad speed considering the overhead involved. Try storagereview.com for some background on disk i/o speeds.
Is the only setting you are using with hdparm is -d1 ?
If you post the output of hdparm -i /dev/hdx & hdparm -I /dev/hdx I could make some recommendations of what other switches to use.
The warning. hdparm has the possibility to corrupt data. I've never had it happen to me, but I only enable features that I know my drives support. From the information you posted, I can only conclude the following about your drives.
It is probably a good idea to benchmark your current settings a few times by running. hdparm -tT /dev/hda, and write down the two speeds so you can compare them to the speeds of the setting I suggest. If you don't like the setting I suggest, reboot and they will be cleared.
hdparm -d1 -m16 -X69 -u1 /dev/hda
hdparm -d1 -m16 -X68 -u1 /dev/hdb
Drive hda also supports auto-readahead, but the value that it supports isn't shown. You could add two switches to enable auto-readahead
-A1 to enable it
-a## to set how far to read ahead. Mine is 256, but your doesn't say how far it can read ahead.
I imagine you have support for 32bit I/O, but I can only guess that so I haven't included that switch.
--------------------
hdparm is the worst documented utility in the world. You have to google it and read over 10 sites before you get the info you need to understand it. I have a notebook of linux related stuff and two pages are dedicated to how hdparm works.
Last edited by musicman_ace; 06-25-2005 at 09:10 AM.
I followed some instructions from a guide on the web and to help me tune my harddrive performace. it is going really fast for both hard drives now. Does any of the stuff below look like there might be a problem? I passed the switch -k1 to keep the settings, was this a good idea?
I was just wondering also, will I notice if data corruption has occured right away or will it be little things, like missing files? I'm hoping it's right away, cause then I'm fine.
I've never used the -k, I put my settings in /etc/conf.d/local.start. As for file corruption, as I said I've never noticed any so I don't know if it takes days, weeks, months, or years. I've been using hdparm settings for years and haven't noticed any.
You posted the new speeds, but was there any increase? Without the old speeds, those new ones are meaningless to me.
The old ones were approx 6 MB per second for both HDDs. So it was quite a speed up. What I'm wondering is, did any of the changes I've made (you can see the differences by looking at the different posts I made) look dangerous to you?
if you used the commands I specified, they aren't dangerous because they are simply the features that the drives support. the -i and -I list information and features. I could add more switches to those, but I don't know for sure that the drive support them. What I recommended should be completely safe.
It appears that MutliSect is still off.
Is the 60GB a 7200RPM and 15GB 5400RPM?
Last edited by musicman_ace; 06-25-2005 at 06:58 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.