From owner-freebsd-net@FreeBSD.ORG Fri Sep 29 22:07:46 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 38E4216A407; Fri, 29 Sep 2006 22:07:46 +0000 (UTC) (envelope-from rrs@cisco.com) Received: from sj-iport-6.cisco.com (sj-iport-6.cisco.com [171.71.176.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6027943D46; Fri, 29 Sep 2006 22:07:45 +0000 (GMT) (envelope-from rrs@cisco.com) Received: from sj-dkim-1.cisco.com ([171.71.179.21]) by sj-iport-6.cisco.com with ESMTP; 29 Sep 2006 15:07:45 -0700 Received: from sj-core-5.cisco.com (sj-core-5.cisco.com [171.71.177.238]) by sj-dkim-1.cisco.com (8.12.11.20060308/8.12.11) with ESMTP id k8TM7jk0019611; Fri, 29 Sep 2006 15:07:45 -0700 Received: from xbh-sjc-221.amer.cisco.com (xbh-sjc-221.cisco.com [128.107.191.63]) by sj-core-5.cisco.com (8.12.10/8.12.6) with ESMTP id k8TM7j1E001425; Fri, 29 Sep 2006 15:07:45 -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 15:07:44 -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 15:07:44 -0700 Message-ID: <451D990A.8080504@cisco.com> Date: Fri, 29 Sep 2006 18:07:06 -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: Andre Oppermann References: <451C4850.5030302@freebsd.org> <451D884F.1030807@cisco.com> <20060929213722.GR80527@funkthat.com> <451D973C.8070004@freebsd.org> In-Reply-To: <451D973C.8070004@freebsd.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 29 Sep 2006 22:07:44.0495 (UTC) FILETIME=[B098BFF0:01C6E413] DKIM-Signature: a=rsa-sha1; q=dns; l=1032; t=1159567665; x=1160431665; c=relaxed/simple; s=sjdkim1002; 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=sATMwkUjdA/+tRHC9tK3MPk72tolcUkSM6GiE5w4O0dr+wG1HyYnNcqkWfE0DX2eX+c4NJYY Xm6ToVGPS50jnfbw1B7JOXygNW4sYWgN3xsDOqTXTlCwmQRb9Whzq9Cw; Authentication-Results: sj-dkim-1.cisco.com; header.From=rrs@cisco.com; dkim=pass ( sig from cisco.com verified; ); Cc: freebsd-net@freebsd.org, John-Mark Gurney , freebsd-current@freebsd.org, 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 22:07:46 -0000 Andre Oppermann wrote: > John-Mark Gurney wrote: > > mbufs are 256 bytes. Thats what I had thought :-) > >> Hmmm.. If we switched clusters to 1536 bytes in size, we'd be able to >> fit 8 in 12k (though I guess for 8k page boxes we'd do 16 in 24k)... The >> only issue w/ that would be that a few of the clusters would possibly >> split page boundaries... How much this would effect performance would >> be an interesting question to answer... > > > Splitting page boundaries is not an option as it may not be physically > contigous. That can be rather hazardous :-) > > Just don't overengineer the stuff. Mbufs are only used temporarily and > a bit theoretical waste is not much a problem (so far at least). > Yes, but I think a combination of less copying and a bit better use of space could help overall.. but I guess as they say the "proof is in the pudding" so I will have to play a bit.. R -- Randall Stewart NSSTG - Cisco Systems Inc. 803-345-0369 815-342-5222 (cell)