Inserts to memcache very slow

2012-07-30 Thread rik
I am a newbie and am using memcache to store about 6 million entries.My processor which updates memcache sometimes complete in 9 min (Initially) and sometimes take more than one hour. Can some one please shed a little light as to why the insert time varies. For updating the cache I always use t

Re: Inserts to memcache very slow

2012-07-30 Thread Matt Ingenthron
Which client are you using? Any info in that area you can share? Also, is there possibly a different amount of network traffic each time? Actually, one cause could be setting memcached up with more memory than available on your system. How much physical memory have you? On Jul 30, 2012 6:22 PM,

Re: Inserts to memcache very slow

2012-07-30 Thread rik
I have strated memcache with paraemater -m1024. When I do a top in my system it is showing 24 GB as total memmory and 6GB as used memmory. Is there any perf diff between using set or replace on already existing keys . Currently I am always using set On Tuesday, July 31, 2012 7:37:20 AM UTC+5:3

Re: Inserts to memcache very slow

2012-07-30 Thread rik
I am also doing a flush before I start setting cache entries On Tuesday, July 31, 2012 10:06:17 AM UTC+5:30, rik wrote: > > I have strated memcache with paraemater -m1024. > When I do a top in my system it is showing 24 GB as total memmory and 6GB > as used memmory. > > Is there any perf diff bet

Re: Inserts to memcache very slow

2012-07-31 Thread dormando
http://code.google.com/p/memcached/wiki/NewPerformance http://code.google.com/p/memcached/wiki/Timeouts If it's none of these issues, you should be strace'ing your update process to see exactly what's taking time. strace (or similar tools) are indespensible for any operator or engineer. On Mon,