From owner-freebsd-threads@FreeBSD.ORG Thu Jul 10 01:13:26 2003 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D390137B401 for ; Thu, 10 Jul 2003 01:13:26 -0700 (PDT) Received: from pool-151-200-10-97.res.east.verizon.net (pool-141-156-181-146.esr.east.verizon.net [141.156.181.146]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1663843FAF for ; Thu, 10 Jul 2003 01:13:24 -0700 (PDT) (envelope-from mtm@identd.net) Received: from kokeb.ambesa.net (localhost [IPv6:::1]) id h6A8DK0G014675; Thu, 10 Jul 2003 04:13:20 -0400 (EDT) (envelope-from mtm@identd.net) Received: (from mtm@localhost) by kokeb.ambesa.net (8.12.9/8.12.6/Submit) id h6A8DJ9S014674; Thu, 10 Jul 2003 04:13:19 -0400 (EDT) (envelope-from mtm@identd.net) Date: Thu, 10 Jul 2003 04:13:19 -0400 From: Mike Makonnen To: Kai Mosebach Message-ID: <20030710081318.GA14524@kokeb.ambesa.net> References: <20030710001204.GB10504@kokeb.ambesa.net> <000301c346b5$c8327240$0100a8c0@alpha> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000301c346b5$c8327240$0100a8c0@alpha> User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD/5.1-CURRENT (i386) cc: freebsd-threads@freebsd.org Subject: Re: LinuxThreads replacement X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Jul 2003 08:13:27 -0000 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!