[Lxc-users] kernel.shmmax in LXC

Jan Den Ouden jan.ml at denouden.info
Thu Jun 7 10:45:46 UTC 2012


Hi,

About a week ago I posted exactly the same question on this list, but I
didn't get any responses. I have googled high and low for the answer to
this, but no result. It's not related to capabilities, because you can only
drop capabilities, not add them. It's not related to the cgroup memory
controller, because that seems to deal with total memory, not shared
memory. Therefore, I think it's a bug.
Jan
On Thu, Jun 7, 2012 at 11:43 AM, Jan Den Ouden <jan at denouden.info> wrote:

> Hi,
>
> About a week ago I posted exactly the same question on this list, but I
> didn't get any responses. I have googled high and low for the answer to
> this, but no result. It's not related to capabilities, because you can only
> drop capabilities, not add them. It's not related to the cgroup memory
> controller, because that seems to deal with total memory, not shared
> memory. Therefore, I think it's a bug.
>
> Jan
>
>
> On Thu, Jun 7, 2012 at 7:41 AM, Miroslav Lednicky <
> miroslav.lednicky at fnusa.cz> wrote:
>
>> Hello,
>>
>>        please, write me.
>>
>> How can I change kernel.shmmax in LXC?
>>
>> I see in host:
>>
>> sysctl -q kernel.shmmax
>> kernel.shmmax = 301989888
>>
>> but in LXC is:
>>
>> sysctl -q kernel.shmmax
>> kernel.shmmax = 33554432
>>
>> I try:
>>
>> sysctl -q -w kernel.shmmax=301989888
>>
>> but:
>>
>> error: permission denied on key 'kernel.shmmax'
>>
>> I read, kernel.shmmax value is by container.
>>
>> OK, but how can i change it?
>>
>> I have problem with postgres in LXC.
>>
>> Thank you,
>>
>> Miroslav.
>>
>> --
>> Miroslav Lednický
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Live Security Virtual Conference
>> Exclusive live event will cover all the ways today's security and
>> threat landscape has changed and how IT managers can respond. Discussions
>> will include endpoint security, mobile security and the latest in malware
>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>> _______________________________________________
>> Lxc-users mailing list
>> Lxc-users at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/lxc-users
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20120607/9dd5074d/attachment.html>


More information about the lxc-users mailing list