From owner-freebsd-net Fri Jul 3 03:17:05 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id DAA29419 for freebsd-net-outgoing; Fri, 3 Jul 1998 03:17:05 -0700 (PDT) (envelope-from owner-freebsd-net@FreeBSD.ORG) Received: from labinfo.iet.unipi.it (labinfo.iet.unipi.it [131.114.9.5]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id DAA29385 for ; Fri, 3 Jul 1998 03:16:46 -0700 (PDT) (envelope-from luigi@labinfo.iet.unipi.it) Received: from localhost (luigi@localhost) by labinfo.iet.unipi.it (8.6.5/8.6.5) id KAA13909; Fri, 3 Jul 1998 10:46:00 +0200 From: Luigi Rizzo Message-Id: <199807030846.KAA13909@labinfo.iet.unipi.it> Subject: Re: how about including dummynet in 2.2.7 ? To: julian@whistle.com (Julian Elischer) Date: Fri, 3 Jul 1998 10:45:59 +0200 (MET DST) Cc: eivind@yes.no, jkh@time.cdrom.com, net@FreeBSD.ORG In-Reply-To: from "Julian Elischer" at Jul 3, 98 02:44:48 am X-Mailer: ELM [version 2.4 PL23] Content-Type: text Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > This is the time to do this..... > Peter Wemm is possibly going to add the transparent proxy stuff which > blows the struct well over 1 mbuf anyhow. > his patch also includes the "use a cluster" fix from -current" why not increasing default mbufs to 256 instead of the current 128 ? I have heard this is already done in -current and i think it would also improve performance with mid-sized packets (e.g. http requests and such) by not requiring a cluster. > I think the field in the pkthdr isn't that importand an issue as the > kernel will still be self consitant (except for denis's driver which ships > as a .o (from memory)) it is annoying though because the struct is not initialized upon allocation, and i had to hunt all the places where an mbuf was allocated and zero the new field explicitly. I think the problem in using dummynet together with divert (or nat ? Philippe ?) come from some missing initialization of this field. Also, the new field has no use for dummynet since i can safely store the associated info in a static variable, since it is used immediately. Not so nice, and it needs some further trick to work with SMP, but we already have a similar hack^H^H^H^Hsolution for divert. cheers luigi -----------------------------+-------------------------------------- Luigi Rizzo | Dip. di Ingegneria dell'Informazione email: luigi@iet.unipi.it | Universita' di Pisa tel: +39-50-568533 | via Diotisalvi 2, 56126 PISA (Italy) fax: +39-50-568522 | http://www.iet.unipi.it/~luigi/ _____________________________|______________________________________ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message