Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Jul 2022 18:18:24 -0400
From:      Mark Johnston <markj@freebsd.org>
To:        Larry Rosenman <ler@lerctr.org>
Cc:        Freebsd current <freebsd-current@freebsd.org>
Subject:   Re: limits.conf/stacksize doesn't seem to work?
Message-ID:  <YtHnsCfIwe%2BK6RMF@nuc>
In-Reply-To: <d997dadc5e1b09fa6af0419f6641ed7f@lerctr.org>
References:  <d997dadc5e1b09fa6af0419f6641ed7f@lerctr.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?YtHnsCfIwe%2BK6RMF>