From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753407Ab2DCCeS (ORCPT ); Mon, 2 Apr 2012 22:34:18 -0400 Received: from mail-we0-f174.google.com ([74.125.82.174]:57499 "EHLO mail-we0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752097Ab2DCCeR (ORCPT ); Mon, 2 Apr 2012 22:34:17 -0400 Subject: Re: [PATCH] phonet: Check input from user before allocating From: Eric Dumazet To: Rick Jones Cc: David Miller , remi@remlab.net, levinsasha928@gmail.com, remi.denis-courmont@nokia.com, davej@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <4F7A60A4.5040600@hp.com> References: <1333417997.18626.1.camel@edumazet-glaptop> <20120402.215911.1929019308299701014.davem@davemloft.net> <1333419304.18626.5.camel@edumazet-glaptop> <20120402.222300.1137842205135530387.davem@davemloft.net> <4F7A60A4.5040600@hp.com> Content-Type: text/plain; charset="UTF-8" Date: Tue, 03 Apr 2012 04:34:12 +0200 Message-ID: <1333420452.18626.11.camel@edumazet-glaptop> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2012-04-02 at 19:29 -0700, Rick Jones wrote: > On 04/02/2012 07:23 PM, David Miller wrote: > > From: Eric Dumazet > > Date: Tue, 03 Apr 2012 04:15:04 +0200 > > > >> Any idea of a representative benchmark in dgram af_unix ? > > > > Maybe you could try to make bw_unix from lmbench use > > SOCK_DGRAM? :-) > > I don't know it isn't entirely bitrotted, but there are streaming and > datagram AF_UNIX tests in netperf - they require conditional inclusion > via ./configure --enable-unixdomain: > > http://www.netperf.org/svn/netperf2/trunk/doc/netperf.html#DG_005fSTREAM > Ah yes of course, I'll try that. BTW, do you have plans to support vmsplice()/splice() as a way to provide 0-copy to TCP_STREAM ? I ask this because I am currently working on fixing splice(pipe -> socket) performance problem and need a standard benchmark to publish performance results. Thanks