I tested on AWS ubuntu 10.04 memcached 1.4.2
When testing with memslap (different concurrent users numbers and different instance types (8G and 1.7G memory)
Top shows 110% cpu on the memcached process and 55% cpu idle in the cpus summary.
What is wrong here?
Is the server using just one core for memcached? If so is it possible to change it to get more out of the box?
-m
flag set to when you start Memcached (Amount of memory Memcached can use). It's possible if that's a low value, when the cache gets full the CPU is being used for deciding which items to remove.mpstat -P ALL
, this will show how much CPU is being used per processor and what the type of CPU usage is (iowait/steal etc.). Also you should probably accept some answers to previous questions you've asked, you only have 51% accept which will put some users off answering