2013-02-26 79 views
0

我正在使用一個簡單的lua程序進行批量插入,每個項目的過期時間設置爲86400秒,其中不會在全天過期。curr_item似乎不是正確的?

現在我有百萬curr_items,但如果我用memcached的工具把它們扔掉,和grep爲「^添加」,我只27235項

%> memcached-tool 127.0.0.1:11211 display 
    # Item_Size Max_age Pages Count Full? Evicted Evict_Time OOM 
    8  480B   4s  464 1012907  no  0  0 0 

%> memcached-tool 127.0.0.1:11211 dump | grep ^add -c                               
Dumping memcache contents 
    Number of buckets: 1 
    Number of items : 1012907 
Dumping bucket 8 - 1012907 total items 
27235 

%> memcached-tool 127.0.0.1:11211 stats | egrep '(curr|bytes)' 
        bytes 447704894 
       bytes_read 407765187 
      bytes_written 78574999 
     curr_connections   10 
       curr_items  1012907 
      limit_maxbytes 2147483648 

我需要這個估計可能存儲需要得到了我的系統,但現在我不確定項目數量,哪一個是正確的?

回答

0

好吧,cachedump有很大的限制,這是郵件列表中的2M。

這就是阻止工具傾銷更多密鑰的原因。