Change Necessary for ADQ Enablement
To align application worker threads to network adapter queues, the select application worker thread step from the default design above can be changed to perform load balancing of connections to worker threads via NAPI_ID rather than round-robin. following is the pseudo code for this change:
Query socket option (SO_INCOMUNG_NAPI_ID) on accepted connection
Select thread based on NAPI-ID
if existing association of THREAD to NAPI_ID
-> Select the associated thread
else
-> Select next available thread from thread pool and set up NAPI_ID to THREAD associationFor more information, refer to the Memcached patch submitted at either of the following locations: