This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Help on dlmopen()


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-----


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]