From owner-svn-src-head@FreeBSD.ORG Mon Aug 19 22:03:36 2013 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id A6A3056D; Mon, 19 Aug 2013 22:03:36 +0000 (UTC) (envelope-from nparhar@gmail.com) Received: from mail-pd0-x231.google.com (mail-pd0-x231.google.com [IPv6:2607:f8b0:400e:c02::231]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 68C9F2BCC; Mon, 19 Aug 2013 22:03:36 +0000 (UTC) Received: by mail-pd0-f177.google.com with SMTP id y10so5791485pdj.36 for ; Mon, 19 Aug 2013 15:03:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=gZ+LY82r/XKH1Vg5YMnKQd56dRuNzynCfNvW3/ZNdhw=; b=gzLXrppjUI3XLAKfPs2QIonW4sXEpAXs3XiA+lNDFbOcT0xXKt3ZPZf/q0Ol7hLXqf bEuliNEr1h5RvvcYeXrbpKwelacEkivwLk6Knk3tqgyfgP3lSA5xAfcCOY5Ze1cA4sWn vO1kz8uo/tbsfy5e45/BsIocCcxaP5NKQSLtcpeXBo6i/9xA5Iqcs6V4q2z6y4F7vXVm IYROG4NQf7NmGKAqjteE3WyzYv719W+ZBT7trb6bqAqR2QymhtRsa8rYPsxojyidfh22 FrzUPWWlRIHOHbT2SK2bSu6ce7eN7FelTfaDfA3AvJ1JuKb82c4dLvDk/tS9Uj79Dr2P O//w== X-Received: by 10.68.228.201 with SMTP id sk9mr15493204pbc.4.1376949816097; Mon, 19 Aug 2013 15:03:36 -0700 (PDT) Received: from [10.192.166.0] (stargate.chelsio.com. [67.207.112.58]) by mx.google.com with ESMTPSA id mr3sm17191807pbb.27.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 19 Aug 2013 15:03:34 -0700 (PDT) Sender: Navdeep Parhar Message-ID: <52129634.7000509@FreeBSD.org> Date: Mon, 19 Aug 2013 15:03:32 -0700 From: Navdeep Parhar User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130819 Thunderbird/17.0.8 MIME-Version: 1.0 To: Andre Oppermann Subject: Re: svn commit: r254520 - in head/sys: kern sys References: <201308191116.r7JBGsc6065793@svn.freebsd.org> <521256CE.6070706@FreeBSD.org> <5212587A.2080202@freebsd.org> <52128937.1010407@freebsd.org> In-Reply-To: <52128937.1010407@freebsd.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, Peter Grehan X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Aug 2013 22:03:36 -0000 On 08/19/13 14:08, Andre Oppermann wrote: > On 19.08.2013 19:40, Peter Grehan wrote: >>> I recently tried some experiments to reduce the number of mbuf and >>> cluster allocations in a 40G NIC driver. M_NOFREE and EXT_EXTREF proved >>> very useful and the code changes to the kernel were minimal. See >>> user/np/cxl_tuning. The experiment was quite successful and I was >>> planning to bring in most of those changes to HEAD. I was hoping to get >>> some runtime mileage on the approach in general before tweaking the >>> ctors/dtors for jumpbo, jumbo9, jumbo16 to allow for an mbuf+refcnt >>> within the cluster. But now M_NOFREE has vanished without a warning... >> >> I also had a virtualization work-in-progress where static mbufs were >> allocated in the kernel and >> M_NOFREE set. >> >> Might be worth sending a prior heads-up for these type of changes. > > I'm sorry for ambushing but this stuff has to be done. I have provided > an alternative way of handling it and I'm happy to help you with your > use case to make it good for you and to prevent the mbuf system from > getting bloated and hackish again. I don't know what Peter's use case is but I'm curious about the already-available alternative to M_NOFREE, if that's what you meant. Can you please elaborate? Regards, Navdeep