Re: Performance optimizing OpenBSD 7.2

2023-02-15 Thread patric conant
> > > > 7 vmx "phys" ifs > 3 em "phys" ifs > Are these 7 ports to vswitches and 3 pci-passthroughed physical ports? I have had good luck passing physical nics into OpenBSD vms (running line rate, on 1Gb, and getting close to 2Gb on 2.5 realteks) but em emulated nics never keep up with their vmx

Re: Performance optimizing OpenBSD 7.2

2023-02-15 Thread Lars Bonnesen
systat tells me One box: 89450 IPKTS 19438 OPKTS The other: 68814 IPKTS

Re: Performance optimizing OpenBSD 7.2

2023-02-15 Thread Stuart Henderson
On 2023-02-15, Lars Bonnesen wrote: > lbo@PLOSLOL2VPN:/etc$ pfctl -s info > Status: Enabled for 0 days 00:06:49 Debug: err > > State Table Total Rate > current entries 149331 > half-open tcp 5333 >

Re: Performance optimizing OpenBSD 7.2

2023-02-15 Thread Lars Bonnesen
I think that I am now hitting a bottleneck somewhere else. Thanks for the help so far... I might come back thirsty for more later... (-: Regards, Lars. On Wed, Feb 15, 2023 at 4:13 PM Lars Bonnesen wrote: > lbo@PLOSLOL2VPN:/etc$ pfctl -s info > Status: Enabled for 0 days 00:06:49

Re: Performance optimizing OpenBSD 7.2

2023-02-15 Thread Lars Bonnesen
lbo@PLOSLOL2VPN:/etc$ pfctl -s info Status: Enabled for 0 days 00:06:49 Debug: err State Table Total Rate current entries 149331 half-open tcp 5333 searches 4462647255

Re: Performance optimizing OpenBSD 7.2

2023-02-15 Thread Claudio Jeker
On Wed, Feb 15, 2023 at 01:01:10PM -, Stuart Henderson wrote: > On 2023-02-15, Lars Bonnesen wrote: > > One says: > > > > # pfctl -s info > > Status: Enabled for 0 days 10:56:43 Debug: err > > > > State Table Total Rate > > current entries

Re: Performance optimizing OpenBSD 7.2

2023-02-15 Thread Gábor LENCSE
As for performance optimization, I think the direction is good, and perhaps you could go even further if you have a load balancing device that can distribute the traffic among the multiple VMs. Not sure why reducing the memory should help. Also reducing the number of virtual CPUs has probably

Re: Performance optimizing OpenBSD 7.2

2023-02-15 Thread Claudio Jeker
On Wed, Feb 15, 2023 at 01:39:54PM +0100, Lars Bonnesen wrote: > One says: > > # pfctl -s info > Status: Enabled for 0 days 10:56:43 Debug: err > > State Table Total Rate > current entries91680 > half-open tcp

Re: Performance optimizing OpenBSD 7.2

2023-02-15 Thread Stuart Henderson
On 2023-02-15, Lars Bonnesen wrote: > One says: > > # pfctl -s info > Status: Enabled for 0 days 10:56:43 Debug: err > > State Table Total Rate > current entries91680 Lots of entries, close to the default: $ doas pfctl -sm

Re: Performance optimizing OpenBSD 7.2

2023-02-15 Thread Nick Holland
On 2/15/23 04:54, Claudio Jeker wrote: On Wed, Feb 15, 2023 at 10:28:57AM +0100, Gábor LENCSE wrote: Hi Lars, > I downscaled from 8 to 4 vCPUs and from 8 to 4 gig RAM - and the two obsd > now seems to hold the packages decently. As for performance optimization, I think the direction is good,

Re: Performance optimizing OpenBSD 7.2

2023-02-15 Thread Lars Bonnesen
One says: # pfctl -s info Status: Enabled for 0 days 10:56:43 Debug: err State Table Total Rate current entries91680 half-open tcp 4032 searches 313230429479494.1/s

Re: Performance optimizing OpenBSD 7.2

2023-02-15 Thread Hrvoje Popovski
On 15.2.2023. 10:28, Gábor LENCSE wrote: > In OpenBSD, the packet forwarding happens single threaded, so the > performance of your system does not benefit much from the 4 cores. Hi, actually if forwarding is single threaded of not, depends of what nic do you have in box. ix,mcx,bnxt,igc,vmx and

Re: Performance optimizing OpenBSD 7.2

2023-02-15 Thread Claudio Jeker
On Wed, Feb 15, 2023 at 10:28:57AM +0100, Gábor LENCSE wrote: > Hi Lars, > > > I downscaled from 8 to 4 vCPUs and from 8 to 4 gig RAM - and the two obsd > > now seems to hold the packages decently. > > As for performance optimization, I think the direction is good, and perhaps > you could go

Re: Performance optimizing OpenBSD 7.2

2023-02-15 Thread Gábor LENCSE
Hi Lars, I downscaled from 8 to 4 vCPUs and from 8 to 4 gig RAM - and the two obsd now seems to hold the packages decently. As for performance optimization, I think the direction is good, and perhaps you could go even further if you have a load balancing device that can distribute the

Re: Performance optimizing OpenBSD 7.2

2023-02-15 Thread Otto Moerbeek
On Tue, Feb 14, 2023 at 11:04:57PM +0100, Lars Bonnesen wrote: > What can be done to optimize obsd 7.2 running on top of ESXi 7 with > > 7 vmx "phys" ifs > 3 em "phys" ifs > 22 virtual ifs > > Very simply pf ruleset - the box is only running VPN solution between two > sites up against a similar