Re: [systemd-devel] SHM parameters on nspawn containers

2015-08-28 Thread Chris Bell

On 2015-08-26 20:28, Florian Koch wrote:

Ohne way is to use an More recent Kernel, with 3.16+ the Kernel
defaults for These values where changed to  unlimeted


This worked. I booted the host with a 4.1 kernel, and the values were 
appropriately high. Thanks!


On 2015-08-27 18:18, Lennart Poettering wrote:

Would be happy to take a patch that automatically propagates these
values from the host into the container.


While it would add a limited-case convenience to patch in this 
functionality, I'm not sure how necessary/beneficial it will be overall, 
since newer kernels apparently make this a non-issue.


Also, I ended up swapping out the CentOS7 guest with an Arch guest; my 
host systemd did not seem to like interfacing with the older (v208) 
systemd on CentOS. (And, 208 doesn't have networkd.) Everything's 
working swimmingly well, now.


Thanks!

--Chris
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel


Re: [systemd-devel] SHM parameters on nspawn containers

2015-08-26 Thread Florian Koch
Hi,

Ohne way is to use an More recent Kernel, with 3.16+ the Kernel defaults for 
These values where changed to  unlimeted

Regards Florian

Von meinem iPhone gesendet

 Am 26.08.2015 um 17:34 schrieb Chris Bell cwb...@narmos.org:
 
 Hello all,
 
 I'm attempting to run GitLab (with postgresql) on a CentOS 7 container with 
 systemd-nspawn. Postgre keeps failing, because it tries to allocate more 
 shared memory than the container seems to allow. I cannot use sysctl to write 
 the kernel.shmmax and kernel.shmall properties, since /sys isn't *real* 
 (sysctl -w fails with 'read-only file system'). I have the values set 
 correctly in the host machine, but they do not seem to propagate/be available 
 to the container. Is there any way I can set (increase) the kernel.shmmax and 
 kernel.shmall values in the container?
 
 Host: systemd 224 on Arch LTS Kernel (3.14.51)
 Guest: systemd 208 on CentOS 7 container
 
 Thanks,
 
 Chris
 ___
 systemd-devel mailing list
 systemd-devel@lists.freedesktop.org
 http://lists.freedesktop.org/mailman/listinfo/systemd-devel
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel