Hello,

A while back I posted that gcc/g++ was segfault consistently while
compiling ITK (ITK.org, mixed c & c++). It turns out that the
stacksize limit is too low. It was 4M by default. While I was in there
I also changed the default section in /etc/login.conf to have these
limits

        :datasize-max=768M:\
        :memoryuse-max=512M:\
        :memorylocked-max=512M:\
        :datasize-cur=512M:\
        :openfiles-max=768:\
        :openfiles-cur=512:\
        :stacksize-cur=16M:\
        :stacksize-max=64M:\

and the seg faults have gone way down (they have almost disappeared).

This machine is old and only one I can install OpenBSD on in our lab
(rest of them have an NVIDIA network card & NVIDIA graphics card). It
is an old Xeon 2.4 Ghz with 1 GB RAM.

My question is: when we do an initial/fresh install, are these limits
set dynamically or they are hard coded? If I install on another
machine do I have to change the limits in /etc/login.conf manually?

Thanks

Reply via email to