From: jw schultz <jw@pegasys.ws>
To: linux-kernel@vger.kernel.org
Subject: Re: Horrible drive performance under concurrent i/o jobs (dlh problem?)
Date: Tue, 24 Dec 2002 09:21:23 -0800 [thread overview]
Message-ID: <20021224172122.GB30929@pegasys.ws> (raw)
In-Reply-To: <B7CC2AA8-1720-11D7-8DC6-000393950CC2@karlsbakk.net>
On Tue, Dec 24, 2002 at 10:18:52AM +0100, Roy Sigurd Karlsbakk wrote:
> >SHORT ANSWER: Segregating partitions reduces seek time. Period.
> >
> >LONG ANSWER: Reads and writes tend to be grouped within a partition.
> >For
> >example, if you're starting a program, you're going to be doing a lot
> >of
> >reads somewhere in the /usr partition. If the program uses temporary
> >files,
> >you're going to do a lot of reads & writes in the /tmp partition. If
> >you're
> >saving a file, you're going to be doing lots of writes to the /home
> >partition. Hence, since most disk accesses occur in groups within a
> >partition, preference should be giving to reducing seek time WITHIN a
> >partition, rather than reducing seek time BETWEEN partitions.
>
> keep in mind that only around half of the seek time is because of the
> partition! Taking an IBM 120GXP as an example:
>
> Average seek: 8.5ms
> Full stroke seek: 15.0ms
> Time to rotate disk one round: 1/(7200/60)*1000 = 8.3ms
I'm afraid your math is off.
The rotational frequency should be 7200*60/sec which makes
for 2.31 us which would produce an average rotational
latency of 1.16us if such a condition even still applies.
My expectation is that the whole track is buffered starting
from the first sector that syncs thereby making the time
rotfreq + rotfreq/nsect or something similar. In any case
the rotational latency or frequency is orders of magnitude
smaller than the seek time, even between adjacent
tracks/cylinders.
If the the stated average seek is 50% of full stroke and not
based on reality then 76% of the cost of an average seek is
attributed to distance and likewise 87% of the cost of a
full. Based on that i'd say the seek distance is a much
bigger player than you are assuming. If it weren't the
value of elevators would be much less.
>
> Then, the sector you're looking for, will, by average, be half a round
> away from where you are, and thus, giving the minimum average seek time
> 8.3/2 = 4.15ms or something like half the seek time. Concidering this,
> you may gain a maximum <= 50% gain in using smaller partitions.
>
> btw. anyone that knows the zone layout on IBM drives?
Having chimed in i'll also mention that having the
filesystems right-sized and small should produce better
locality of reference for multiple files and large files
given the tendency of our filesystems to spread their
directories across the cylinders. One big filesystem is as
likely to have the assorted files spread from one end of the
disk to the other as you will get with several smaller ones.
Witness the discussions that introduce the orlov allocator
to ext[23].
As for the repartitioning when a filesystems outgrows its
partition that is reason #1 for lvm. Care should be taken
though because lvm can also destroy locality through
discontinuous extent allocation.
--
________________________________________________________________
J.W. Schultz Pegasystems Technologies
email address: jw@pegasys.ws
Remember Cernan and Schmitt
next prev parent reply other threads:[~2002-12-24 17:13 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-12-18 19:06 Horrible drive performance under concurrent i/o jobs (dlh problem?) Torben Frey
2002-12-20 20:40 ` Joseph D. Wagner
2002-12-20 22:25 ` David Lang
2002-12-21 6:00 ` Joseph D. Wagner
2002-12-23 1:29 ` David Lang
2002-12-24 9:18 ` Roy Sigurd Karlsbakk
2002-12-24 17:21 ` jw schultz [this message]
2002-12-24 21:00 ` Jeremy Fitzhardinge
2002-12-25 1:34 ` Rik van Riel
2002-12-25 2:02 ` jw schultz
2002-12-25 3:41 ` Barry K. Nathan
2002-12-23 17:48 ` Krzysztof Halasa
2002-12-23 18:13 ` Denis Vlasenko
-- strict thread matches above, loose matches on Subject: below --
2002-12-18 21:10 Con Kolivas
2002-12-18 22:16 ` Torben Frey
2002-12-18 22:37 ` Andrew Morton
2002-12-18 23:30 ` Torben Frey
2002-12-18 23:46 ` Andrew Morton
2002-12-18 22:40 ` Torben Frey
2002-12-19 14:29 Torben Frey
2002-12-20 1:47 ` Nuno Silva
2002-12-27 13:04 ` Torben Frey
2002-12-20 14:27 ` Roger Larsson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20021224172122.GB30929@pegasys.ws \
--to=jw@pegasys.ws \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox