From owner-freebsd-emulation@FreeBSD.ORG Sun Jun 26 18:59:04 2005 Return-Path: X-Original-To: freebsd-emulation@freebsd.org Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 374DE16A41C for ; Sun, 26 Jun 2005 18:59:04 +0000 (GMT) (envelope-from vova@vbook.fbsd.ru) Received: from vbook.fbsd.ru (swsoft-mipt-nat.sw.ru [195.214.233.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id DE1F543D1F for ; Sun, 26 Jun 2005 18:59:03 +0000 (GMT) (envelope-from vova@vbook.fbsd.ru) Received: from vova by vbook.fbsd.ru with local (Exim 4.51 (FreeBSD)) id 1DmcLO-0000f1-Tg; Sun, 26 Jun 2005 22:59:02 +0400 From: Vladimir Grebenschikov To: jaco@coocoo.za.net In-Reply-To: <3036.196.37.144.98.1119811026.squirrel@webmail.premsoft.co.za> References: <2943.196.37.144.98.1119808764.squirrel@webmail.premsoft.co.za> <1119810301.1100.5.camel@localhost> <3036.196.37.144.98.1119811026.squirrel@webmail.premsoft.co.za> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Organization: SWsoft Date: Sun, 26 Jun 2005 22:59:02 +0400 Message-Id: <1119812342.1100.12.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.2.3 FreeBSD GNOME Team Port Sender: Vladimir Grebenschikov Cc: freebsd-emulation@freebsd.org Subject: Re: [Linux] Loading Linux modules in Apache? X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: vova@fbsd.ru List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Jun 2005 18:59:04 -0000 =D0=92 =D0=B2=D1=81, 26/06/2005 =D0=B2 20:37 +0200, jaco@coocoo.za.net =D0= =BF=D0=B8=D1=88=D0=B5=D1=82: > Hello Vladimir, >=20 > > =C3=B7 =C3=97=C3=93, 26/06/2005 =C3=97 19:59 +0200, jaco@coocoo.za.net = =C3=90=C3=89=C3=9B=C3=85=C3=94: > >> Hello All, > >> > >> I am trying to load a Linux module in Apache 2.0.53, but I am running > >> into > >> some problems. > >> > >> I am not sure if this is even possible, but I sure hope so. ;) > > > > I guess you have some choices: > > > > - (easyest) Install linux apache and run whole beast under linux > > emulation > > - (much harder) You can try to mix ABI in single binary (just like win > > or mplayer does with windows DLLs) but, it is not easy task > > - write module wrapper for apache, it will consist of two parts - one > > FreeBSD binary (loaded into bsd apache), another - linux (it part will > > load your linux apache module). Parts should be connected by some IPC > > and apache module interface should be exported via this IPC. > > [...] >=20 > Thanks for your reply. >=20 > Seems that I really do have a couple of choices. :) >=20 > 1. This seems like the easyest route. I am just a bit worried about > performance here... I will do a couple of benchmarks though. I do not think that you will get significant performance degradation, but I think, you can resolve some performance issues building linux apache under linux gcc using FreeBSD IPC syscalls. Theoretically bot linux and freebsd apaches should run with same speed at the end, but, of course there should be some practice issues. > 2. This will mean that I will have to change source code in either the > module or apache. I think this is going to be really hard. :P Is my > understanding of this correct? (I do not have source for the module) I understand that you have no sources, and In order to get all this work you can do a lot of linking/wrapping magic.=20 But you should understand what you going to get. > 3. This also sounds like a good option. But, I think this is also going t= o > be a bit complicated in the end. Probably yes, also, I guess it will affect performance much worse then option 1. > I will do some tests on my side. At least I now know this is not possible > the way I wanted to do it. >=20 > Thanks! > ---Jaco --=20 Vladimir B. Grebenschikov vova@fbsd.ru