On 2022/03/21 18:46, Peter N. M. Hansteen wrote: > > > On 3/18/22 12:00, Stuart Henderson wrote: > > Can you try some smaller values and see what's really needed? > > > > 32MB is huge for a stack. We already have a couple of classes which > > default to 8MB stack - do things work for you with that instead? > > I've now run with > > staff:\ > :datasize-cur=4096M:\ > :datasize-max=infinity:\ > :maxproc-max=512:\ > :maxproc-cur=256:\ > :stacksize-cur=8M:\ > :ignorenologin:\ > :requirehome@:\ > :tc=default: > > for several days of admittedly light but normal-for-me use without > thunderbird crashing even once.
Thanks for testing. Can you try with the old default datasize-cur (i.e. 1536M) i.e. just change stacksize-cur please? Or if that's not enough, a lower increase (maybe 2048M)? (FWIW Thunderbird here is happy with 1536M, but I rarely run it, and never for extended times, it's just to test things usually). > I'm attaching the revised README patch, but perhaps we need an > /etc/login.conf.d/ file instead? The login.conf.d files in ports are really for daemons started with rc.d(8), while you can use an /etc/login.conf.d file to override the existing classes from login.conf (including 'staff') it wouldn't be sensible to install that file from an individual port. And while docs in README files will work for some users, we have found that they are often ignored too (and really that's understandable as one shouldn't have to fiddle with OS knobs just to run common software..) I think the best solution, if we can come up with figures that work reliably without being too big an increase, would be to raise the defaults a bit. But I am getting the impression that 4GB is probably a bit higher than would be ideal as a default.
