Re: [PATCH net-next v3 0/4] net: mvneta: improve rx/tx performance

From: Marcin Wojtas
Date: Tue Feb 21 2017 - 11:35:37 EST


Hi Jisheng,

2017-02-21 17:16 GMT+01:00 David Miller <davem@xxxxxxxxxxxxx>:
> From: Jisheng Zhang <jszhang@xxxxxxxxxxx>
> Date: Tue, 21 Feb 2017 12:37:40 +0800
>
>> Thanks for your review.
>>
>> The measurement is simple: record how much time we spent in mvneta_rx_swbm()
>> for receiving 1GB data, something as below:
>
> Please use a standard tool for measuring performance, rather than profiling
> the driver and trying to derive numbers that way.

If possible in your setup, I suggest pushing 64B (and other sizes)
packets uni or bidirectionally via 2 ports in L2 bridge mode. It's a
good stress test, you'd get some meaningful numbers (also check cpu
consumption with mpstat in the meantime).

Best regards,
Marcin