From: <pcg@goof.com ( Marc) (A.) (Lehmann )>
To: Roger Larsson <roger.larsson@skelleftea.mail.telia.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [resent PATCH] Re: very slow parallel read performance
Date: Sat, 25 Aug 2001 02:28:52 +0200 [thread overview]
Message-ID: <20010825022852.P547@cerebro.laendle> (raw)
In-Reply-To: <20010824201125Z16096-32383+1213@humbolt.nl.linux.org> <Pine.LNX.4.33L.0108241713420.31410-100000@duckman.distro.conectiva> <20010825012338.B547@cerebro.laendle> <200108242344.f7ONi0h21270@mailg.telia.com>
In-Reply-To: <200108242344.f7ONi0h21270@mailg.telia.com>
On Sat, Aug 25, 2001 at 01:39:35AM +0200, Roger Larsson <roger.larsson@skelleftea.mail.telia.com> wrote:
> Try to add only one - but one that surely reads from another file...
unless two clients request the same file (possible but very rare), no
thread will read from the same file (even if, at 800 clients this is a
rare occasion).
> In the example it looked like only one was waiting for data.
> Then you added 15 more => 16 waiting for data...
exactly. and when i add one more => 2 waiting for data. I admit I have no
idea what you are after ;) My problem is that I want much more speed out
of the elevator. read-ahead cannot help in the general case, as the numebr
of clients will not decrease, but increase, so at one point I simply will
have to live without any read-ahead to get any performance at all.
> But you should see the read ahead effect when going from 1 to 2 concurrently
> reading. You can actually see the effect when doing a diff with two files :-)
1 1 1 0 3068 16780 210080 0 0 5492 0 4045 1809 43 37 20
2 0 3 0 3060 16776 210096 0 0 6944 0 4151 1650 44 42 14
2 1 1 0 3056 16796 210076 0 0 4072 2572 3875 1542 25 35 40
1 1 1 0 3056 16796 210072 0 0 6460 0 3943 1801 36 37 27
1 1 1 0 3064 16796 210072 0 0 6724 0 4134 1807 48 36 16
2 1 1 0 3056 16796 210060 0 0 5868 0 4226 1894 55 34 12
2 1 0 0 3056 16796 210056 0 0 7020 0 4229 1743 46 38 15
1 1 0 0 3056 16872 209980 0 0 5220 2124 4260 1462 41 43 16
2 1 2 0 3064 16868 209984 0 0 4608 0 3935 1647 44 48 8
2 2 0 0 3060 16868 210000 0 0 5340 0 4178 1874 42 43 15
2 1 2 0 3068 16840 210000 0 0 5724 0 4239 1803 59 40 1
# added one more thread
3 1 4 0 3560 16808 210140 0 0 6616 0 4179 1550 50 36 14
4 1 4 0 3056 16848 210576 0 0 5868 1384 4018 1653 41 37 22
1 2 1 0 3056 16848 210708 0 0 4348 952 4048 1429 45 43 13
3 2 0 0 3056 16848 210712 0 0 5968 0 4130 1740 44 42 14
1 2 0 0 3056 16848 210700 0 0 5376 0 4251 1988 40 46 14
1 2 2 0 3064 16836 210712 0 0 6704 0 4476 1701 41 40 18
2 4 1 0 3056 16828 210724 0 0 5024 316 3919 1647 44 30 26
1 2 1 0 3056 16828 210716 0 0 4124 1832 4048 1559 39 42 19
(as you can see, another process was running here). one more thread does
not change much (server throughput goes down to about 19mbit, but that
could be attributed to pure chance).
0.000571 read(6, "\300\317\347\n", 4) = 4 <0.000272>
0.000649 lseek(1368, 23993104, SEEK_SET) = 23993104 <0.000039>
0.000354 read(1368, "\f\vv\247\25(\27\27\211B@\374\274{\360\n\22\201\361WvF"..., 65536) = 65536 <0.023478>
0.024785 write(9, "\300\317\347\n", 4) = 4 <0.000282>
0.000702 read(6, "\200\\\2\n", 4) = 4 <0.000279>
0.000697 lseek(1485, 33253196, SEEK_SET) = 33253196 <0.000040>
0.007086 read(1485, "\276IY\315\213qM\16#\202 D\345\24\210>\205\231I(H\304 "..., 65536) = 65536 <0.051500>
0.052311 write(9, "\200\\\2\n", 4) = 4 <0.000093>
anyway, my server would be happy without any read-ahead (socket +
userspace buffers already are readahead), but I certainly need the
head-movement-optimization from the elevator. And I don't see how I can
get this without issues many reads in parallel.
--
-----==- |
----==-- _ |
---==---(_)__ __ ____ __ Marc Lehmann +--
--==---/ / _ \/ // /\ \/ / pcg@goof.com |e|
-=====/_/_//_/\_,_/ /_/\_\ XX11-RIPE --+
The choice of a GNU generation |
|
next prev parent reply other threads:[~2001-08-25 0:29 UTC|newest]
Thread overview: 123+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-08-23 21:35 very slow parallel read performance 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
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 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-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-24 23:23 ` Lehmann
[not found] ` <200108242344.f7ONi0h21270@mailg.telia.com>
2001-08-25 0:28 ` Lehmann [this message]
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
-- strict thread matches above, loose matches on Subject: below --
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=20010825022852.P547@cerebro.laendle \
--to=pcg@goof.com \
--cc=linux-kernel@vger.kernel.org \
--cc=roger.larsson@skelleftea.mail.telia.com \
/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