From owner-freebsd-current Fri Apr 24 11:23:16 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA21147 for freebsd-current-outgoing; Fri, 24 Apr 1998 11:23:16 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from alpo.whistle.com (alpo.whistle.com [207.76.204.38]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA21124 for ; Fri, 24 Apr 1998 11:23:12 -0700 (PDT) (envelope-from julian@whistle.com) Received: (from daemon@localhost) by alpo.whistle.com (8.8.5/8.8.5) id LAA23666; Fri, 24 Apr 1998 11:07:48 -0700 (PDT) Received: from current1.whistle.com(207.76.205.22) via SMTP by alpo.whistle.com, id smtpd023663; Fri Apr 24 18:07:45 1998 Message-ID: <3540D3AE.52BFA1D7@whistle.com> Date: Fri, 24 Apr 1998 11:02:22 -0700 From: Julian Elischer Organization: Whistle Communications X-Mailer: Mozilla 3.0Gold (X11; I; FreeBSD 2.2.5-RELEASE i386) MIME-Version: 1.0 To: Luigi Rizzo CC: Kenjiro Cho , current@FreeBSD.ORG Subject: Re: Bandwidth throttling etc. References: <199804241155.NAA21152@labinfo.iet.unipi.it> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Luigi Rizzo wrote: > > > > actually i was going to ask next if there are stats on the size of > packets, to see if it would be worthwhile increasing the size of an > MBUF to 256 bytes. > > With the increasing use of TCP and IP options, possibly longer > query strings to http, and large nowaday's memories, > it might be useful to improve performance. > > E.g. 20ms PCM audio packets are 160 bytes of data, plus headers etc, they > could fit there. Same for 80ms GSM frames... I notice that teh mpath module released the other day includes as part of it's patch, an upgrade of teh mbuf size to 256 bytes.. works for him so I guess it should work for us.. :-) Also, on the topic of BPF for ip filter descriptions. That is the obvious thing to investigate, but I'm not convinced that it's optimal. It is already resent I'll admin, but it does a lot of work to isolate fields etc, because it's protocol intependent, and each bytecode needs interpretation. It's not at all very efficient, even if it IS very general. Having spent a while looking at it yesterday, I think that our knowledge that the filter is working with an IP packet can be used to produce a much more efficient filter than BPF. As a 'language', ipfilter or ipfw would each be a better place to start. julian To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message