Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:45267 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 29289 invoked from network); 12 Aug 2009 08:37:56 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Aug 2009 08:37:56 -0000 Authentication-Results: pb1.pair.com header.from=news@ger.gmane.org; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=php-php-dev@m.gmane.org; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain m.gmane.org designates 80.91.229.2 as permitted sender) X-PHP-List-Original-Sender: php-php-dev@m.gmane.org X-Host-Fingerprint: 80.91.229.2 main.gmane.org Linux 2.5 (sometimes 2.4) (4) Received: from [80.91.229.2] ([80.91.229.2:38862] helo=ciao.gmane.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BB/83-07222-36F728A4 for ; Wed, 12 Aug 2009 04:37:55 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Mb9LB-0000KF-RG for internals@lists.php.net; Wed, 12 Aug 2009 08:37:49 +0000 Received: from ip-118-90-25-106.xdsl.xnet.co.nz ([118.90.25.106]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 12 Aug 2009 08:37:49 +0000 Received: from n.sherlock by ip-118-90-25-106.xdsl.xnet.co.nz with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 12 Aug 2009 08:37:49 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: internals@lists.php.net Date: Wed, 12 Aug 2009 20:37:42 +1200 Lines: 13 Message-ID: References: <727b43340908100633w5e884ef3o20c43b294efc4bd4@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: ip-118-90-25-106.xdsl.xnet.co.nz User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051201 Thunderbird/1.5 Mnenhy/0.7.3.0 In-Reply-To: Sender: news Subject: Re: [PHP-DEV] Is there any considerations for not putting php scripts in tmpfs? From: n.sherlock@gmail.com (Nicholas Sherlock) Patrick ALLAERT wrote: > Don't do this, Linux/Unix already cache files in memory (-> grep > ^Cached /proc/meminfo). > If you want to speed up your PHP app, consider APC. +1 vote for APC. The performance improvement on my website was dramatic, I had to check the results several times before I believed it. We were a heavily overloaded server whose load average was 50 at peak times. A quick "apt-get install php-apc" reduced that load to 5.0, with just a 32MB opcode cache. Cheers, Nicholas Sherlock