From owner-freebsd-net@FreeBSD.ORG Sun Jan 21 10:53:25 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 9223B16A400 for ; Sun, 21 Jan 2007 10:53:25 +0000 (UTC) (envelope-from rrs@cisco.com) Received: from sj-iport-3.cisco.com (sj-iport-3-in.cisco.com [171.71.176.72]) by mx1.freebsd.org (Postfix) with ESMTP id 664D313C469 for ; Sun, 21 Jan 2007 10:53:25 +0000 (UTC) (envelope-from rrs@cisco.com) Received: from sj-dkim-4.cisco.com ([171.71.179.196]) by sj-iport-3.cisco.com with ESMTP; 21 Jan 2007 02:53:25 -0800 X-IronPort-AV: i="4.13,217,1167638400"; d="scan'208"; a="458714517:sNHT44923732" 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 l0LArOlG016243; Sun, 21 Jan 2007 02:53:24 -0800 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 l0LArMUw013828; Sun, 21 Jan 2007 02:53:22 -0800 (PST) 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); Sun, 21 Jan 2007 02:53:21 -0800 Received: from [127.0.0.1] ([171.68.225.134]) by xfe-sjc-212.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.1830); Sun, 21 Jan 2007 02:53:21 -0800 Message-ID: <45B345FD.7080001@cisco.com> Date: Sun, 21 Jan 2007 05:52:45 -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> In-Reply-To: <17841.6943.770698.707214@grasshopper.cs.duke.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 21 Jan 2007 10:53:21.0582 (UTC) FILETIME=[5DE9B4E0:01C73D4A] DKIM-Signature: v=0.5; a=rsa-sha256; q=dns/txt; l=947; t=1169376804; x=1170240804; 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=jK0Xfv0MqZ2fkNObyMBejLj71papNNTcqiK8r1Tc0aE=; b=bJMVakYCrCbOLZJTsMglOaDhVoDbPQkDgPBQMHxnS9XGBoWQ3TPUoBLxo0E+mC6WHH2aUZ2/ 3rDilHgQDYxfC3ZySVi0QVykQu0EDcA6vsxh674e6M9pHvx4TnowB1tN; 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: Sun, 21 Jan 2007 10:53:25 -0000 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.. Does that sound about right... (for 4k it would mean you would have 1/2 as many as 2k... roughly.. depending on the o/h of the uma system of course.. need to go look at this). R -- Randall Stewart NSSTG - Cisco Systems Inc. 803-345-0369 803-317-4952 (cell)