Hi,

As I checked the Memcache statistics, almost all getMulti calls missed.
I've been reading the codes for some time however I could not figure out how getMulti() works there... I still feel something wrong in the codes though...

getMulti	cache_menu	cache_menu-.wildcard-links%3Anavigation%3Apage-cid%3Aadm

For example, one getMulti call is like above. The cid is cut wrong I think, is this correct?

I'd appreciate if someone could explain how getMulti() helps in memcache module. Thanks!

Comments

js’s picture

I am confused by this also. Thanks for any insite.

fgm’s picture

Look into dmemcache_get_multi() :
$statistics[$full_key] = array('getMulti', $bin, $full_key);

This is invoked in a loop on $keys, and then added in a loop too to $_memcache_statistics, instead of being in just one record. So stats are presented visually as multiple calls to get_multi although there is actually just one.

catch’s picture

Status: Active » Closed (duplicate)

These are checking for wildcard flushes against the bin. The miss rate isn't that much of a problem - some of these are supposed to miss, however this patch improves it a lot in my testing: #1103478: Skip some wildcard fetches. Marking this as duplicate.