when I run an application with lxc-execute,such as lxc-execute -n foo
forever,I get the memory information using lxc-cgroup -n foo
memory.usage_in_bytes.However,at the same time,I use ps -p pid -o rss to
get the memory of application,the two results are conflictive.
   according to the document of linux kernel,the result of lxc should be
rss+cache,and the result of ps should be rss.so result of lxc should be
greater than the result of ps.But in my computer,the result of lxc is
smaller.what's more,the result of lxc is the memory of lxc-init plus the
application,if I add the memory of lxc-init,which is also got from ps ,the
result of lxc is about the half of the sum.
  can someone tell me why?

-- 

Zhefeng Wang
University of Science and Technology of China
Email:zhefw...@gmail.com

In God we trust, all others bring data
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users

Reply via email to