Hi,

We consistently see following pattern of logs when fetching keys from
our locally running memcache.

There are about 100 objects to be fetched. Randomly enough, 2 or 3 out
of first five get()s take a systematically long time, regardless if
the value is found or not


[Thu Jan 15 19:42:40 2009] [error] Get key: kdiss9k3l5rk81f2unnuguh397
Result: NOT found. Time: 3000.066995620
[Thu Jan 15 19:42:40 2009] [error] Get key: v5.v6.php_event_by_id.
753253 Result: FOUND. Time: 0.16117095947266
[Thu Jan 15 19:42:40 2009] [error] Get key: v5.v6.php_event_by_id.
753252 Result: FOUND. Time: 0.12612342834473
[Thu Jan 15 19:42:40 2009] [error] Get key: v5.v6.php_event_by_id.
753251 Result: FOUND. Time: 0.09703636169433
[Thu Jan 15 19:42:41 2009] [error] Get key: v5.v6.php_event_by_id.
753250 Result: FOUND. Time: 999.35412406921
[Thu Jan 15 19:42:41 2009] [error] Get key: v5.v6.php_event_by_id.
753249 Result: FOUND. Time: 0.10490417480469
[Thu Jan 15 19:42:41 2009] [error] Get key: v5.v6.php_event_by_id.
753248 Result: FOUND. Time: 0.09918212890625
[Thu Jan 15 19:42:41 2009] [error] Get key: v5.v6.php_event_by_id.
753247 Result: FOUND. Time: 0.09179115295410
.....

Setup:
Server: 1.2.5 running locally on 127.0.0.1
Client: PECL PHP extension 2.2.3, built in as a shared object
Server: Apache


Other clues:
1) Connecting to a different memcache, running remotely:- Does not
help. Same pattern of delays.
2) Telnet locally and get() the same keys:- No delay
3) Start memcached on command line (not daemon) with -vv and watch the
logs:- No improvement. It does look like the delay is in making the
connection though, and not in fetching the object.

We'll really appreciate any insights.

Regards,
-Soham

Reply via email to