From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fc89c,bf2ea6865e8fab59 X-Google-Attributes: gidfc89c,public X-Google-Thread: 10650a,bf2ea6865e8fab59 X-Google-Attributes: gid10650a,public X-Google-Thread: fee84,bf2ea6865e8fab59 X-Google-Attributes: gidfee84,public From: Dirk Grunwald Subject: Re: Lots of Threads = Death? Date: 1998/04/28 Message-ID: #1/1 X-Deja-AN: 348583764 References: <35464b25.29547822@149.174.211.108> Organization: University of Colorado Newsgroups: comp.unix.osf.osf1,comp.unix.internals,comp.unix.programmer 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. -- Dirk Grunwald Assoc. Prof, Univ. of Colorado at Boulder