Page MenuHomeFreeBSD

Don't dynamically allocate data structures for KTLS crypto requests.
ClosedPublic

Authored by jhb on Jul 16 2020, 6:46 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Feb 1, 2:39 PM
Unknown Object (File)
Sat, Feb 1, 11:39 AM
Unknown Object (File)
Dec 2 2024, 8:51 PM
Unknown Object (File)
Nov 20 2024, 8:32 AM
Unknown Object (File)
Nov 20 2024, 8:26 AM
Unknown Object (File)
Nov 20 2024, 6:43 AM
Unknown Object (File)
Oct 24 2024, 2:59 AM
Unknown Object (File)
Oct 22 2024, 11:23 AM
Subscribers

Details

Summary

Allocate iovec arrays and struct cryptop and struct ocf_operation
objects on the stack to reduce avoid the overhead of malloc().

These structures are all small enough to fit on the stack of the KTLS
worker threads.

Test Plan
  • tested in production at Netflix and on my own testboxes

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable