From owner-freebsd-net@FreeBSD.ORG Sun Feb 3 05:54:17 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4D98C16A41A for ; Sun, 3 Feb 2008 05:54:17 +0000 (UTC) (envelope-from kip.macy@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.179]) by mx1.freebsd.org (Postfix) with ESMTP id 207A413C448 for ; Sun, 3 Feb 2008 05:54:17 +0000 (UTC) (envelope-from kip.macy@gmail.com) Received: by wa-out-1112.google.com with SMTP id k17so1644233waf.3 for ; Sat, 02 Feb 2008 21:54:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=hDgKyW2uxSRe7Qc5tb+jNergzCentTnqaH+3Eaxkpvk=; b=Gl1j1+F6ImvEu1SS3HQgrTbBNvpjJSqUrz+c6JNXdoC5lxJyaKxFpvBkX9mJsIsGIb78w8i7XCef0XydV2T+4z553P9/DleagMgZe0nXeMzAfMI1klTrK5CAKDNbl1usLCSlKlDsxoXXHayN8kSKjODsq6LvFEGGPi+3fYZlwWc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=YkWkOFa+F7RCBNpXoKpVCqVifiQX8q7/AAUmkiezJZVYKigrASzPLVcG59VKcDeubORnbcecBYYnpQVkYCHMC6ihxAT5V2+T58X4+fMylEi78glHCYVajz3S4E+c++hV3ffwa3dSdS5vbymeCTi2s+OJPEPGOBYg42yeN0a54+o= Received: by 10.114.14.1 with SMTP id 1mr5647659wan.9.1202018056049; Sat, 02 Feb 2008 21:54:16 -0800 (PST) Received: by 10.114.255.16 with HTTP; Sat, 2 Feb 2008 21:54:16 -0800 (PST) Message-ID: Date: Sat, 2 Feb 2008 21:54:16 -0800 From: "Kip Macy" To: "Aaditya Rai" In-Reply-To: <659520.27857.qm@web32211.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <659520.27857.qm@web32211.mail.mud.yahoo.com> Cc: freebsd-net@freebsd.org Subject: Re: m_getjcl for contiguous jumbo allocations 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, 03 Feb 2008 05:54:17 -0000 On Feb 2, 2008 8:46 PM, Aaditya Rai wrote: > Hello, > > I'm using release 6.2. I need to do allocations upto > 8K which are physically contiguous. > > Is m_getjcl the right call for this? > > Also, if I use m_getjcl to do 4K allocations, after > two or three allocations I start getting cluster/mbuf > allocation failures; or weird memory corruptions. If I > change it to use MGETCL etc. and do 2K allocations, > the same code works fine. > > Is m_getjcl() stable in 6.2? Should I fall back on > implementing my own little backend contig-allocator? On 6.2 you'll have to fall back your own allocator if you are unable to chain 4k jumbo frames. In -CURRENT physically contiguous jumbo frames are the default. I'm not sure if that made it in to 7.0. -Kip