Subject: Re: increase default for number of files descriptors per process (was Re: Speeding up "pstat -T")
To: Perry E. Metzger <perry@piermont.com>
From: Andrew Brown <atatat@atatdot.net>
List: tech-kern
Date: 10/05/2003 22:27:00
>Your rephrasing doesn't actually make it any easier for me to
>understand what you intended...
MAXSSIZ should disappear.
your hard limit should be adjustable upwards to maybe 2 gigabytes,
though it would not have a big effect until after you called exec.
here's a sample i made up:
% sh
$ pmap | grep stack
BDC00000 30720K [ stack ]
BFA00000 1984K read/write [ stack ]
BFBF0000 64K read/write [ stack ]
$ ulimit -s 2097152
$ pmap | grep stack
BDC00000 30720K read/write [ stack ]
BFA00000 1984K read/write [ stack ]
BFBF0000 64K read/write [ stack ]
$ exec sh
$ pmap | grep stack
7FBF0000 2097152K read/write [ stack ]
BFBF0000 64K read/write [ stack ]
stack space is anonymous memory, just like what you get from mmap, so
guards on how much you can use it one way are somewhat simplistic.
--
|-----< "CODE WARRIOR" >-----|
codewarrior@daemon.org * "ah! i see you have the internet
twofsonet@graffiti.com (Andrew Brown) that goes *ping*!"
werdna@squooshy.com * "information is power -- share the wealth."