LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 10-10-2002, 04:34 PM   #1
Vlad_M
Member
 
Registered: Aug 2002
Location: Cape Town, South Africa
Distribution: Red Hat 8.0 (Home), Red Hat 8.0 (Work)
Posts: 388

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

Thanks to all that answer!!!
Vlad.
 
Old 10-10-2002, 08:38 PM   #2
tangle
Senior Member
 
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761

Rep: Reputation: 78
My guess would be that it takes time to mount the dive. This time is included in on the test which would lower the preformance measurement.
 
Old 10-10-2002, 08:44 PM   #3
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
I get different results when I use /dev/hda and /dev/hda1...
 
Old 10-11-2002, 03:47 AM   #4
Vlad_M
Member
 
Registered: Aug 2002
Location: Cape Town, South Africa
Distribution: Red Hat 8.0 (Home), Red Hat 8.0 (Work)
Posts: 388

Original Poster
Rep: Reputation: 30
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.

What could be the reason?
 
Old 10-11-2002, 07:35 AM   #5
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
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.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Compile from source - increase in performance? csvke Linux - Software 15 01-18-2005 10:08 PM
Increase performance amnesty_puppy Debian 18 11-24-2004 02:44 PM
Increase Performance berkay Fedora 10 08-23-2004 04:24 PM
how to increase performance(geforce2) mandosi Linux - Hardware 0 03-17-2004 04:21 AM
CGI Performance Increase?? bretthoward Programming 9 01-25-2003 07:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 10:31 AM.

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