Subject: Re: port-sparc/30918: 'unlimit' causes memory allocation to fail on sparc
To: None <>
From: Chuck Silvers <>
List: netbsd-bugs
Date: 01/26/2006 08:44:30

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?