[PATCH 0/3] ipc: Further updates to sysv/mqueue limits

From: Manfred Spraul
Date: Tue Aug 12 2014 - 03:29:48 EST


Hi Andrew,

I got some positive and no negative feedback on my patches, thus:
Could you add the patches to -mm and push them towards Linus?

0001-ipc-msg-increase-MSGMNI-remove-scaling.patch
- increase MSGMNI to 32000
- as a bonus, this removes around 300 lines

0002-ipc-sem.c-increase-SEMMSL-SEMMNI-SEMOPM.patch
- increase all limits
- update the documentation, it was stale

Note: Redhat/Oracle recommend values that exceed what I would recommend
as safe upper limits.

https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/5/html/Tuning_and_Optimizing_Red_Hat_Enterprise_Linux_for_Oracle_9i_and_10g_Databases/sect-Oracle_9i_and_10g_Tuning_Guide-Setting_Semaphores-An_Example_of_Semaphore_Settings.html

Unfortunately I didn't get any replies, thus I don't know how to proceed.

One option would be to switch from kmalloc to ipc_alloc, then the risk of
failing due to memory fragmentation would be resolved.

0003-ipc-namespace-copy-settings-from-parent-namespace.patch
Change the namespace code so that a new namespace inherits the values
from it's parent instead of the boot time defaults.

Serge Hallyn and Michael Kerrisk also consider the new approach as better.
One thing that is a bit surprising is that clone(CLONE_NEWIPC)k

I've tested the changes both with unshare -i and with my own test apps.
Unfortunately I didn't manage to get lxc to run on my busybox test setup :-(

--
Manfred
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/