From: Roger Larsson <roger.larsson@skelleftea.mail.telia.com>
To: "Gérard Roudier" <groudier@free.fr>,
"Rik van Riel" <riel@conectiva.com.br>
Cc: "Marc A. Lehmann" <pcg@goof.com>, <linux-kernel@vger.kernel.org>,
<oesi@plan9.de>
Subject: Re: [resent PATCH] Re: very slow parallel read performance
Date: Sat, 25 Aug 2001 11:26:10 +0200 [thread overview]
Message-ID: <200108250930.f7P9UZH10871@maile.telia.com> (raw)
In-Reply-To: <20010825094000.O756-100000@gerard>
In-Reply-To: <20010825094000.O756-100000@gerard>
On Saturday den 25 August 2001 10:02, Gérard Roudier wrote:
> On Fri, 24 Aug 2001, Rik van Riel wrote:
> > On Fri, 24 Aug 2001, Gérard Roudier wrote:
> > > The larger the read-ahead chunks, the more likely trashing will
> > > occur. In my opinion, using more than 128 K IO chunks will not
> > > improve performances with modern hard disks connected to a
> > > reasonnably fast controller, but will increase memory pressure
> > > and probably thrashing.
> >
> > Your opinion seems to differ from actual measurements
> > made by Roger Larsson and other people.
>
> The part of my posting that talked about modern hard disks sustaining more
> than 8000 IOs per second and controllers sustaining 15000 IOs per second
> is a _measurement_.
>
> With such values, given a U160 SCSI BUS, using 64K IO chunks will result
> in about less than 25% of bandwidth used for the SCSI protocol and 75% for
> useful data at full load (about 2000 IO/s - 120 MB/s). This is a
> _calculation_. With 128K IO chunks, less than 15% of the SCSI BUS will be
> used for the SCSI protocol and more than 85% for usefull data. Still a
> _calculation_.
>
> This let me claim - opinion based on fairly simple calculations - that if
> using more 128 K IO chunks gives significantly better throughput, then
> some serious IO scheduling problem should exist in kernel IO subsystems.
Where did the seek time go? And rotational latency?
[I hope my calculations are correct]
This is mine (a IBM Deskstar 75GXP)
Sustained data rate (MB/sec) 37
Seek time (read typical)
Average (ms) 8.5
Track-to-track (ms) 1.2
Full-track (ms) 15.0
Data buffer 2 MB
Latency (calculated 7200 RPM) 4.2 ms
So sustained data rate is 37 MB/s
> hdparm -t gives around 35 MB/s
best I got during testing or real files is 32 MB/s
A small calculation:
Track-to-track time is 1.2 ms + time to rotate 4.2 ms = 5.4 ms
In this time I can read 37 MB/s * 5.4 ms = 200 kB or
more than 48 pages (instead of moving the head to the closest
track I could read 48 pages...)
Average is 8.5 ms + 4.2 ms => 114 pages
Reading a maximum of 114 pages at a time gives on the average
half the maximum sustained throughput for this disk.
But the buffer holds 512 pages... => I tried with that. [overkill]
* Data from a Seagate Cheetah X15 ST336732LC (Better than most
disks out there - way better than mine)
Formatted Int Transfer Rate (min) 51 MBytes/sec
Formatted Int Transfer Rate (max) 69 MBytes/sec
Average Seek Time, Read 3.7 msec typical
Track-to-Track Seek, Read 0.5 msec typical
Average Latency 2 msec
Default Buffer (cache) Size 8,192 Kbytes
Spindle Speed 15K RPM
Same calculation:
Track-to-track: (2 + 0.5) ms * 51 MB = 127 kB or 31 pages (42 pages max)
Average: (2 + 3.7 ms) * 51 MB/s = 290 kB or almost 71 pages (96 pages max)
Reading a maximum of 71 pages gives on the average half the
maximum sustained throughput. [smart buffering in the drive might help
when reading from several streams]
/RogerL
--
Roger Larsson
Skellefteå
Sweden
next prev parent reply other threads:[~2001-08-25 9:30 UTC|newest]
Thread overview: 123+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-08-23 21:35 Lehmann
2001-08-24 7:35 ` [resent PATCH] " Roger Larsson
2001-08-24 17:43 ` Rik van Riel
2001-08-24 18:28 ` Roger Larsson
2001-08-24 19:02 ` Rik van Riel
2001-08-24 20:37 ` Gérard Roudier
2001-08-24 23:12 ` Rik van Riel
2001-08-25 8:02 ` Gérard Roudier
2001-08-25 9:26 ` Roger Larsson [this message]
2001-08-25 11:49 ` Gérard Roudier
2001-08-25 17:56 ` Roger Larsson
2001-08-25 19:13 ` Gérard Roudier
2001-08-25 13:17 ` Rik van Riel
2001-08-24 22:29 ` Daniel Phillips
2001-08-24 23:10 ` Rik van Riel
2001-08-25 0:42 ` Daniel Phillips
2001-08-27 7:08 ` Helge Hafting
2001-08-27 14:31 ` Daniel Phillips
2001-08-27 14:42 ` Alex Bligh - linux-kernel
2001-08-27 15:14 ` Rik van Riel
2001-08-27 16:04 ` Daniel Phillips
[not found] ` <Pine.LNX.4.33L.0108271213370.5646-100000@imladris.rielhome.cone ctiva>
2001-08-27 19:34 ` Alex Bligh - linux-kernel
2001-08-27 20:03 ` Oliver Neukum
2001-08-27 20:19 ` Alex Bligh - linux-kernel
2001-08-27 21:38 ` Oliver.Neukum
2001-08-27 22:26 ` Alex Bligh - linux-kernel
2001-08-27 21:29 ` Daniel Phillips
2001-08-27 16:02 ` Daniel Phillips
2001-08-27 19:36 ` Alex Bligh - linux-kernel
2001-08-27 20:24 ` Daniel Phillips
2001-08-27 16:55 ` David Lang
2001-08-27 18:54 ` Daniel Phillips
2001-08-27 18:37 ` Oliver Neukum
2001-08-27 19:04 ` Daniel Phillips
2001-08-27 19:43 ` Oliver Neukum
2001-08-27 20:37 ` Daniel Phillips
2001-08-27 22:10 ` Oliver.Neukum
2001-08-27 21:44 ` Linus Torvalds
2001-08-27 22:30 ` Daniel Phillips
2001-08-27 23:00 ` Marcelo Tosatti
2001-08-28 3:10 ` Linus Torvalds
2001-08-27 19:55 ` Richard Gooch
2001-08-27 20:09 ` Oliver Neukum
2001-08-27 21:06 ` Daniel Phillips
2001-08-24 20:18 ` Daniel Phillips
2001-08-24 20:19 ` Rik van Riel
2001-08-24 21:11 ` Daniel Phillips
2001-08-24 23:03 ` Rik van Riel
2001-08-25 0:41 ` Daniel Phillips
2001-08-25 1:34 ` Rik van Riel
2001-08-25 15:49 ` Daniel Phillips
2001-08-25 15:50 ` Rik van Riel
2001-08-25 16:28 ` Lehmann
2001-08-25 16:34 ` Rik van Riel
2001-08-25 16:41 ` Lehmann
2001-08-26 16:55 ` Daniel Phillips
2001-08-26 18:39 ` Rik van Riel
2001-08-26 19:46 ` Daniel Phillips
2001-08-26 19:52 ` Rik van Riel
2001-08-26 20:08 ` Daniel Phillips
2001-08-26 22:33 ` Russell King
2001-08-26 23:24 ` Daniel Phillips
2001-08-26 23:24 ` Russell King
2001-08-27 0:07 ` Rik van Riel
2001-08-27 0:02 ` Rik van Riel
2001-08-27 0:42 ` Daniel Phillips
2001-08-25 16:43 ` Daniel Phillips
2001-08-25 19:15 ` Alan Cox
2001-08-25 19:35 ` Lehmann
2001-08-25 20:52 ` Rik van Riel
2001-08-26 1:38 ` Daniel Phillips
2001-08-26 2:49 ` Lehmann
2001-08-26 17:29 ` Daniel Phillips
2001-08-26 17:37 ` Craig I. Hagan
2001-08-26 18:56 ` Rik van Riel
2001-08-26 19:18 ` Lehmann
2001-08-26 21:07 ` Daniel Phillips
2001-08-26 22:12 ` Rik van Riel
2001-08-26 23:24 ` Lehmann
2001-08-26 20:26 ` Gérard Roudier
2001-08-26 21:20 ` Daniel Phillips
2001-08-26 3:32 ` Rik van Riel
2001-08-26 13:22 ` Lehmann
2001-08-26 13:48 ` Rik van Riel
2001-08-26 14:55 ` Lehmann
2001-08-26 15:06 ` Rik van Riel
2001-08-26 15:25 ` Lehmann
2001-08-25 21:33 ` Alan Cox
2001-08-25 23:34 ` Lehmann
2001-08-26 2:02 ` Rik van Riel
2001-08-26 2:57 ` Lehmann
2001-08-26 0:46 ` John Stoffel
2001-08-26 1:07 ` Alan Cox
2001-08-26 3:30 ` Rik van Riel
2001-08-26 3:40 ` Rik van Riel
2001-08-26 5:28 ` Daniel Phillips
2001-08-24 23:23 ` Lehmann
[not found] ` <200108242344.f7ONi0h21270@mailg.telia.com>
2001-08-25 0:28 ` Lehmann
2001-08-25 3:09 ` Rik van Riel
2001-08-25 9:13 ` Gérard Roudier
2001-08-26 16:54 ` Daniel Phillips
2001-08-26 18:59 ` Victor Yodaiken
2001-08-26 19:38 ` Rik van Riel
2001-08-26 20:05 ` Victor Yodaiken
2001-08-26 20:34 ` Rik van Riel
2001-08-26 20:45 ` Victor Yodaiken
2001-08-26 21:00 ` Alan Cox
2001-08-26 20:42 ` Daniel Phillips
2001-08-26 19:31 ` Lehmann
2001-08-24 19:42 ` Lehmann
2001-08-24 21:42 ` Gérard Roudier
2001-08-25 0:05 ` Craig I. Hagan
2001-08-27 2:03 Rick Hohensee
2001-08-27 2:52 ` Keith Owens
2001-08-28 17:52 ` Kai Henningsen
2001-08-28 21:54 ` Matthew M
2001-08-28 1:08 Dieter Nützel
2001-08-28 0:05 ` Marcelo Tosatti
2001-08-28 1:54 ` Daniel Phillips
2001-08-28 5:01 ` Mike Galbraith
2001-08-28 18:18 ` Andrew Morton
2001-08-28 18:45 ` Hans Reiser
2001-08-28 15:28 Dieter Nützel
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=200108250930.f7P9UZH10871@maile.telia.com \
--to=roger.larsson@skelleftea.mail.telia.com \
--cc=groudier@free.fr \
--cc=linux-kernel@vger.kernel.org \
--cc=oesi@plan9.de \
--cc=pcg@goof.com \
--cc=riel@conectiva.com.br \
/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
all inboxes | Powered by JetHome®