re: svn - cannot allocate mem

matthew green <[email protected]>
Newsgroups gmane.os.netbsd.ports.sparc
Message-ID <[email protected]>
in an attempt to reproduce the problem i wrote a simple program that
simply creates a number of processes and each process creates a number
of threads.  i'm not able to reproduce the "lwp_ctl" error case, but
the default stack size does limit the number of threads well before
the actual limit on threads.  with the default 8MB stack size, one
runs out of VA space for in 32 bit user some point after about 450.
(infact, my patch below removes 128MB of space from the user VA space,
going from 3G to 2+7/8 G, which means the total number of lwps that
can be created is reduced by 16 or so - 128 / 8.

this is not the same problem Riccardo reported originally, where it
is a lwp_ctl() call that fails.

trying to consume more resources to see if can get that failure mode.


.mrg.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.