From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail143.messagelabs.com (mail143.messagelabs.com [216.82.254.35]) by kanga.kvack.org (Postfix) with SMTP id 1650C6B0222 for ; Wed, 19 May 2010 11:51:38 -0400 (EDT) Date: Wed, 19 May 2010 11:51:36 -0400 From: Mathieu Desnoyers Subject: Re: Unexpected splice "always copy" behavior observed Message-ID: <20100519155136.GA2039@Krystal> References: <20100518153440.GB7748@Krystal> <1274197993.26328.755.camel@gandalf.stny.rr.com> <1274199039.26328.758.camel@gandalf.stny.rr.com> <20100519063116.GR2516@laptop> <1274280968.26328.774.camel@gandalf.stny.rr.com> <1274281956.26328.776.camel@gandalf.stny.rr.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1274281956.26328.776.camel@gandalf.stny.rr.com> Sender: owner-linux-mm@kvack.org To: Steven Rostedt Cc: Linus Torvalds , Nick Piggin , Peter Zijlstra , Frederic Weisbecker , Pierre Tardy , Ingo Molnar , Arnaldo Carvalho de Melo , Tom Zanussi , Paul Mackerras , linux-kernel@vger.kernel.org, arjan@infradead.org, ziga.mahkovec@gmail.com, davem , linux-mm@kvack.org, Andrew Morton , KOSAKI Motohiro , Christoph Lameter , Tejun Heo , Jens Axboe List-ID: * Steven Rostedt (rostedt@goodmis.org) 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, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org