From: Marian Marinov <mm-108MBtLGafw@public.gmane.org>
To: Manfred Spraul <manfred-nhLOkwUX5cPe2c5cEj3t2g@public.gmane.org>,
Davidlohr Bueso <davidlohr-VXdhtT5mjnY@public.gmane.org>
Cc: Greg KH
<gregkh-hQyY1W1yCW8ekmWlsbkhG0B+6BGkLq7r@public.gmane.org>,
akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org,
Linux Containers
<containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org>,
n-horiguchi-PaJj6Psr51x8UrSeD/g0lQ@public.gmane.org,
"linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: Re: [PATCH] IPC initialize shmmax and shmall from the current value not the default
Date: Mon, 26 May 2014 03:07:10 +0300 [thread overview]
Message-ID: <538285AE.30102@1h.com> (raw)
In-Reply-To: <53824C0D.1070204-nhLOkwUX5cPe2c5cEj3t2g@public.gmane.org>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi Manfred,
On 05/25/2014 11:01 PM, Manfred Spraul wrote:
> Hi Marian,
>
> On 05/22/2014 03:01 PM, Marian Marinov wrote:
>> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
>>
>> On 05/05/2014 10:59 PM, Marian Marinov wrote:
>>>
>>> In my tests it worked exactly as expected. Here is an example:
>>>
>>> [root@sp2 ~]# sysctl -a|grep shmmax kernel.shmmax = 68719476736 [root@sp2 ~]# lxc-attach -n cent_plain
>>> [root@localhost ~]# sysctl -a|grep shmmax kernel.shmmax = 68719476736 [root@localhost ~]# halt [root@sp2 ~]#
>>> sysctl -a|grep shmmax kernel.shmmax = 68719476736 [root@sp2 ~]# sysctl kernel.shmmax=34359738368 kernel.shmmax
>>> = 34359738368 [root@sp2 ~]# lxc-start -n cent_plain -d [root@sp2 ~]# lxc-attach -n cent_plain [root@localhost
>>> ~]# sysctl -a|grep shmmax kernel.shmmax = 34359738368 [root@localhost ~]#
>>>
>>> So it seams to work as expected :)
>>>
>>> It works because wen you setup a new shmmax limit it is actually the limit in the init_ipc_ns. So when we are
>>> creating a new ipc_ns its ok to copy the values from init_ipc_ns.
>>>
>>> -Marian
>>>
>> Ping?
>>
>> So will there be any more comments on that?
>>
>>
It seams logical. I like your approach even better.
I'll test it tomorrow to confirm if all of my tests are successful.
Marian
> Attached is an untested idea: - each new namespace copies from it's parent, i.e. nested namespaces should work. -
> msg, sem and shm updated
>
> -- Manfred
- --
Marian Marinov
Founder & CEO of 1H Ltd.
Jabber/GTalk: hackman-/eSpBmjxGS4dnm+yROfE0A@public.gmane.org
ICQ: 7556201
Mobile: +359 886 660 270
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
iEYEARECAAYFAlOCha4ACgkQ4mt9JeIbjJTMvwCdGHV2R7Y1H7x14n53Vyihg5AB
2k4Anjp6inQsGjvof2MAx9Sh2/1K3L25
=QTO9
-----END PGP SIGNATURE-----
next prev parent reply other threads:[~2014-05-26 0:07 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-03 22:48 [PATCH] IPC initialize shmmax and shmall from the current value not the default Marian Marinov
[not found] ` <5365723D.7030303-108MBtLGafw@public.gmane.org>
2014-05-03 23:53 ` Davidlohr Bueso
[not found] ` <1399161216.2573.9.camel-5JQ4ckphU/8SZAcGdq5asR6epYMZPwEe5NbjCUgZEJk@public.gmane.org>
2014-05-04 0:28 ` Marian Marinov
[not found] ` <536589B5.8060900-108MBtLGafw@public.gmane.org>
2014-05-04 1:20 ` Davidlohr Bueso
[not found] ` <1399166450.2573.15.camel-5JQ4ckphU/8SZAcGdq5asR6epYMZPwEe5NbjCUgZEJk@public.gmane.org>
2014-05-04 9:29 ` Marian Marinov
2014-05-04 11:17 ` Manfred Spraul
[not found] ` <536621D4.60002-nhLOkwUX5cPe2c5cEj3t2g@public.gmane.org>
2014-05-04 17:19 ` Davidlohr Bueso
[not found] ` <5367EDB6.3010408@1h.com>
[not found] ` <5367EDB6.3010408-108MBtLGafw@public.gmane.org>
2014-05-22 13:01 ` Marian Marinov
[not found] ` <537DF520.2050904@1h.com>
[not found] ` <537DF520.2050904-108MBtLGafw@public.gmane.org>
2014-05-25 20:01 ` Manfred Spraul
[not found] ` <53824C0D.1070204-nhLOkwUX5cPe2c5cEj3t2g@public.gmane.org>
2014-05-26 0:07 ` Marian Marinov [this message]
2014-05-27 14:41 ` Serge Hallyn
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=538285AE.30102@1h.com \
--to=mm-108mbtlgafw@public.gmane.org \
--cc=akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org \
--cc=containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org \
--cc=davidlohr-VXdhtT5mjnY@public.gmane.org \
--cc=gregkh-hQyY1W1yCW8ekmWlsbkhG0B+6BGkLq7r@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=manfred-nhLOkwUX5cPe2c5cEj3t2g@public.gmane.org \
--cc=n-horiguchi-PaJj6Psr51x8UrSeD/g0lQ@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox