From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,90cf0b9565a25283 X-Google-Attributes: gidfee84,public From: metsky@telemark.zk3.dec.com (David Metsky) Subject: Re: dlopen limits Date: 1995/11/21 Message-ID: <48t8h8$456@lead.zk3.dec.com>#1/1 X-Deja-AN: 119823076 distribution: world references: <48i16o$b9t@news.tuwien.ac.at> organization: Digital Equipment Corporation reply-to: metsky@zk3.dec.com (David Metsky) newsgroups: comp.unix.osf.osf1 >From the engineer responsible for the loader: The limit of roughly 95 shared libraries loaded either as static dependencies or by dlopen is imposed by the kernel configuration parameter for the maximum number of mmap entries allowed per process. This is set to 200 by default. Each shared library requires at least 2 mmap entries (3 if it's bss size isn't zero -- use "odump -ov" to identify the bss size.) The program, loader, heap and stack take up another 10-12 mmap entries. As a rule of thumb, I'd use the formula mapentries = 20 + ( max-libraries * 3 ) To increase the maximum number of shared libraries that a process can load simply reconfigure the kernel's mapentries limit. The following instructions will work on DEC OSF/1 V3.2 and up. To examine the current setting for the mapentries limit: % /sbin/sysconfig -q vm vm-mapentries vm-mapentries = 200 To change the mapentries limit to 1000: 1. edit /etc/sysconfigtab and add the following 2 lines vm: vm-mapentries = 1000 2. reboot the system -- David Metsky Digital UNIX Software Group metsky@zk3.dec.com -- David Metsky Digital UNIX Software Group metsky@zk3.dec.com