[Devel] Re: [lxc-devel] Memory Resources

KAMEZAWA Hiroyuki kamezawa.hiroyu at jp.fujitsu.com
Sun Aug 23 23:58:35 PDT 2009


On Mon, 24 Aug 2009 08:17:06 +0200
Dietmar Maurer <dietmar at proxmox.com> wrote:

> > > how about memsw_limit for swap? :>
> > > I am looking for swap usage statistics from cgroup right now from
> > > memcontrol.c :) but as you did the idea is good and should be add to
> > the
> > > kernel and lxc-tools :)
> > >
> > 
> > Hmm, why meminfo is necessary ? For cheating top/free/... etc ?
> 
> Many servers use that info to control the use of resources. For example, they do not span any more server processes if memory is low.
> 
> If you do not have that info correct, all those programs fails (they try to allocate much more resources than available).
> 

Hm, duplicating information for keeping binary compatibility for apps ?
What other stat does ? 
For example, 
	- load average
	- cpu usage %user, %sys, %iowait, etc..
	- fork-per-sec

One difficulty I think of is that memcg's limit-usage doesn't means "free".
But, hmm, showing "meminfo" in popular/user-friendly format is not very bad.
Balbir, how do you think ?

If you write a patch, plz onto the newest mmotm.
*And*, now, Nishimura-san is posting "show # of swap usage directly" patch.
It will be a help for you.

Thanks,
-Kame

_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers




More information about the Devel mailing list