OpenVZ Forum


Home » Mailing lists » Devel » [patch01/05]:Containers(V2): Documentation
Re: [patch01/05]:Containers(V2): Documentation [message #6578 is a reply to message #6524] Wed, 20 September 2006 16:43 Go to previous messageGo to previous message
Christoph Lameter is currently offline  Christoph Lameter
Messages: 123
Registered: September 2006
Senior Member
On Tue, 19 Sep 2006, Rohit Seth wrote:

> +Currently we are tracking user memory (both file based
> +and anonymous). The memory handler is currently deactivating pages
> +belonging to a container that has gone over the limit. Even though this
> +allows containers to go over board their limits but 1- once they are
> +over the limit then they run in degraded manner and 2- if there is any
> +memory pressure then the (extra) pages belonging to this container are
> +the prime candidates for swapping (for example). The statistics that
> +are shown in each container directory are the current values of each
> +resource consumption.

Containers via cpusets allow a clean implementation of a restricted memory
area. The system will swap and generate an OOM message if no memory can be
recovered.

> +4- Add a task to container
> + cd /mnt/configfs/cotnainers/test_container
> + echo <pid> > addtask
> +
> +Now the <pid> and its subsequently forked children will belong to container
> +test_container.
> +
> +5- Remove a task from container
> + echo <pid> > rmtask

Could you make that compatible with the way cpusets do it?

> +9- Freeing a container
> + cd /mnt/configfs/containers/
> + rmdir test_container

Adding and removal is the same way as cpusets.
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: [Patch04/05]- Containers: Core Container support
Next Topic: Re: [ckrm-tech] [patch00/05]: Containers(V2)- Introduction
Goto Forum:
  


Current Time: Sun Jul 13 23:57:57 GMT 2025

Total time taken to generate the page: 0.02670 seconds