From: "Michael O'Reilly" <public@dgmo.org>
To: "Adam J. Richter" <adam@yggdrasil.com>
Cc: riel@conectiva.com.br, linux-kernel@vger.kernel.org,
torvalds@transmeta.com
Subject: Re: PATCH(?): linux-2.4.4-pre2: fork should run child first
Date: 14 Apr 2001 18:42:28 +1000 [thread overview]
Message-ID: <m1eluvna8b.fsf@mo.optusnet.com.au> (raw)
In-Reply-To: <200104140758.AAA06084@adam.yggdrasil.com>
In-Reply-To: "Adam J. Richter"'s message of "Sat, 14 Apr 2001 00:58:29 -0700"
"Adam J. Richter" <adam@yggdrasil.com> writes:
> Rik van Riel <riel@conectiva.com.br> writes, regarding the idea
> of having do_fork() give all of the parent's remaining time slice to
> the newly created child:
>
> >It could upset programs which use threads to handle
> >relatively IO poor things (like, waiting on disk IO in a
> >thread, like glibc does to fake async file IO).
>
> Good point.
Is it really? If a program is using thread to handle IO things,
then:
a) It's not going to create a thread for every IO! So I think
the argument is suprious anyway.
b) You _still_ want the child to run first. The child
will start the I/O and block, then switching back
to the parent. This maximises the I/O thruput without
costing you any CPU. (Reasoning: The child running
2nd will increase the latency which automatically
reduces the number of ops/second you can get).
Michael.
next prev parent reply other threads:[~2001-04-14 8:43 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-04-14 7:58 PATCH(?): linux-2.4.4-pre2: fork should run child first Adam J. Richter
2001-04-14 8:42 ` Michael O'Reilly [this message]
2001-04-14 9:00 ` Linus Torvalds
2001-04-14 15:06 ` Rik van Riel
-- strict thread matches above, loose matches on Subject: below --
2001-04-14 16:11 Adam J. Richter
2001-04-14 2:45 Adam J. Richter
2001-04-13 23:51 Adam J. Richter
2001-04-14 1:54 ` John Fremlin
2001-04-14 2:29 ` Linus Torvalds
2001-04-14 2:51 ` Alexander Viro
2001-04-14 2:52 ` Ulrich Drepper
2001-04-13 16:28 Hubertus Franke
2001-04-12 19:45 Adam J. Richter
2001-04-12 19:15 Adam J. Richter
2001-04-12 13:44 Hubertus Franke
2001-04-12 8:55 Adam J. Richter
2001-04-12 12:38 ` Horst von Brand
2001-04-17 9:15 ` Éric Brunet
2001-04-17 14:26 ` Jesse Pollard
2001-04-17 15:32 ` Éric Brunet
2001-04-13 21:08 ` John Fremlin
2001-04-14 3:53 ` Rik van Riel
2001-04-14 4:40 ` Linus Torvalds
2001-04-14 13:35 ` Rik van Riel
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=m1eluvna8b.fsf@mo.optusnet.com.au \
--to=public@dgmo.org \
--cc=adam@yggdrasil.com \
--cc=linux-kernel@vger.kernel.org \
--cc=riel@conectiva.com.br \
--cc=torvalds@transmeta.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.