On 17.8.2017. 21:56, Juan Guillermo Narvaez wrote: > Sure Hrvoje, I'm applying every config and looking the performance > improvement. I will post my final configuration when finish. > > Thanks! >
If you do not filter anything on the internal interfaces in pf.conf you could skip them set skip on { lo bge1 vlan123 vlan124 } > On Thu, Aug 17, 2017 at 4:45 PM, Hrvoje Popovski <hrv...@srce.hr> wrote: > >> On 17.8.2017. 21:23, Juan Guillermo Narvaez wrote: >>> This is the dmesg.boot. >> >> nice box with nice cpu and interfaces ... :) >> >> if you can, disable Hyper Threading .. >> >>> In pf.conf: >>> set debug notice >> >> default is error >> >> when you do all that what people have told you, i would be interested if >> you see some performance improvement? >> >> >> >>> On Thu, Aug 17, 2017 at 3:46 PM, Hrvoje Popovski <hrv...@srce.hr> wrote: >>> >>>> On 17.8.2017. 17:13, Chris Cappuccio wrote: >>>>> Juan Guillermo Narvaez [guille...@nrvz.net] wrote: >>>>>> # sysctl | grep ifq >>>>>> net.inet.ip.ifq.len=0 >>>>>> net.inet.ip.ifq.maxlen=1024 >>>>>> net.inet.ip.ifq.drops=46068291 >>>>>> net.inet6.ip6.ifq.len=0 >>>>>> net.inet6.ip6.ifq.maxlen=256 >>>>>> net.inet6.ip6.ifq.drops=0 >>>>>> >>>>> >>>>> The drops are high. You probably want a higher maxlen. I use 8192 on >> busy >>>>> forwarding boxes. >>>>> >>>>>> # cat sysctl.conf >>>>>> net.inet.ip.forwarding=1 >>>>>> kern.bufcachepercent=90 >>>>>> net.ip.ifq.maxlen=1024 >>>>>> >>>>> >>>>> You want net.inet.ip.ifq.maxlen=8192 not 'net.ip.ifq.maxlen=1024' >>>>> >>>> >>>> besides what chris told you maybe you could silence pf logging... your >>>> dmesg is full of pf logs, maybe you have pf debuging enabled? >>>> >>>> please send cat /var/run/dmesg.boot inline just to see which version of >>>> openbsd your running and on which hardware ... >>>> >>>> and set your pf states to some big number.. set limit states 100000 or >>>> something like that .. >>>> >>>> and of course run at least openbsd 6.1 or if you brave enough run >>>> -current .... >>>> >>>> just side note, openbsd on E5-2643 v2 @ 3.50GHz from around February >>>> 2017 had plain forwarding performance of 1.4Mpps and openbsd from today >>>> on same box can forward cca 1.7Mpps ... >>>> >>>> >>>> >>>> >>>> >>>> >>> >>> >> >> > >