From: metsky@telemark.zk3.dec.com (David Metsky)
Subject: Re: dlopen limits
Date: 1995/11/21 [thread overview]
Message-ID: <48t8h8$456@lead.zk3.dec.com> (raw)
In-Reply-To: 48i16o$b9t@news.tuwien.ac.at
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
prev parent reply other threads:[~1995-11-21 5:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-11-17 5:00 dlopen limits Marinos Yannikos
1995-11-21 5:00 ` Steven Winikoff
1995-11-21 5:00 ` David Metsky [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox