Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:44939 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 46675 invoked from network); 13 Jul 2009 06:38:02 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Jul 2009 06:38:02 -0000 Authentication-Results: pb1.pair.com header.from=thomas@koch.ro; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=thomas@koch.ro; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain koch.ro from 93.90.184.107 cause and error) X-PHP-List-Original-Sender: thomas@koch.ro X-Host-Fingerprint: 93.90.184.107 koch.ro Linux 2.6 Received: from [93.90.184.107] ([93.90.184.107:57619] helo=ve825703057.providerbox.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F5/D6-08420-946DA5A4 for ; Mon, 13 Jul 2009 02:38:02 -0400 Received: from 84-72-56-244.dclient.hispeed.ch ([84.72.56.244] helo=jona.localnet) by ve825703057.providerbox.net with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1MQFAj-0001NF-Ol for internals@lists.php.net; Mon, 13 Jul 2009 08:37:57 +0200 Reply-To: thomas@koch.ro To: PHP Internals Date: Mon, 13 Jul 2009 08:37:52 +0200 User-Agent: KMail/1.11.4 (Linux/2.6.29-1-amd64; KDE/4.2.4; x86_64; ; ) MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-ID: <200907130837.53453.thomas@koch.ro> Subject: PHP CLI and opcode caches From: thomas@koch.ro (Thomas Koch) Hi, I have some PHP scripts to be run as daemons or as gearman workers. Now it would be fine, if PHP could make use of an opcode cache also for CLI scripts. Is anybody aware of an opcode cache (APC, XCache, eaccelerator) that could be addapted in this way? Two possible scenarios: - A Runner starts and keeps running x PHP threads with the same PHP script which share an opcode cache. - A gearman worker starts different PHP scripts according to the requested task. All threads share the opcode cache. Which is the best mailing list to discuss this further, please? Best regards, Thomas Koch, http://www.koch.ro