[Lxc-users] IPC shm settings in containers

Jan Den Ouden jan.ml at denouden.info
Mon May 28 12:04:08 UTC 2012


I pasted the wrong output in my email. The shm settings in my container are
actually:

[root at ct1 ~]# sysctl -a|grep shm
kernel.shmmax = 33554432
kernel.shmall = 2097152
kernel.shmmni = 4096

Thanks,
Jan

On Mon, May 28, 2012 at 11:55 AM, Jan Den Ouden <jan.ml at denouden.info>wrote:

> Hi,
>
> I'm using kernel 3.2.0 on Linux Mint 13. Inside a container I am running
> an application which needs a lot of shared memory. On my host I have
>
> lenovo memory # sysctl -a|grep shm
> kernel.shmmax = 4398046511104
> kernel.shmall = 1073741824
> kernel.shmmni = 4096
>
> However, in my container I see:
>
> lenovo memory # sysctl -a|grep shm
> kernel.shmmax = 4398046511104
> kernel.shmall = 1073741824
> kernel.shmmni = 4096
>
> I don't understand where these much lower settings come from. Is this
> because the IPC subsystem is isolated? When I try to change the setting in
> the container it fails:
>
> [root at ct1 ~]# sysctl -w kernel.shmmax=4398046511104
> error: permission denied on key 'kernel.shmmax'
>
> My lxc config file does not contain any entries to drop capabilities. What
> do I need to do to enable change kernel parameters inside the container?
>
> Many thanks for any help!
>
> Jan
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20120528/46b2a861/attachment.html>


More information about the lxc-users mailing list