From: Octavian Purdila <opurdila@ixiacom.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [RFC] [PATCH] splice: add ->splice_read support for /dev/zero
Date: Tue, 19 Aug 2008 12:07:42 +0300 [thread overview]
Message-ID: <200808191207.42550.opurdila@ixiacom.com> (raw)
In-Reply-To: <20080818214318.7142ae3e.akpm@linux-foundation.org>
From: Andrew Morton <akpm@linux-foundation.org>
Date: Mon, 18 Aug 2008 21:43:18 -0700
> > Preallocating the zero page is simpler and faster with the relatively
> > small (?) drawback of using an extra page of memory.
>
> How much faster is it? What workloads/benchmarks/etc?
>
I should have said "theoretically faster" :)
I did not perform any tests, but, did I assumed correctly that it is going to
be faster preallocating it then allocating it in every splice call?
> > Maybe when CONFIG_EMBEDED is selected we can switch to dynamically
> > allocating the page?
>
> One more page won't kill us. People might want one-page-per-node, too.
> But that all depends on what the benefits and applications of this are..
Its the reverse of splice for /dev/null. Sometimes you don't care of the data
pushed through the socket (e.g. protocol payload in networking testing).
BTW, the patch its buggy, I'll send a new version for linux-next if you decide
its worth it.
Thanks,
tavi
prev parent reply other threads:[~2008-08-19 9:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-07 2:00 Octavian Purdila
2008-08-19 4:43 ` Andrew Morton
2008-08-19 9:07 ` Octavian Purdila [this message]
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=200808191207.42550.opurdila@ixiacom.com \
--to=opurdila@ixiacom.com \
--cc=akpm@linux-foundation.org \
--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
all inboxes | Powered by JetHome®