Ignoring /boot/loader.conf and /boot/loader.conf.local?

Witzel, Stefan Stefan.Witzel at zvw.uni-goettingen.de
Tue Mar 19 12:56:08 UTC 2019


Hi,

on a system running FreeBSD 12.0 I want to run MongoDB (in a jail). According to https://vermaden.wordpress.com/tag/mongodb/ I tried to increase kern.maxproc.

The default value was 99999. For testing purposes I first add

kern.maxproc=100000

to /boot/loader.conf and rebooted: the value has not changed; the same result editing /boot/loader.conf.local.

Only if I edit /boot/defaults/loader.conf the value changed to 100000. Are there other restrictions on kern.maxproc?

Later I found all other entries in /boot/loader.conf are also ignored.

BTW, I found "#define PID_MAX 99999" in /usr/src/sys/sys/proc.h. Is it possible to set kern.maxproc greater 100000 if all pids are from the interval [0, 99999] and unique?

Thanks in advance.

Stefan


More information about the freebsd-questions mailing list