HomeFreeBSD

Save context switch per I/O for iSCSI and IOCTL frontends.

Description

Save context switch per I/O for iSCSI and IOCTL frontends.

Introduce new CTL core KPI ctl_run(), preprocessing I/Os in the caller
context instead of scheduling another thread just for that. This call
may sleep, that is not acceptable for some frontends like the original
CAM/FC one, but iSCSI already has separate sleepable per-connection RX
threads, and another thread scheduling is mostly just a waste of time.
IOCTL frontend actually waits for the I/O completion in the caller
thread, so the use of another thread for this has even less sense.

With this change I can measure ~5% IOPS improvement on 4KB iSCSI I/Os
to ZFS.

MFC after: 1 month

Details

Provenance
mavAuthored on Feb 19 2021, 3:07 AM
Parents
rG4621c4f2fd17: tests/sys/audit: force PIE off
Branches
Unknown
Tags
Unknown