HTTPS clone URL
Subversion checkout URL
Please sign in to comment.
move stats collection in memcached to per-thread
Summary: Remove the global stats lock and collect stats per thread and aggregate only when the stats command is issued. The prefix, bucket and cost-benefit stats still use a global lock, but they are not enabled in normal operation, so they were not addressed here. Prior to this change, on an 8 core system, peak req/s is around 160,000 with 8 server threads. With this change, peak req/s is 240,000. Reviewed By: marc Test Plan: Ran tester with asserts on and off. Ran libmcc against server and verified stats matched what libmcc tester reports. Have not run in production yet. Have not blasted with UDP other than using libmcc Revert: OK git-svn-id: http://svn.facebook.com/svnroot/projects/memcached/trunk@123229 2c7ba8d8-a2f7-0310-a573-de162e16dcc7
- Loading branch information...
1 parent b04e15b commit 1d33e190e288905b5948e6484828e42015b0ae25 ps committed
Showing with 442 additions and 229 deletions.