scalability issues with memaslap client

Bug #1721048 reported by Kornilios Kourtis
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libmemcached
New
Undecided
Unassigned

Bug Description

Multi-threaded scalability of memaslap is constrained by:
 * use of locks in statistics
 * use of rand() function that has an internal lock

Revision history for this message
Kornilios Kourtis (kkourt) wrote :

This patch changes the memaslap statistics to be per-thread, avoiding the need to synchronize when updating them.

Revision history for this message
Kornilios Kourtis (kkourt) wrote :

This patch replaces rand() with rand_r(), improving the scalability of memaslap. (The glibc implementation of rand() takes an internal lock.)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.