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)
Thu, Jul 3, 6:01 AM
Unknown Object (File)
Thu, Jul 3, 5:02 AM
Unknown Object (File)
Wed, Jul 2, 1:40 PM
Unknown Object (File)
Tue, Jul 1, 12:23 PM
Unknown Object (File)
Tue, Jul 1, 4:34 AM
Unknown Object (File)
Sun, Jun 29, 11:48 AM
Unknown Object (File)
May 10 2025, 3:02 PM
Unknown Object (File)
Apr 15 2025, 12:31 PM
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