Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:40093 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 86495 invoked from network); 26 Aug 2008 14:16:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Aug 2008 14:16:45 -0000 Authentication-Results: pb1.pair.com smtp.mail=arnaud.lb@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=arnaud.lb@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 216.239.58.190 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: arnaud.lb@gmail.com X-Host-Fingerprint: 216.239.58.190 gv-out-0910.google.com Received: from [216.239.58.190] ([216.239.58.190:32181] helo=gv-out-0910.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7E/44-03121-A4014B84 for ; Tue, 26 Aug 2008 10:16:44 -0400 Received: by gv-out-0910.google.com with SMTP id e6so398730gvc.37 for ; Tue, 26 Aug 2008 07:16:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :user-agent:references:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:message-id; bh=NUIx2XBUPFfNVh+Ii+NOZfaD76Gkjg+mQZj+pM/5XFI=; b=kyZGc9S6LI90DWpyq0iapZnyudVUccWo9gt9F7Ol0j9sCi/SSQxdNG5MT/sQwl6lEH qQi+0fJ7D3fKIvcC8W9EqypANF6cDTwpVenC3M03gTkXcUUM4UKtidaeN4bFjNuWoQUz MQhGQ+m5C295qzRoOTG1yeRicGfKY7KZjj44w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:references:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :message-id; b=dxsbsfvT9lDH7qPY9OSFNOGzQy09LH3TgbOLTYhGkDKlFwmqi56pLeZ543QJ40dHb3 XSFAYgq8xQAo+i1h3D+azrljzur7fxjsl0kAWlPT2wLXyZzRm2Q3eqLGzcVITnXH85p8 JD9b9kqmoeOL8b9lxOGDaOHArczNvny55oCJA= Received: by 10.103.212.20 with SMTP id o20mr3815437muq.22.1219760199861; Tue, 26 Aug 2008 07:16:39 -0700 (PDT) Received: from 207-177-41-213.getmyip.com ( [213.41.177.207]) by mx.google.com with ESMTPS id i5sm33457442mue.11.2008.08.26.07.16.36 (version=SSLv3 cipher=RC4-MD5); Tue, 26 Aug 2008 07:16:38 -0700 (PDT) To: internals@lists.php.net Date: Tue, 26 Aug 2008 16:14:12 +0200 User-Agent: KMail/1.10.0 (Linux/2.6.26-1-amd64; KDE/4.1.0; x86_64; ; ) References: <200808241837.10208.arnaud.lb@gmail.com> In-Reply-To: <200808241837.10208.arnaud.lb@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-ID: <200808261614.12415.arnaud.lb@gmail.com> Subject: Re: [RFC] Native TLS for globals in ZTS From: arnaud.lb@gmail.com (Arnaud Le Blanc) Hi, I updated the RFC. I added benchmark tests on x86_64: Position independent code is the default there and is as fast as non-PIC on IA-32. The initial patch using dynamic TLS gives the same results as on IA-32 with static TLS. I also tested the patch (with a few changes) on Windows Server 2008 with IIS (older Windows cannot use TLS in LoadLibrary()-loaded DLLs). This works as expected, but there are still some restrictions. Regards, Arnaud On Sunday 24 August 2008 18:37:09 Arnaud Le Blanc wrote: > Hi, > > I have written a RFC about my patch at http://wiki.php.net/rfc/tls > > The goal of this patch is to reduce the performance overhead of ZTS builds. > > Since the initial patch I made more research on various implementations of > TLS: Linux, FreeBSD, Solaris, Windows. Based on what I found I wrote a new > patch to avoid the problems of the initial one and the results on bench.php > are as follows: > > > non-ZTS > 3.7s > > > ZTS unpatched > 5.2s > > > ZTS-patched, native TLS disabled > 5.0s > > > ZTS-patched, native TLS enabled > 4.2s > > > Regards, > > Arnaud >