From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII X-Google-Thread: fc89c,bf2ea6865e8fab59 X-Google-Attributes: gidfc89c,public X-Google-Thread: fee84,bf2ea6865e8fab59 X-Google-Attributes: gidfee84,public X-Google-Thread: 10650a,bf2ea6865e8fab59 X-Google-Attributes: gid10650a,public From: Jeff Denham Subject: Re: Lots of Threads = Death? Date: 1998/04/29 Message-ID: <35472D6A.145BBC1A@brighttiger.com>#1/1 X-Deja-AN: 348740681 Content-Transfer-Encoding: 8bit References: <35464b25.29547822@149.174.211.108> Content-Type: text/plain; charset=iso-8859-1 Organization: Bright Tiger Technologies Mime-Version: 1.0 Newsgroups: comp.unix.osf.osf1,comp.unix.internals,comp.unix.programmer Dirk Grunwald wrote: > each stack entry requires one or more 'pmap' entries. A pmap is a > range of virtual -> physical mappings that share the same acccess > permissions. > > Threads tend to chew up a lot of map entries because each heap uses > two protection areas (one that is writable, and the guard page that is > not accessable). > > You can duplicate the same effect by using 'mmap' to allocate > bazillions of pages, and make certain adjacent pages don't have the > same permissions. > > My guess is you're running over the limit of the number of pmap > regions you can have. > > I think that kernel parameter is called 'vm-mapentries'. You should > see it's current setting if you do a 'sysconfig -q vm | grep -i map'. > You should be able to reconfigure it using /etc/sysconfigtab. Also, why you're at it, increase the vpagemax parameter -- say double or tripleit. See the documentation on kernel tuning. __________________________________________________ Jeff Denham (jdenham@brighttiger.com) Bright Tiger Technologies SmartCluster� Software for Distributed Web Servers http://www.brighttiger.com 125 Nagog Park Acton, MA 01720 Phone: (978) 263-5455 x177 Fax: (978) 263-5547