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.
Distribution: Red Hat 8.0 (Home), Red Hat 8.0 (Work)
Posts: 388
Rep:
Why does performance increase when I mount?
Hi all,
I am busy testing the max throughputs of some IBM Ultrastar XP (18GB) SCSI disks that I have.
I have noticed a very strange thing, hope some of you will be able to shed some light on this.
I use hdparm to test the drives. Usually I just type hdparm -t /dev/sda and wait for the results. So far, for every disk I have tested the throughput that I got was 10.71 MB/s. This was reproducible with different disks, and I have a whole lot of them.
Then I tried this: format the disk with mke2fs, and mount the partition, usually I mount them at /sda.
Do hdparm -t /dev/sda1, wait for the results, and I get 14.12 MB/s. Also reproducible, every time, and when I unmount and test again, the transfer rates go back to 10.71 MB/s.
My question is obviously this : What causes the transfer rate to increase in the second example (i.e. when the partition is mounted)? What is actually going on?
Distribution: Red Hat 8.0 (Home), Red Hat 8.0 (Work)
Posts: 388
Original Poster
Rep:
Yeah, mcleodnine thats exactly what I mean....different speeds depending whether you test /dev/sda or /dev/sda1. Why does this happen? I tried to search the whole night for something like that, and came up with squat.
My first guess would be that each partition is on a different part of the platter. IIRC the closer the track is to the outside (larger diameter) the lower the seek time and maybe throughput.
Have a look at www.tldp.org and try to find the Multiple Disks How-To as it covers this in greater detail.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.