From: Ben LaHaise <bcrl@redhat.com>
To: Manfred Spraul <manfred@colorfullife.com>
Cc: <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] zero^H^H^H^Hsingle copy pipe
Date: Mon, 7 May 2001 12:49:16 -0400 (EDT) [thread overview]
Message-ID: <Pine.LNX.4.33.0105071243450.8156-100000@devserv.devel.redhat.com> (raw)
In-Reply-To: <001601c0d713$d60a17b0$5517fea9@local>
On Mon, 7 May 2001, Manfred Spraul wrote:
> The main problem is that map_user_kiobuf() locks pages into memory.
> It's a bad idea for pipes. Either we must severely limit the maximum
> amount of data in the direct-copy buffers, or we must add a swap file
> based backing store. If I understand the BSD direct-pipe code correctly
> it has a swap file based backing store. I think that's insane. And
> limiting the direct copy buffers to a few kB defeats the purpose of
> direct copy.
Okay, how about the following instead (I'm thinking of generic code that
we can reuse): continue to queue the mm, address, length tuple (I've
actually got use for this too), and then use a map_mm_kiobuf (which is
map_user_kiobuf but with an mm parameter) for the portion of the buffer
that's currently being copied. That improves code reuse and gives us a
few primatives that are quite useful elsewhere.
> And the current pipe_{read,write} are a total mess with nested loops and
> gotos. It's possible to create wakeup storms. I rewrote them as well ;-)
Cool! =)
-ben
next prev parent reply other threads:[~2001-05-07 16:49 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.989055541.17259.linux-kernel2news@redhat.com>
2001-05-07 16:15 ` Ben LaHaise
2001-05-07 16:35 ` Manfred Spraul
2001-05-07 16:49 ` Ben LaHaise [this message]
2001-05-07 23:04 ` David S. Miller
2001-05-07 23:05 ` David S. Miller
[not found] <E14wscv-00046J-00@the-village.bc.nu>
2001-05-07 21:48 ` Manfred Spraul
2001-05-05 13:05 Manfred Spraul
[not found] ` <m2wv7vk2xi.fsf@boreas.yi.org.>
[not found] ` <3AF45FAB.595951F8@colorfullife.com>
[not found] ` <m2k83vjyrz.fsf@boreas.yi.org.>
[not found] ` <3AF473F8.F01EF82A@colorfullife.com>
2001-05-07 17:01 ` John Fremlin
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=Pine.LNX.4.33.0105071243450.8156-100000@devserv.devel.redhat.com \
--to=bcrl@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=manfred@colorfullife.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
all inboxes | Powered by JetHome®