From owner-freebsd-net@FreeBSD.ORG Mon Jan 22 23:06:53 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 129C016A400 for ; Mon, 22 Jan 2007 23:06:53 +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 E32E513C448 for ; Mon, 22 Jan 2007 23:06:52 +0000 (UTC) (envelope-from rrs@cisco.com) Received: from sj-dkim-4.cisco.com ([171.71.179.196]) by sj-iport-6.cisco.com with ESMTP; 22 Jan 2007 15:06:52 -0800 X-IronPort-AV: i="4.13,221,1167638400"; d="scan'208"; a="104318098:sNHT44223822" Received: from sj-core-5.cisco.com (sj-core-5.cisco.com [171.71.177.238]) by sj-dkim-4.cisco.com (8.12.11/8.12.11) with ESMTP id l0MN6qNO006785; Mon, 22 Jan 2007 15:06:52 -0800 Received: from xbh-sjc-211.amer.cisco.com (xbh-sjc-211.cisco.com [171.70.151.144]) by sj-core-5.cisco.com (8.12.10/8.12.6) with ESMTP id l0MN6nVG029498; Mon, 22 Jan 2007 15:06:52 -0800 (PST) Received: from xfe-sjc-211.amer.cisco.com ([171.70.151.174]) by xbh-sjc-211.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.1830); Mon, 22 Jan 2007 15:06:51 -0800 Received: from [127.0.0.1] ([171.68.225.134]) by xfe-sjc-211.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.1830); Mon, 22 Jan 2007 15:06:51 -0800 Message-ID: <45B5436B.7090502@cisco.com> Date: Mon, 22 Jan 2007 18:06:19 -0500 From: Randall Stewart User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.8) Gecko/20061029 FreeBSD/i386 SeaMonkey/1.0.6 MIME-Version: 1.0 To: Andrew Gallatin References: <45B0D2E3.9050203@cisco.com> <17841.6943.770698.707214@grasshopper.cs.duke.edu> <45B345FD.7080001@cisco.com> <17844.51894.773943.99076@grasshopper.cs.duke.edu> In-Reply-To: <17844.51894.773943.99076@grasshopper.cs.duke.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 22 Jan 2007 23:06:51.0842 (UTC) FILETIME=[007C3220:01C73E7A] DKIM-Signature: v=0.5; a=rsa-sha256; q=dns/txt; l=1278; t=1169507212; x=1170371212; c=relaxed/simple; s=sjdkim4002; h=Content-Type:From:Subject:Content-Transfer-Encoding:MIME-Version; d=cisco.com; i=rrs@cisco.com; z=From:=20Randall=20Stewart=20 |Subject:=20Re=3A=20kern_mbuf.c=20patch |Sender:=20; bh=DVqfuhElcksGwVPhjg64A63i70d40KsBjkMfuUJWl+0=; b=sXNodZh4phZBitj0K+u/g3JjLlFX94wjrMt7IZwzeKifFrH6m70PhFamEDvdrtHjIHnnG6iH fnq+OWqE6MaQR4q2VURAIDTNPvEUdcC/z+YM6ip4rIdPPJmneWusT6sD; Authentication-Results: sj-dkim-4; header.From=rrs@cisco.com; dkim=pass (sig from cisco.com/sjdkim4002 verified; ); Cc: freebsd-net Subject: Re: kern_mbuf.c patch 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: Mon, 22 Jan 2007 23:06:53 -0000 Andrew Gallatin wrote: > Randall Stewart writes: > > Andrew Gallatin wrote: > > > Randall Stewart writes: > > > > nmbclusters = 1024 + maxusers * 64; > > > > + nmbjumbop = 100 + (maxusers * 4); > > > > > > The limit on page-size jumbos seems far too small. Since the socket > > > buffer code now uses page-sized jumbos, I'd expect to see its limit be > > > the same as nmbclusters. > > > > > > > > > Drew > > > > > Drew: > > > > Let me re-visit this .. I started real small on purpose.. so > > folks would complain ;-) > > > > How about if I calculate the number of pages the > > nmbclusters use (I will go look in the UMA structures) and > > then make it so the limit is the same number of pages > > (scaled like nmbclusters) for each of the larger clusters.. > > That sounds reasonable to me, at least for nmbjumbop, but I'm not sure > that the larger 9k and 16k clusters are used outside of drivers, so > the nmbclusters limit may be too large for them. But I suppose some > limit is better than none :) > > Drew > SCTP uses the best fit size for user data.. thus 16k gets used for large messages :-) R -- Randall Stewart NSSTG - Cisco Systems Inc. 803-345-0369 803-317-4952 (cell)