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

Witzel, Stefan Stefan.Witzel at zvw.uni-goettingen.de
Wed Mar 20 07:00:22 UTC 2019




--
Georg-August-Universität Göttingen Stiftung Öffentlichen Rechts
Abteilung IT
Goßlerstraße 5/7
37073 Göttingen

Telefon: 0551 / 39-24160
Fax:     0551 / 39-1824160
E-Mail:  stefan.witzel at zvw.uni-goettingen.de


> -----Ursprüngliche Nachricht-----
> Von: Polytropon <freebsd at edvax.de>
> Gesendet: Dienstag, 19. März 2019 14:43
> An: Witzel, Stefan <Stefan.Witzel at zvw.uni-goettingen.de>
> Cc: freebsd-questions at freebsd.org
> Betreff: Re: Ignoring /boot/loader.conf and /boot/loader.conf.local?
> 
> On Tue, 19 Mar 2019 12:56:05 +0000, Witzel, Stefan wrote:
> > 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.
> 
> You should not change a defaults file, this is not intended.
> 
> 

I first try it by changing /boot/loader.conf[.local]. Only to check if
100000 is invalid I changed /boot/defaults/loader.conf

> 
> > Are there other restrictions on kern.maxproc?
> 
> Did you try setting those vial /etc/sysctl.conf?

kern.maxproc is set at boot time, it is not writable in multiuser mode.

> 
> 
> 
> > Later I found all other entries in /boot/loader.conf are also ignored.
> 
> That looks very strange. But it might be due to the jail construction
> which inherits the kernel values from the host...

I don't think this results from the jails. At boot time there is no active
jail. And kern.maxproc sets the size of the process table which is global
for the host including all jails, I think.  

> 
> 
> 
> 
> --
> Polytropon
> Magdeburg, Germany
> Happy FreeBSD user since 4.0
> Andra moi ennepe, Mousa, ...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 7678 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20190320/a9ca891e/attachment.bin>


More information about the freebsd-questions mailing list