[Python-Dev] stack check on Unix: any suggestions?

Thomas Wouters thomas@xs4all.net
Thu, 31 Aug 2000 14:46:45 +0200


On Thu, Aug 31, 2000 at 02:33:28PM +0200, M.-A. Lemburg wrote:

> At least for my Linux installation a limit of 9000 seems
> reasonable. Perhaps everybody on the list could do a quick
> check on their platform ?

On BSDI, which has a 2Mbyte default stack limit (but soft limit: users can
set it higher even without help from root, and much higher with help) I can
go as high as 8k recursions of the simple python-function type, and 5k
recursions of one involving a C call (like a recursive __str__()).

I don't remember ever seeing a system with less than 2Mbyte stack, except
for seriously memory-deprived systems. I do know that the 2Mbyte stacklimit
on BSDI is enough to cause 'pine' (sucky but still popular mailprogram) much
distress when handling large mailboxes, so we usually set the limit higher
anyway.

Mutt-forever-ly y'rs,
-- 
Thomas Wouters <thomas@xs4all.net>

Hi! I'm a .signature virus! copy me into your .signature file to help me spread!