Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:12856 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 15031 invoked by uid 1010); 16 Sep 2004 10:15:34 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 14979 invoked from network); 16 Sep 2004 10:15:33 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by pb1.pair.com with SMTP; 16 Sep 2004 10:15:33 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.10) with ESMTP id i8GAFXw6008324 for ; Thu, 16 Sep 2004 06:15:33 -0400 Received: from radish.cambridge.redhat.com (radish.cambridge.redhat.com [172.16.18.90]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id i8GAFWr14115 for ; Thu, 16 Sep 2004 06:15:32 -0400 Received: from radish.cambridge.redhat.com (localhost.localdomain [127.0.0.1]) by radish.cambridge.redhat.com (8.12.10/8.12.7) with ESMTP id i8GAFVNE010436 for ; Thu, 16 Sep 2004 11:15:31 +0100 Received: (from jorton@localhost) by radish.cambridge.redhat.com (8.12.10/8.12.10/Submit) id i8GAFVUv010435 for internals@lists.php.net; Thu, 16 Sep 2004 11:15:31 +0100 Date: Thu, 16 Sep 2004 11:15:31 +0100 To: internals@lists.php.net Message-ID: <20040916101531.GA6809@redhat.com> Mail-Followup-To: internals@lists.php.net References: <20040916093900.GA6842@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i Subject: Re: [PHP-DEV] [PATCH] use -prefer-non-pic on x86-{freebsd,linux} From: jorton@redhat.com (Joe Orton) On Thu, Sep 16, 2004 at 11:53:40AM +0200, Sascha Schumann wrote: > On Thu, 16 Sep 2004, Joe Orton wrote: > >This is Rasmus' patch but only enabled on platforms where it's known to > >work. Applies to HEAD: the apache2handler SAPI builds and loads a > >shared extension OK like this on Linux/i686. It looks like some people > >preferred a configure flag for this and some preferred to do it by > >default. Consensus? > > It needs to be optional. Otherwise, the DSO cannot be shared > across multiple independent Apache instances (which is the > main reason this has not been enabled for years). My understanding is that a single DSO on disk can be "shared" between two instances, but the text sections of such will not be shared in physical RAM between two instances which load it, because the code will get fixed up and hence copied-on-write. Is that not the case? So the trade-off for the default is between a performance hit in, I'd say, by far the the normal case (running a single Apache instance), or a memory hit in the less common case of running >1 instance concurrently. joe