They are measuring the same memory in this case. Resident is the only
number you really need to worry about. See:
http://www.darkcoding.net/software/resident-and-virtual-memory-on-linux-a-short-example/

~Ryan




On Tue, Jul 8, 2014 at 12:42 AM, 李鑫 <[email protected]> wrote:

> Hi,
>    I set memcached maxBytes to 12gb  and  I want to forbid virtual memory
> ,  so I add -k option. but the result is physical memory is 12gb and
> virtual memory is 12.2gb . I don`t know why memcached cost about 24gb ,
>  more than double maxbytes.
>    this is the memcached config :
>       root     21075     1  4 Jun19 ?        19:03:09
> /opt/apps/memcached/bin/memcached -u root -l 10.10.85.65 -p 11211 -m 12288
> -c 4096 -t 4 -P /opt/logs/memcached/11211.pid -k -d
>
>    this is memory status by command :  top  -d 1 -p 21075 :
>
>
> <https://lh6.googleusercontent.com/-LnsjV_8lEwg/U7ufoK7yofI/AAAAAAAAAIg/hrfI-Cjfgvw/s1600/QQ%E5%9B%BE%E7%89%8720140708153645.jpg>
>
>
>   Is this situation is Ok ? And is memcached still use virtual memory?
>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "memcached" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"memcached" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to