[lkml]   [2008]   [Aug]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [RFC] [PATCH] splice: add ->splice_read support for /dev/zero
From: Andrew Morton <>
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.


 \ /
  Last update: 2008-08-19 11:13    [W:0.054 / U:30.292 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site