* statistics accounting in container
@ 2008-11-03 7:45 Ian jonhson
[not found] ` <8f34198c0811022345t6030bb8cg4ccb48ef49f6b4bb-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: Ian jonhson @ 2008-11-03 7:45 UTC (permalink / raw)
To: containers-qjLDD68F18O7TbgM5vRIOg
Dear all,
I am now working in the development of user tool for container
(built by Daniel Lezcano) and interest in the accounting
of container. Now, I would like to know whether the patches stated
in:
http://lwn.net/Articles/229974/
http://lwn.net/Articles/243795/
is been embedded in mainstream. More further, what is the
development status of CPU,MEM, network bandwidth in container?
Can I use these functionalities directly in my work now?
I am using the kernel recommended by Daniel:
git://git.kernel.org/pub/scm/linux/kernel/git/daveh/linux-2.6-lxc.git
and wonder whether this version of kernel has been equipped with
accounting mechanisms of container?
Thanks in advance,
Ian
^ permalink raw reply [flat|nested] 3+ messages in thread[parent not found: <8f34198c0811022345t6030bb8cg4ccb48ef49f6b4bb-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: statistics accounting in container [not found] ` <8f34198c0811022345t6030bb8cg4ccb48ef49f6b4bb-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2008-11-04 21:37 ` Daniel Lezcano [not found] ` <4910C088.4050109-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org> 0 siblings, 1 reply; 3+ messages in thread From: Daniel Lezcano @ 2008-11-04 21:37 UTC (permalink / raw) To: Ian jonhson Cc: containers-qjLDD68F18O7TbgM5vRIOg, Pavel Emelianov, Balbir Singh Ian jonhson wrote: > Dear all, > > I am now working in the development of user tool for container > (built by Daniel Lezcano) and interest in the accounting > of container. Now, I would like to know whether the patches stated > in: > http://lwn.net/Articles/229974/ I think this one is known as CONFIG_CGROUP_CPUACCT and it is in mainline. > http://lwn.net/Articles/243795/ This one is in mainline too. It is a subsystem of the resource controller. Note that it is related to physical memory. > is been embedded in mainstream. More further, what is the > development status of CPU,MEM, network bandwidth in container? I am not sure what you mean by CPU bandwidth. There is the cgroup scheduler which allows to prioritize a group of processes but I don't think there is a resource controller which blocks a set of processes when a cpu consumption limit has been reached. For the memory, there is the memory controller which gives an amount of physical memory to a group of processes. When the limit is reached, the processes begin to swap. There is some statistics in the cgroup files about the memory consumption and the limits reached by the group. Concerning network bandwidth, there is a patch walking around netdev for cgroup packet classifier allowing to do some QoS between containers. AFAICS, it is about to be merged. The traffic control can be used to assign a bandwidth to the network devices belonging to a specific container. > Can I use these functionalities directly in my work now? These features are all provided by the control groups. The control groups are supported by 'lxc'. For example, if you want to retrieve the cpu used you can do: lxc-cgroup -n foo cpuacct.usage If you want to set a memory limit: lxc-cgroup -n foo memory.limit_in_bytes 262144 If you want to set a priority: lxc-cgroup -n foo cpu.shares 1234 Assign cpu: lxc-cgroup -n foo cpuset.cpus 0,3 etc ... What will you work consist in ? > I am using the kernel recommended by Daniel: > git://git.kernel.org/pub/scm/linux/kernel/git/daveh/linux-2.6-lxc.git > and wonder whether this version of kernel has been equipped with > accounting mechanisms of container? git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6.git will be more up to date. You won't have sysfs per namespace neither the checkpoint/restart, so you will have a warning for 'lxc-execute' complaining for sysfs being busy when mounting but that should not be a blocker. Thanks -- Daniel ^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <4910C088.4050109-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>]
* Re: statistics accounting in container [not found] ` <4910C088.4050109-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org> @ 2008-11-05 13:23 ` Balbir Singh 0 siblings, 0 replies; 3+ messages in thread From: Balbir Singh @ 2008-11-05 13:23 UTC (permalink / raw) To: Daniel Lezcano; +Cc: containers-qjLDD68F18O7TbgM5vRIOg, Pavel Emelianov Daniel Lezcano wrote: > Ian jonhson wrote: >> Dear all, >> >> I am now working in the development of user tool for container >> (built by Daniel Lezcano) and interest in the accounting >> of container. Now, I would like to know whether the patches stated >> in: >> http://lwn.net/Articles/229974/ > > I think this one is known as CONFIG_CGROUP_CPUACCT and it is in mainline. > >> http://lwn.net/Articles/243795/ > > This one is in mainline too. It is a subsystem of the resource > controller. Note that it is related to physical memory. > >> is been embedded in mainstream. More further, what is the >> development status of CPU,MEM, network bandwidth in container? > > I am not sure what you mean by CPU bandwidth. There is the cgroup > scheduler which allows to prioritize a group of processes but I don't > think there is a resource controller which blocks a set of processes > when a cpu consumption limit has been reached. > This is under discussion, since the implementation needs many more things to be considered. > For the memory, there is the memory controller which gives an amount of > physical memory to a group of processes. When the limit is reached, the > processes begin to swap. There is some statistics in the cgroup files > about the memory consumption and the limits reached by the group. > Some features like hierarchy support and soft limits are under development. Only hard limits are available ATM. -- Balbir ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-11-05 13:23 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-03 7:45 statistics accounting in container Ian jonhson
[not found] ` <8f34198c0811022345t6030bb8cg4ccb48ef49f6b4bb-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2008-11-04 21:37 ` Daniel Lezcano
[not found] ` <4910C088.4050109-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
2008-11-05 13:23 ` Balbir Singh
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox