EF_PER_SOCKET_CACHE_MAX

Onload User Guide (UG1586)

Document ID
UG1586
Release Date
2023-07-31
Revision
1.2 English
Name
per_sock_cache_max
Default
-1
Minimum
-1
Maximum
SMAX
Scope
per-stack

When socket caching is enabled, (i.e. when EF_SOCKET_CACHE_MAX > 0), this sets a further limit on the size of the cache for each socket.

  • If set to -1 in Onload 201805 onwards, or to 0 in earlier versions, no limit is set beyond the global limit specified by EF_SOCKET_CACHE_MAX.

    This behavior is the default.

  • If set to 0 in Onload 201805 onwards, no accepted sockets will be cached for any listening sockets. This allows active-open socket caching to be enabled without also enabling passive-open socket caching.