Date: Fri, 15 Jul 2022 17:26:09 -0500 From: Larry Rosenman <ler@lerctr.org> To: Mark Johnston <markj@freebsd.org> Cc: Freebsd current <freebsd-current@freebsd.org> Subject: Re: limits.conf/stacksize doesn't seem to work? Message-ID: <51ef4fe0c8c5bbe251d3e75084847a6e@lerctr.org> In-Reply-To: <YtHpJEzN7OHmvle4@nuc> References: <d997dadc5e1b09fa6af0419f6641ed7f@lerctr.org> <YtHnsCfIwe%2BK6RMF@nuc> <32dc6f5b56a749f9b8e26330f9f2e8e0@lerctr.org> <YtHpJEzN7OHmvle4@nuc>
next in thread | previous in thread | raw e-mail | index | archive | help
On 07/15/2022 5:24 pm, Mark Johnston wrote: > On Fri, Jul 15, 2022 at 05:21:27PM -0500, Larry Rosenman wrote: >> On 07/15/2022 5:18 pm, Mark Johnston wrote: >> > On Fri, Jul 15, 2022 at 05:04:18PM -0500, Larry Rosenman wrote: >> >> I'm using the following kernel config: >> >> [...] >> >> and the following login.conf: >> >> [...] >> >> bacula_dir:\ >> >> :stacksize-max=68719476736:\ >> >> :stacksize-cur=68719476736:\ >> >> :tc=daemon: >> >> [...] >> >> I've updated my (ler) password entry to reference bacula_dir: >> >> ler:<elided>:1001:1001:bacula_dir:0:0:Larry >> >> Rosenman:/home/ler:/usr/local/bin/zsh >> >> >> >> >> >> when I ssh in, the stacklimit is still: >> >> โฏ ulimit -H -s >> >> 2097152 >> > >> > What is the value of the kern.maxssiz sysctl on this system? >> > >> >> ler in ๐ borg in sys/amd64/conf๐ on ๎ ler/freebsd-main-changes:main on >> >> โ๏ธ (us-east-1) >> >> โฏ ulimit -S -s >> >> 2097152 >> >> >> >> ler in ๐ borg in sys/amd64/conf๐ on ๎ ler/freebsd-main-changes:main on >> >> โ๏ธ (us-east-1) >> >> โฏ >> >> >> >> Where does this number come from? What am I missing here? >> > >> > The stack limit cannot be set to an arbitrarily large number. It will >> > silently be clamped to maxssiz. >> >> โฏ sysctl kern.maxssiz >> kern.maxssiz: 2147483648 > > Then what you're seeing is expected. The kernel is clamping the stack > segment limit to 2GB. I assume this is the default for MAXSSIZ? and if I change that in the kernel config, it will allow bigger? Where is this default defined? -- Larry Rosenman http://www.lerctr.org/~ler Phone: +1 214-642-9640 E-Mail: ler@lerctr.org US Mail: 5708 Sabbia Dr, Round Rock, TX 78665-2106
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?51ef4fe0c8c5bbe251d3e75084847a6e>