[Lxc-users] sysctl and lxc

Daniel Lezcano daniel.lezcano at free.fr
Sun Jun 5 15:30:12 UTC 2011


On 06/04/2011 06:26 PM, Permjacov Evgeniy wrote:
> Hello!
> I'm running several containers on my box. One of them has postgresql
> installed. When I read postgresql administration parametres, I found
> suggestion to tune some parametres in sysctl.conf, such as
>
> kernel.shmmax=17179869184
> kernel.shmall=4194304
> vm.overcommit_memory=2
>
> Should I set this parametres in guest's sysctl.con or in host's one and will first choise affect only the container, entire system or has no effect?
kernel.shmmax and kernel.shmall are per container.
I don't know how vm.overcommit_memory behaves with container and 
especially the cgroup memory controller.

Maybe Balbir has some infos.

Thanks
   -- Daniel





More information about the lxc-users mailing list