Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What are memcached threads?

memcached threads
0
Posted

What are memcached threads?

0

Threads rule! Thanks to Steven Grimm and Facebook, memcached 1.2 and higher has a threaded operation mode. The threaded system allows memcached to utilize more than a single CPU and share the cache between all of them. It does this by having a very simple locking mechanism when certain values, items, etc need to be updated. This helps make multi gets more efficient, versus running multiple nodes on the same physical server to achieve performance. If you don’t have a heavily loaded setup, you probably don’t need to configure threads. If you’re running a gigantic website with gigantic hardware, you might see benefit here. More info: http://code.sixapart.com/svn/memcached/trunk/server/doc/threads.txt In short summary: command parsing (where memcached spends most of its time) is ran under multiple threads. Operating on the cache internals are under global locks (and thus that time is not threaded). Future improvements in the threading system should remove more global locks and further impr

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.