Re: Unexpected splice "always copy" behavior observed
From: Mathieu Desnoyers
Date: Wed May 19 2010 - 11:51:44 EST
* Steven Rostedt (rostedt@xxxxxxxxxxx) wrote:
> On Wed, 2010-05-19 at 07:59 -0700, Linus Torvalds wrote:
> >
>
> > Btw, since you apparently have a real case - is the "splice to file"
> > always just an append? IOW, if I'm not right in assuming that the only
> > sane thing people would reasonable care about is "append to a file", then
> > holler now.
>
> My use case is just to move the data from the ring buffer into a file
> (or network) as fast as possible. It creates a new file and all
> additions are "append to a file".
>
> I believe Mathieu does the same.
>
> With me, you are correct.
Same here. My ring buffer only ever use splice() to append at the end of a file
or to the network, and always outputs data in multiples of the page size.
Thanks,
Mathieu
>
> -- Steve
>
>
--
Mathieu Desnoyers
Operating System Efficiency R&D Consultant
EfficiOS Inc.
http://www.efficios.com
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/