Date: Sat, 16 Jul 2022 03:18:06 +0300 From: Mehmet Erol Sanliturk <m.e.sanliturk@gmail.com> To: Mark Johnston <markj@freebsd.org> Cc: Larry Rosenman <ler@lerctr.org>, Freebsd current <freebsd-current@freebsd.org> Subject: Re: limits.conf/stacksize doesn't seem to work? Message-ID: <CAOgwaMuRGFo3Yev0R0QVXvBS33HAbiYzbtftsvKuWBV=XsA=mQ@mail.gmail.com> In-Reply-To: <YtHq9bT3jJSlT6jW@nuc> References: <d997dadc5e1b09fa6af0419f6641ed7f@lerctr.org> <YtHnsCfIwe%2BK6RMF@nuc> <32dc6f5b56a749f9b8e26330f9f2e8e0@lerctr.org> <YtHpJEzN7OHmvle4@nuc> <51ef4fe0c8c5bbe251d3e75084847a6e@lerctr.org> <YtHq9bT3jJSlT6jW@nuc>
next in thread | previous in thread | raw e-mail | index | archive | help
--000000000000ce5f9305e3e1137c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sat, Jul 16, 2022 at 1:32 AM Mark Johnston <markj@freebsd.org> wrote: > On Fri, Jul 15, 2022 at 05:26:09PM -0500, Larry Rosenman wrote: > > 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=3D68719476736:\ > > >> >> :stacksize-cur=3D68719476736:\ > > >> >> :tc=3Ddaemon: > > >> >> [...] > > >> >> 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: > > >> >> =E2=9D=AF ulimit -H -s > > >> >> 2097152 > > >> > > > >> > What is the value of the kern.maxssiz sysctl on this system? > > >> > > > >> >> ler in =F0=9F=8C=90 borg in sys/amd64/conf=F0=9F=94=92 on =EE=82= =A0 > ler/freebsd-main-changes:main on > > >> >> =E2=98=81=EF=B8=8F (us-east-1) > > >> >> =E2=9D=AF ulimit -S -s > > >> >> 2097152 > > >> >> > > >> >> ler in =F0=9F=8C=90 borg in sys/amd64/conf=F0=9F=94=92 on =EE=82= =A0 > ler/freebsd-main-changes:main on > > >> >> =E2=98=81=EF=B8=8F (us-east-1) > > >> >> =E2=9D=AF > > >> >> > > >> >> 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. > > >> > > >> =E2=9D=AF sysctl kern.maxssiz > > >> kern.maxssiz: 2147483648 > > > > > > Then what you're seeing is expected. The kernel is clamping the stac= k > > > 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? > > The default value is platform dependent. On amd64 it's 512MB, so I'm > not sure where your value is coming from. ------------------------------------------------------- > It's defined in a header. > You can set it in the kernel configuration, or as a tunable or sysctl. > > ------------------------------------------------------- My opinion is that , there is some one ( or more ) constant(s) defined elsewhere , because setting MAXSSIZ is NOT WORKING when it is larger than the "unknown" default value ... With my best wishes for all , Mehmet Erol Sanliturk --000000000000ce5f9305e3e1137c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div dir=3D"ltr"><div class=3D"gmail_default" style=3D"fon= t-family:tahoma,sans-serif;font-size:large"><br></div></div><br><div class= =3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Sat, Jul 16, 2022= at 1:32 AM Mark Johnston <<a href=3D"mailto:markj@freebsd.org">markj@fr= eebsd.org</a>> wrote:<br></div><blockquote class=3D"gmail_quote" style= =3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding= -left:1ex">On Fri, Jul 15, 2022 at 05:26:09PM -0500, Larry Rosenman wrote:<= br> > On 07/15/2022 5:24 pm, Mark Johnston wrote:<br> > > On Fri, Jul 15, 2022 at 05:21:27PM -0500, Larry Rosenman wrote:<b= r> > >> On 07/15/2022 5:18 pm, Mark Johnston wrote:<br> > >> > On Fri, Jul 15, 2022 at 05:04:18PM -0500, Larry Rosenman= wrote:<br> > >> >> I'm using the following kernel config:<br> > >> >> [...]<br> > >> >> and the following login.conf:<br> > >> >> [...]<br> > >> >> bacula_dir:\<br> > >> >>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0:stacksize-max=3D68= 719476736:\<br> > >> >>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0:stacksize-cur=3D68= 719476736:\<br> > >> >>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0:tc=3Ddaemon:<br> > >> >> [...]<br> > >> >> I've updated my (ler) password entry to referenc= e bacula_dir:<br> > >> >> ler:<elided>:1001:1001:bacula_dir:0:0:Larry<br= > > >> >> Rosenman:/home/ler:/usr/local/bin/zsh<br> > >> >><br> > >> >><br> > >> >> when I ssh in, the stacklimit is still:<br> > >> >> =E2=9D=AF ulimit -H -s<br> > >> >> 2097152<br> > >> ><br> > >> > What is the value of the kern.maxssiz sysctl on this sys= tem?<br> > >> ><br> > >> >> ler in =F0=9F=8C=90 borg in sys/amd64/conf=F0=9F=94= =92 on =EE=82=A0 ler/freebsd-main-changes:main on<br> > >> >> =E2=98=81=EF=B8=8F=C2=A0 (us-east-1)<br> > >> >> =E2=9D=AF ulimit -S -s<br> > >> >> 2097152<br> > >> >><br> > >> >> ler in =F0=9F=8C=90 borg in sys/amd64/conf=F0=9F=94= =92 on =EE=82=A0 ler/freebsd-main-changes:main on<br> > >> >> =E2=98=81=EF=B8=8F=C2=A0 (us-east-1)<br> > >> >> =E2=9D=AF<br> > >> >><br> > >> >> Where does this number come from?=C2=A0 What am I mi= ssing here?<br> > >> ><br> > >> > The stack limit cannot be set to an arbitrarily large nu= mber.=C2=A0 It will<br> > >> > silently be clamped to maxssiz.<br> > >> <br> > >> =E2=9D=AF sysctl kern.maxssiz<br> > >> kern.maxssiz: 2147483648<br> > > <br> > > Then what you're seeing is expected.=C2=A0 The kernel is clam= ping the stack<br> > > segment limit to 2GB.<br> > <br> > I assume this is the default for MAXSSIZ?=C2=A0 and if I change that i= n the <br> > kernel config, it will<br> > allow bigger?=C2=A0 Where is this default defined?<br> <br> The default value is platform dependent.=C2=A0 On amd64 it's 512MB, so = I'm<br> not sure where your value is coming from.=C2=A0</blockquote><div><br></div>= <div><br></div><div><div style=3D"font-family:tahoma,sans-serif;font-size:l= arge" class=3D"gmail_default">---------------------------------------------= ----------</div><br></div><div>=C2=A0</div><blockquote class=3D"gmail_quote= " style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);= padding-left:1ex"> It's defined in a header.<br> You can set it in the kernel configuration, or as a tunable or sysctl.<br> <br></blockquote><div><div><br></div><div><div style=3D"font-family:tahoma,= sans-serif;font-size:large" class=3D"gmail_default">-----------------------= --------------------------------</div><br></div><div><br></div></div><div><= div style=3D"font-family:tahoma,sans-serif;font-size:large" class=3D"gmail_= default">My opinion is that , there is some one ( or more ) constant(s) <br= ></div><div style=3D"font-family:tahoma,sans-serif;font-size:large" class= =3D"gmail_default">defined elsewhere , because <br></div><div style=3D"font= -family:tahoma,sans-serif;font-size:large" class=3D"gmail_default"><br></di= v><div style=3D"font-family:tahoma,sans-serif;font-size:large" class=3D"gma= il_default">setting=C2=A0 MAXSSIZ=C2=A0 is=C2=A0 NOT WORKING when it is lar= ger than</div><div style=3D"font-family:tahoma,sans-serif;font-size:large" = class=3D"gmail_default"><br></div><div style=3D"font-family:tahoma,sans-ser= if;font-size:large" class=3D"gmail_default">the "unknown" default= value ...</div><div style=3D"font-family:tahoma,sans-serif;font-size:large= " class=3D"gmail_default"><br></div><div style=3D"font-family:tahoma,sans-s= erif;font-size:large" class=3D"gmail_default"><br></div><div style=3D"font-= family:tahoma,sans-serif;font-size:large" class=3D"gmail_default">With my b= est wishes for all ,</div><div style=3D"font-family:tahoma,sans-serif;font-= size:large" class=3D"gmail_default"><br></div><div style=3D"font-family:tah= oma,sans-serif;font-size:large" class=3D"gmail_default">Mehmet Erol Sanlitu= rk <br></div><div style=3D"font-family:tahoma,sans-serif;font-size:large" c= lass=3D"gmail_default"><br></div><div style=3D"font-family:tahoma,sans-seri= f;font-size:large" class=3D"gmail_default"><br></div><br></div><div><br></d= iv><div><br></div><div><br></div><div>=C2=A0</div></div></div> --000000000000ce5f9305e3e1137c--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAOgwaMuRGFo3Yev0R0QVXvBS33HAbiYzbtftsvKuWBV=XsA=mQ>