Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 May 2014 19:47:26 +1000 (EST)
From:      Ian Smith <smithi@nimnet.asn.au>
To:        Bill Yuan <bycn82@gmail.com>
Cc:        "freebsd-ipfw@freebsd.org" <freebsd-ipfw@freebsd.org>, Freddie Cash <fjwcash@gmail.com>, Luigi Rizzo <rizzo@iet.unipi.it>, Chris H <bsd-lists@bsdforge.com>
Subject:   Re: feature of `packet per second`
Message-ID:  <20140509193112.M11699@sola.nimnet.asn.au>
In-Reply-To: <CAC%2BJH2yff-bpivvLPEEDQQqi998cVuoO62-LMRC=607JOXEwNw@mail.gmail.com>
References:  <5360F1F4.9060808@gmail.com> <5361105C.1040203@freebsd.org> <53611738.8010103@gmail.com> <CAOjFWZ4zRUmcjG-r--OqoGEWcSZoWhtTykgAAHzCjoEWsMVS9g@mail.gmail.com> <53611EB1.4000406@gmail.com> <CA%2BhQ2%2BhjjS=AXVdnaEdFOKY1DqiLuX9iP0gy3wo6FbwnEdq_Qw@mail.gmail.com> <5364E097.9020106@gmail.com> <CA%2BhQ2%2BgXC9uNdtH1VCGa%2Bs1dPNWjErC9qfgXmEnfQ4SQ6Rnz_g@mail.gmail.com> <536AD13B.6080907@gmail.com> <536AD941.9090102@gmail.com> <20140508073816.GB64368@onelab2.iet.unipi.it> <536BACA4.7010702@gmail.com> <90ff4a7ff9a1d1bac510bb04fc457a91.authenticated@ultimatedns.net> <CAC%2BJH2yff-bpivvLPEEDQQqi998cVuoO62-LMRC=607JOXEwNw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 9 May 2014 11:00:55 +0800, Bill Yuan wrote:
 > OK then I will submit it as a patch in this weekend.
[..]
 > > > Man page patch for PPS
 > > >
 > > > .It Cm pps Ar limit duration
 > > > Rule with the
 > > > .Cm pps
 > > > keyword will allow the first
 > > > .Ar limit
 > > > packets in each
 > > > .Ar duration
 > > > milliseconds.
 > > >
 > > >- and it will be like blow
 > > + and it will be below
 > > >       pps _limit  duration_
 > > >               Rule with the pps keyword will allow the first _limit
 > > > _packets in
 > > >               each _duration _milliseconds.

! each _duration_ milliseconds, rounded up to the next tick (1/HZ seconds)

as Luigi suggested, especially relevant for lower HZ rates than 1000, eg 
at 100Hz that's the next 10ms, particularly if limit were as low as 1 ..

cheers, Ian



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140509193112.M11699>