Re: PC Engines apu4 network performance

2021-09-10 Thread Anders Andersson
On Wed, Sep 8, 2021 at 6:54 PM Paulo Manoel Mafra  wrote:
>
> Hello guys,
> I've configured a pc engines apu4 with openbsd 6.9 and I verified the
> network performance is around 550 mbit/s with pf and 700 mbit/s without.
>
> Is there any known issue for that poor performance ?
> Running another OS on the same hardware I can reach some like 920 mbit/s.
>
> I've googled for this problem and it appears some messages from 2018.

I did some performance investigations and posted my results to the
list a few months ago:
https://marc.info/?l=openbsd-misc=162400670127742

Basically the speed depends on the mood of the scheduler, but I got
zero replies so that's still just a guess. It seems like it can use
all the cores, just prefers not to, and then the performance tanks.



Re: PC Engines apu4 network performance

2021-09-08 Thread Stuart Henderson
On 2021-09-08, Paulo Manoel Mafra  wrote:
> Hello guys,
> I've configured a pc engines apu4 with openbsd 6.9 and I verified the
> network performance is around 550 mbit/s with pf and 700 mbit/s without.
>
> Is there any known issue for that poor performance ?
> Running another OS on the same hardware I can reach some like 920 mbit/s.
>
> I've googled for this problem and it appears some messages from 2018.

Sounds about right for OpenBSD on that hardware.


-- 
Please keep replies on the mailing list.



PC Engines apu4 network performance

2021-09-08 Thread Paulo Manoel Mafra
Hello guys,
I've configured a pc engines apu4 with openbsd 6.9 and I verified the
network performance is around 550 mbit/s with pf and 700 mbit/s without.

Is there any known issue for that poor performance ?
Running another OS on the same hardware I can reach some like 920 mbit/s.

I've googled for this problem and it appears some messages from 2018.

Kind Regards,
Paulo.



Re: PC Engines apu4 network performance

2021-09-08 Thread Elias Carter
Paolo,

Your results match mine. I was never able to get my apu4 past about 600
Mb/s. I installed pfsense on my apu4 and was able to get speeds closer to 1
Gb/s so there does appear to be some bottleneck in openbsd which holds the
hardware back.

If I recall correctly the i210at hardware checksum offloading was not
enabled in openbsd due to a hardware quirk/bug. It looks like the i210at
still doesn’t do hardware checksums:
https://github.com/openbsd/src/blob/2207c4325726fdc5c4bcd0011af0fdf7d3dab137/sys/dev/pci/if_em.c#L1209

I didn’t profile the system so the lack of hardware checksums may not be
the bottleneck.

Elias

On Wed, Sep 8, 2021 at 9:52 AM Paulo Manoel Mafra 
wrote:

> Hello guys,
> I've configured a pc engines apu4 with openbsd 6.9 and I verified the
> network performance is around 550 mbit/s with pf and 700 mbit/s without.
>
> Is there any known issue for that poor performance ?
> Running another OS on the same hardware I can reach some like 920 mbit/s.
>
> I've googled for this problem and it appears some messages from 2018.
>
> Kind Regards,
> Paulo.
>
>