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 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:30, Matt Ingenthron wrote: >> >> 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, "rik" <lijo.k.a...@gmail.com> wrote: >> >>> >>> 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 the set command. Before cache >>> updation I also call the flush command. Is the insert time greater beacuse >>> I am always using set command instead of replace. >>> >>> I dont know which all data may be usefule hence copy pasting the stats >>> command output >>> >>> Thank you in advance. >>> >>> Thanks, >>> Rik >>> >>> stats >>> STAT pid 22845 >>> STAT uptime 647374 >>> STAT time 1343697228 >>> STAT version 1.4.1 >>> STAT pointer_size 64 >>> STAT rusage_user 374.297098 >>> STAT rusage_system 840.344248 >>> STAT curr_connections 11 >>> STAT total_connections 395 >>> STAT connection_structures 30 >>> STAT cmd_get 9 >>> STAT cmd_set 60296238 >>> STAT cmd_flush 9 >>> STAT get_hits 2 >>> STAT get_misses 7 >>> STAT delete_misses 0 >>> STAT delete_hits 0 >>> STAT incr_misses 0 >>> STAT incr_hits 0 >>> STAT decr_misses 0 >>> STAT decr_hits 0 >>> STAT cas_misses 0 >>> STAT cas_hits 0 >>> STAT cas_badval 0 >>> STAT bytes_read 5068593281 >>> STAT bytes_written 482391298 >>> STAT limit_maxbytes 1073741824 >>> STAT accepting_conns 1 >>> STAT listen_disabled_num 0 >>> STAT threads 5 >>> STAT conn_yields 0 >>> STAT bytes 871357730 >>> STAT curr_items 6699582 >>> STAT total_items 60296238 >>> STAT evictions 0 >>> END >>> stats slabs >>> STAT 2:chunk_size 120 >>> STAT 2:chunks_per_page 8738 >>> STAT 2:total_pages 1 >>> STAT 2:total_chunks 8738 >>> STAT 2:used_chunks 596 >>> STAT 2:free_chunks 1 >>> STAT 2:free_chunks_end 8141 >>> STAT 2:mem_requested 71467 >>> STAT 2:get_hits 0 >>> STAT 2:cmd_set 5364 >>> STAT 2:delete_hits 0 >>> STAT 2:incr_hits 0 >>> STAT 2:decr_hits 0 >>> STAT 2:cas_hits 0 >>> STAT 2:cas_badval 0 >>> STAT 3:chunk_size 152 >>> STAT 3:chunks_per_page 6898 >>> STAT 3:total_pages 967 >>> STAT 3:total_chunks 6670366 >>> STAT 3:used_chunks 6667495 >>> STAT 3:free_chunks 1 >>> STAT 3:free_chunks_end 2870 >>> STAT 3:mem_requested 866361263 >>> STAT 3:get_hits 2 >>> STAT 3:cmd_set 60007455 >>> STAT 3:delete_hits 0 >>> STAT 3:incr_hits 0 >>> STAT 3:decr_hits 0 >>> STAT 3:cas_hits 0 >>> STAT 3:cas_badval 0 >>> STAT 4:chunk_size 192 >>> STAT 4:chunks_per_page 5461 >>> STAT 4:total_pages 6 >>> STAT 4:total_chunks 32766 >>> STAT 4:used_chunks 31491 >>> STAT 4:free_chunks 1 >>> STAT 4:free_chunks_end 1274 >>> STAT 4:mem_requested 4925000 >>> STAT 4:get_hits 0 >>> STAT 4:cmd_set 283419 >>> STAT 4:delete_hits 0 >>> STAT 4:incr_hits 0 >>> STAT 4:decr_hits 0 >>> STAT 4:cas_hits 0 >>> STAT 4:cas_badval 0 >>> STAT active_slabs 3 >>> STAT total_malloced 1021235264 >>> END >>> >>>