Status: Accepted
Owner: trond.norbye
Labels: Type-Enhancement Priority-Low Performance

New issue 89 by trond.norbye: "optimize" stats counters for mget
http://code.google.com/p/memcached/issues/detail?id=89

We used to have two counter (one for hits and one for misses) we incremented when processed the mget command to avoid locking the global stats mutex all of the times. When we moved the get statistics down into the slab classes this got a lot worse, because now we have an array 201 counters for get hits. Whenever we enter the function we have to zero out the array, and when we leave the function we need to iterate through the complete array to update the counters. In the latest revision we also use a thread-local statistics structure we aggregate whenever someone
requests the statistics protected by a threadlocal mutex.

Instead of working on this temporary table we should update the threadlocal copy instead.


--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

Reply via email to