There are some necessary pre-requisites when using socket caching:
- Set EF_UL_EPOLL
=3and set EF_FDS_MT_SAFE
- Socket caching is not supported after
- Sockets that have been
dup()ed will not be cached
- Sockets that use the
O_APPENDmodes will not be cached
- Caching offers no benefit if a single socket accepts connections on multiple local addresses (applicable to passive caching only).
O_CLOEXECif required on the socket, when creating the socket.
From Onload 201805 onwards,
O_CLOEXECcannot be used when a listening socket is used simultaneously by multiple processes.
When socket caching cannot be enabled, sockets will be processed as normal Onload sockets.
Users should refer to details of the following environment variables:
Refer to Parameter Reference for details of Onload environment variables.