Re: [PATCH rfc v4 4/4] net: hns3: support skb's frag page recycling based on page pool

From: Yunsheng Lin
Date: Wed Jul 14 2021 - 02:14:02 EST


On 2021/7/13 19:42, Denis Kirjanov wrote:
> On 7/13/21, Yunsheng Lin <linyunsheng@xxxxxxxxxx> wrote:
>> This patch adds skb's frag page recycling support based on
>> the elevated refcnt support in page pool.
>>
>> The performance improves above 10~20% with IOMMU disabled.
>> The performance improves about 200% when IOMMU is enabled
>> and iperf server shares the same cpu with irq/NAPI.
>
> Could you share workload details?

The testcase is simple, using iperf TCP with only one thread.
The the iperf server CPU and NAPI softirq CPU is pinned to the
same CPU, the performance improves from 14Gbit to 33Gbit when
SMMU is in strict mode, so the above state is not accurate, it
should be "improves to about 200% when IOMMU is in strict mode"

>
>>