This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Re: Help on dlmopen()
- From: Boris Arnoux <boris dot arnoux at gmail dot com>
- To: Laurynas Riliskis <laurynas dot riliskis at ltu dot se>
- Cc: libc-help at sourceware dot org
- Date: Fri, 18 Jun 2010 10:03:56 +0900
- Subject: Re: Help on dlmopen()
- References: <4C1A5965.9090505@ltu.se>
Hi,
?Something like that is developed for the NS3 network simulator.
( NS3-simu branch )
http://code.nsnam.org/mathieu/ns-3-simu/
There, loading multiple instances of the executable are used
as a virtualization solution at the process level. The number of
such namespaces is augmented by specific loader code.
( see the "smart elf loader" part ).
But I guess that's precisely on NS3 you are interested. Right ?
Cheers,
Boris Arnoux
On Fri, Jun 18, 2010 at 2:20 AM, Laurynas Riliskis
<laurynas.riliskis@ltu.se> wrote:
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi,
>
> I want to load many (upp to 100k units ) instances of the same library.
> hte code for oppening library is
> ? ? ? ?handler = dlmopen( LM_ID_NEWLM ,libname, RTLD_LAZY );
> However, I am not able to open more then 14 units before I get error:
> "
> no more namespaces available for dlmopen(): Invalid argument
> "
>
> It may look strange the need for such approach, but there is very good
> explanation. Which is also very long one :)
>
> Thank you for helping me!
>
> Laurynas
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (GNU/Linux)
>
> iEYEARECAAYFAkwaWWUACgkQIr6SCh3Bo2YsmACfRjSFbxxQOXN7uV3ydVSxeODU
> rokAn2CzdG2PcQ2NURqraYRVnklUzmMQ
> =rgvI
> -----END PGP SIGNATURE-----