From owner-freebsd-net Fri Oct 26 3: 6:42 2001 Delivered-To: freebsd-net@freebsd.org Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [134.226.81.11]) by hub.freebsd.org (Postfix) with SMTP id ED87637B405 for ; Fri, 26 Oct 2001 03:06:39 -0700 (PDT) Received: from walton.maths.tcd.ie by salmon.maths.tcd.ie with SMTP id ; 26 Oct 2001 11:06:39 +0100 (BST) Date: Fri, 26 Oct 2001 11:06:35 +0100 From: David Malone To: Bosko Milekic Cc: Luigi Rizzo , Alfred Perlstein , net@FreeBSD.ORG Subject: Re: performance issues with M_PREPEND on clusters Message-ID: <20011026110635.B14635@walton.maths.tcd.ie> References: <20011023110307.A34494@iguana.aciri.org> <20011023132813.I15052@elvis.mu.org> <20011023114650.C34494@iguana.aciri.org> <20011023140034.M15052@elvis.mu.org> <20011023140628.A36095@iguana.aciri.org> <20011023185759.A328@technokratis.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20011023185759.A328@technokratis.com>; from bmilekic@technokratis.com on Tue, Oct 23, 2001 at 06:57:59PM -0400 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Tue, Oct 23, 2001 at 06:57:59PM -0400, Bosko Milekic wrote: > I believe that the correct way to deal with this issue is to have > M_LEADINGSPACE and M_TRAILINGSPACE simply return the number of bytes > that make up the leading space or trailing space, respectively, > regardless of whether the underlying cluster/mbuf/ext_buf is marked > writable or not. The only problem I can see with this tack is that we might end up with M_LEADINGSPACE macro which does something different to the same macro in {Net,Open}BSD. I guess we should check what their macros do at the moment. When I looked at this question last year I think I found that there were few enough places in the kernel which used M_LEADINGSPACE, so it should be fairly easy to check them. However, I think several of the uses were in KAME code. (I did have some notes on this work, but unfortunately the hard drive with them on whet south recently...) David. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message