Intel® Ethernet 800 Series Application Device Queues (ADQ)
Software Developer's Guide
Default Design
By default, Memcached server has the following design:
- It has one listener thread.
- It includes N number of event worker threads that process sockets, for both read and write operations.
- Each worker thread is assigned connections and runs its own epoll loop.
- Memcached distributes connections to application threads using a round-robin based technique.
Following is the pseudo code for the default design:
Listener/main thread:
'N' worker thread, which uses libevent for event management: