Subject: Re: port-sparc/30918: 'unlimit' causes memory allocation to fail on sparc
To: None <gnats-bugs@netbsd.org>
From: Chuck Silvers <chuq@chuq.com>
List: netbsd-bugs
Date: 01/26/2006 08:44:30
hi,
the problem here is that each pthread is allocated a stack that's the same
size as the original process stack rlimit. when you unlimit, the limit
is set to MAXSSIZ, which on sparc is defined to be the same as MAXDSIZ,
which is 512 MB. it's very easy to run out of virtual space this way.
most other platforms define MAXSSIZ as 32 MB or sometimes 64 MB,
which seems plenty. are there any objections to lowering MAXSSIZ
on sparc to 32 MB?
-Chuck