Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Apr 2013 10:40:03 -0700
From:      Erich Weiler <weiler@soe.ucsc.edu>
To:        Ryan Stone <rysto32@gmail.com>
Cc:        Paul Tatarsky <paul@soe.ucsc.edu>, freebsd-net <freebsd-net@freebsd.org>
Subject:   Re: pf performance?
Message-ID:  <517ABBF3.3050001@soe.ucsc.edu>
In-Reply-To: <CAFMmRNy3YcddDeOrw0RfZwqqC6_=RwjWr8snwH96QXJa9BSU8g@mail.gmail.com>
References:  <5176E5C1.9090601@soe.ucsc.edu> <20130426134224.GV76816@FreeBSD.org> <517A93FE.7020209@soe.ucsc.edu> <CAFMmRNy3YcddDeOrw0RfZwqqC6_=RwjWr8snwH96QXJa9BSU8g@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> If this machine is dedicated for pf then setting sysctl net.isr.direct=0
> might also improve performance, by forcing all packets to go through a
> single netisr thread (assuming that net.isr.maxthreads is 1).  Note that
> this will apply to traffic that does not go through pf, so if this
> machine were doing other network things (e.g. serving NFS) then it would
> bottleneck your other traffic behind your pf traffic.

Hmm, we see this:

[2.0.2-RELEASE][admin@fire02.cghub]/root(1): sysctl net.isr.direct
net.isr.direct: 1
[2.0.2-RELEASE][admin@fire02.cghub]/root(2): sysctl net.isr.maxthreads
net.isr.maxthreads: 3

Should I set net.isr.maxthreads=1 before setting net.isr.direct=0 ??



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