From owner-freebsd-net@FreeBSD.ORG Fri Sep 29 20:56:25 2006 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7E19516A412; Fri, 29 Sep 2006 20:56:25 +0000 (UTC) (envelope-from rrs@cisco.com) Received: from sj-iport-5.cisco.com (sj-iport-5.cisco.com [171.68.10.87]) by mx1.FreeBSD.org (Postfix) with ESMTP id 91F9043D4C; Fri, 29 Sep 2006 20:56:23 +0000 (GMT) (envelope-from rrs@cisco.com) Received: from sj-dkim-8.cisco.com ([171.68.10.93]) by sj-iport-5.cisco.com with ESMTP; 29 Sep 2006 13:56:20 -0700 X-IronPort-AV: i="4.09,238,1157353200"; d="scan'208"; a="326731250:sNHT1277491074" Received: from sj-core-4.cisco.com (sj-core-4.cisco.com [171.68.223.138]) by sj-dkim-8.cisco.com (8.12.11.20060308/8.12.11) with ESMTP id k8TKuKjs005208; Fri, 29 Sep 2006 13:56:20 -0700 Received: from xbh-sjc-221.amer.cisco.com (xbh-sjc-221.cisco.com [128.107.191.63]) by sj-core-4.cisco.com (8.12.10/8.12.6) with ESMTP id k8TKuKif028081; Fri, 29 Sep 2006 13:56:20 -0700 (PDT) Received: from xfe-sjc-212.amer.cisco.com ([171.70.151.187]) by xbh-sjc-221.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.1830); Fri, 29 Sep 2006 13:56:19 -0700 Received: from [127.0.0.1] ([171.68.225.134]) by xfe-sjc-212.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.1830); Fri, 29 Sep 2006 13:56:19 -0700 Message-ID: <451D884F.1030807@cisco.com> Date: Fri, 29 Sep 2006 16:55:43 -0400 From: Randall Stewart User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050920 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Mike Silbersack References: <451C4850.5030302@freebsd.org> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 29 Sep 2006 20:56:19.0284 (UTC) FILETIME=[B6697140:01C6E409] DKIM-Signature: a=rsa-sha1; q=dns; l=1339; t=1159563380; x=1160427380; c=relaxed/relaxed; s=sjdkim8002; h=Content-Type:From:Subject:Content-Transfer-Encoding:MIME-Version; d=cisco.com; i=rrs@cisco.com; z=From:Randall=20Stewart=20 |Subject:Re=3A=20Much=20improved=20sosend_*()=20functions; X=v=3Dcisco.com=3B=20h=3DVUE9hWftOvPULvUJ9EhsWe/RDnk=3D; b=aBOdPqw/QULXevX7mWrz3kp1PRqkab5wHl0lALAfMFK5I6ttMWMfmqf9i5/cTmAWym5u0BJQ NpyNNks9qZ7sqJ3+0e/88PgaRxr/8H5K3IoEIo49tUgF/AWc/ZdWMv+d; Authentication-Results: sj-dkim-8.cisco.com; header.From=rrs@cisco.com; dkim=pass ( sig from cisco.com verified; ); Cc: freebsd-net@freebsd.org, freebsd-current@freebsd.org, Andre Oppermann , gallatin@cs.duke.edu Subject: Re: Much improved sosend_*() functions X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Sep 2006 20:56:25 -0000 Mike Silbersack wrote: > On Fri, 29 Sep 2006, Andre Oppermann wrote: > > >>over it an copies the data into the mbufs by using uiomove(). sosend_dgram() >>and sosend_generic() are change to use m_uiotombuf() instead of sosend_copyin(). > > > Can you do some UDP testing with 512b, 1K, 2K, 4K, 8K, and 16K packets to > see if performance changes there as well? Hmm.. I would think 512b and 1K will not show any improvement.. since they would probably end up either in an mbuf chain.. or a single 2k (or maybe 4k) cluster.. ... quite a waste.. now if we had 512b and 1k clusters that would be cool... In fact I have always thought we should: a) have no data portion in an mbuf.. just pointers i.e. always an EXT b) Have a 256/512 and 1k cluster too.. This would allow copy by reference no matter what size si being sent... But of course .. thats just me :-) R > > How about local sockets? > > Impressive improvements for TCP, in any case! > > Mike "Silby" Silbersack > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" > -- Randall Stewart NSSTG - Cisco Systems Inc. 803-345-0369 815-342-5222 (cell)