Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Jul 2003 04:13:19 -0400
From:      Mike Makonnen <mtm@identd.net>
To:        Kai Mosebach <kai.mosebach@freshx.de>
Cc:        freebsd-threads@freebsd.org
Subject:   Re: LinuxThreads replacement
Message-ID:  <20030710081318.GA14524@kokeb.ambesa.net>
In-Reply-To: <000301c346b5$c8327240$0100a8c0@alpha>
References:  <20030710001204.GB10504@kokeb.ambesa.net> <000301c346b5$c8327240$0100a8c0@alpha>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jul 10, 2003 at 09:35:03AM +0200, Kai Mosebach wrote:
> Hi,
> 
> Hmm, some kind of benchmark would be pretty interesting, thats right.
> But im not sure, whether its done by simply switching between the lib in
> the
> Libmap.conf, because sapdb consists of ~50 executables, which are
> startet from each other (for example, you have a service listener, which
> starts a dm-manager, and later on a database-kernel and so on ...), so i
> guess, that i have to whether 1) link libc_r or some nasty trick like
> that, or to create to binary versions.
> 

I'm not sure I understand what you are saying.

To begin with you should go to /usr/src/libexec/rtld-elf and do a
make clean;  make depend && make -DWITH_LIBMAP && make install
 
Assuming, that whatever you're porting is NOT statically linked, then
all you have to do is edit /etc/libmap.conf; for example:
# global mappings
libc_r.so.5	libkse.so.1
libc_r.so	libkse.so

and then start the application. Any executables that are started
after that and are linked to libc_r, will instead link with
libkse. Then, you stop the database, and edit libmap.conf to
point to libthr. Then, startup the database.
For more information: man libmap.conf.

Cheers.
-- 
Mike Makonnen  | GPG-KEY: http://www.identd.net/~mtm/mtm.asc
mtm@identd.net | D228 1A6F C64E 120A A1C9  A3AA DAE1 E2AF DBCC 68B9
mtm@FreeBSD.Org| FreeBSD - Unleash the Daemon!



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030710081318.GA14524>