avierengel at gatrixx.com
Tue Jun 7 22:53:45 PDT 2005
How much keys have you in your @keys-array ? and what is the rough
percentage of such multi-gets ?
There is at least a problem with lot of keys in multi-get which could
lead to such a problem.
Is it exactly the twentieth everv time or is it a rough estimation ?
Have you straced your script with -tt -T and checked if the
corresponding select()-call takes 1 second ?
Am Dienstag, den 07.06.2005, 12:13 -0600 schrieb Cahill, Earl:
> I am trying to use memcached to cache some database lookups, and
> everything is fine, except every so often, like every twenty hits, I
> get a hiccup. Where nineteen of the hits take like
> 0.000425100326538086 seconds, and the twentieth hit takes
> 1.04001402854919 seconds. Every hiccup I have seen has taken 1.04
> something seconds. Is there something that memcached does
> occasionally to catch up or the like that would take around a second
> on a dual xeon 2.80GHz box? I am using the perl interface and the
> call I am doing looks like this
> my $from_memcache = $memcache->get_multi(@keys);
> where $memcache is my object and @keys is an array of keys to get. By
> the by, an occasional second may not seem like a big deal, but if my
> proof of concept works, this code will be run billions of times a
> month. And I would really like it to work J
More information about the memcached