Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:45260 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 70802 invoked from network); 10 Aug 2009 14:18:43 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Aug 2009 14:18:43 -0000 Authentication-Results: pb1.pair.com smtp.mail=patrick.allaert@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=patrick.allaert@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.218.226 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: patrick.allaert@gmail.com X-Host-Fingerprint: 209.85.218.226 mail-bw0-f226.google.com Received: from [209.85.218.226] ([209.85.218.226:63674] helo=mail-bw0-f226.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A7/F3-52265-24C208A4 for ; Mon, 10 Aug 2009 10:18:42 -0400 Received: by bwz26 with SMTP id 26so2613545bwz.23 for ; Mon, 10 Aug 2009 07:18:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=VwWq1Xlvb86cJUv7cwIBe6qN0Y9KifNzB95lDoCfnSI=; b=npmlWPzmcH2zHvw2hDQ7mh6a3gW940AZSxWdGcvvLVvttJra4XfRikpDX/g/zcojKg QZi4MmlGhFZ1MO2lJ+10MkHH7g4ZAFVddO2ukpHsMKa4IZtwPyErPlvoWGbVTHrIalce U82AbJrjueJgeXv0LG0vex10Kmk7SOlJV+3Lc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=daodQhNcmbIL1vZ0sNiTtXHLm33KharG5DUtIlZP5gQw7IyO1Pw7vtrImRGEU6pSFK Xux95tukw6A7Xj0O86HBh3yvAXW2Yo8PldEvY6BYBqp48lM1oVP/Er+fT5y3hGyQWNXU DX5PGOc1xWCe8aHhq7WBkdUhxD4WuJ3PIvs+Q= MIME-Version: 1.0 Received: by 10.103.181.20 with SMTP id i20mr1922224mup.98.1249913919436; Mon, 10 Aug 2009 07:18:39 -0700 (PDT) In-Reply-To: <727b43340908100633w5e884ef3o20c43b294efc4bd4@mail.gmail.com> References: <727b43340908100633w5e884ef3o20c43b294efc4bd4@mail.gmail.com> Date: Mon, 10 Aug 2009 16:18:39 +0200 Message-ID: To: Peter Wang Cc: internals@lists.php.net Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Is there any considerations for not putting php scripts in tmpfs? From: patrick.allaert@gmail.com (Patrick ALLAERT) Hi, 2009/8/10 Peter Wang : > Hi internals, > sorry if it is a wrong lists for this question. Indeed, this should be asked on php-general. > I have read many articles/messages about using tmpfs store temp files, > > for example, php session data, smarty compied templates and so on. > > An obvious reason for that is: it doesn't matter about data loss caused b= y > machine restart/poweroff. > > since it is not that difficult to restore files on a tmpfs from a disk-ba= sed > dir when machine boot up. > > so may i put all my php scripts on a tmpfs to speed it up? =C2=A0would th= at cause > other issues? 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. > thanks for your advices. --=20 Patrick Allaert --- http://code.google.com/p/peclapm/ - Alternative PHP Monitor