From owner-freebsd-hackers@FreeBSD.ORG Sun Mar 16 04:31:46 2014 Return-Path: Delivered-To: freebsd-hackers@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 ESMTPS id EE40FF55; Sun, 16 Mar 2014 04:31:46 +0000 (UTC) Received: from felyko.com (felyko.com [IPv6:2607:f2f8:a528::3:1337:ca7]) by mx1.freebsd.org (Postfix) with ESMTP id D716CC2B; Sun, 16 Mar 2014 04:31:46 +0000 (UTC) Received: from [10.0.1.3] (c-24-6-115-18.hsd1.ca.comcast.net [24.6.115.18]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by felyko.com (Postfix) with ESMTPSA id 093FD39841; Sat, 15 Mar 2014 21:31:45 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) Subject: Re: mbuf question From: Rui Paulo In-Reply-To: <1394925228.1149.558.camel@revolution.hippie.lan> Date: Sat, 15 Mar 2014 21:31:52 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: References: <53230214.7010501@gmail.com> <532405B7.2020007@gmail.com> <96659837-1FDC-421D-A339-87104A0075C7@FreeBSD.org> <5324D669.804@gmail.com> <5324DAC0.9020508@gmail.com> <1394925228.1149.558.camel@revolution.hippie.lan> To: Ian Lepore X-Mailer: Apple Mail (2.1874) Cc: FreeBSD Hackers , Hooman Fazaeli X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Mar 2014 04:31:47 -0000 On 15 Mar 2014, at 16:13, Ian Lepore wrote: > How about an optimization that puts tags in that area when it's > available to avoid the allocation overhead? I don't know much about = the > network code, so maybe that's not a sensible idea. The problem with mbuf tags is that they are not fixed size, so they = can't easily use UMA (although they use malloc which is backed by UMA, = but the performance is lower). If tags are not an option, I suppose = Hooman could use fields from struct pkthdr, but this might come with = risks if the code is not in the tree.=20 -- Rui Paulo