svn commit: r359784 - in head/sys/dev/cxgbe: . crypto

John Baldwin jhb at FreeBSD.org
Fri Apr 10 23:04:28 UTC 2020


On 4/10/20 3:27 PM, John Baldwin wrote:
> Author: jhb
> Date: Fri Apr 10 22:27:45 2020
> New Revision: 359784
> URL: https://svnweb.freebsd.org/changeset/base/359784
> 
> Log:
>   Use both crypto engines on a T6.
>   
>   A T6 adapter contains two crypto engines on separate channels.  This
>   commit distributes sessions between the two engines.  Previously, only
>   the first engine was used.

In some simple benchmarks using KTLS with the traffic flowing over
one of the ports (cc0) of the same NIC ccr0 was on, throughput increased
from ~41 Gbps to 45 Gbps with this change (albeit with CPU usage increase
from 70% to 80%).

In addition, this commit adds a 'dev.ccr.<unit>.port_mask' sysctl which
controls which ports are enabled for new sessions.  Setting this to '2'
during this test to force all crypto requests to use the crypto engine
associated with the channel for cc1 (which was not being used to send any
traffic) further increased the throughput to around 48 Gbps while using
the same amount of CPU.

-- 
John Baldwin


More information about the svn-src-all mailing list