Subject: Re: port-sparc/30918: 'unlimit' causes memory allocation to fail on sparc
To: None <port-sparc-maintainer@netbsd.org, gnats-admin@netbsd.org,>
From: Chuck Silvers <chuq@chuq.com>
List: netbsd-bugs
Date: 01/26/2006 17:00:04
The following reply was made to PR port-sparc/30918; it has been noted by GNATS.
From: Chuck Silvers <chuq@chuq.com>
To: gnats-bugs@netbsd.org
Cc: port-sparc-maintainer@netbsd.org, gnats-admin@netbsd.org,
netbsd-bugs@netbsd.org
Subject: Re: port-sparc/30918: 'unlimit' causes memory allocation to fail on sparc
Date: Thu, 26 Jan 2006 08:44:30 -0800
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