I have been doing a little lock profiling on memcached and I have
found that cache_lock has a lot of contention in machines with more
than 4 processors.

Mutex contention is very bad when using libevent because it means that
all connections assigned to the thread that is waiting are frozen.

Is there any plan on improving that?

I think that instead of using a global mutex, locking could be done on
a per bucket basis plus an additional lock for LRU list management.

Would you be interested on any work on that direction?

Regards,
Jaime.

Reply via email to