Is there any considerations for not putting php scripts in tmpfs?

Is there any considerations for not putting php scripts in tmpfs?

am 10.08.2009 15:48:55 von Peter Wang

--001485f87fbad768b60470c9d894
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

Hi php-general,
sorry if it is a wrong lists for this question.

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 by
machine restart/poweroff.

since it is not that difficult to restore files on a tmpfs from a disk-based
dir when machine boot up.

so may i put all my php scripts on a tmpfs to speed it up? would that cause
other issues?

thanks for your advices.

--001485f87fbad768b60470c9d894--

Re: Is there any considerations for not putting php scripts in

am 10.08.2009 15:54:10 von Richard Quadling

2009/8/10 Peter Wang :
> Hi php-general,
> sorry if it is a wrong lists for this question.
>
> 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?  would th=
at cause
> other issues?
>
> thanks for your advices.
>

Considering that in the main PHP scripts are readonly, I would have
thought the normal file and disk caching of the OS would suffice.



--=20
-----
Richard Quadling
Zend Certified Engineer : http://zend.com/zce.php?c=3DZEND002498&r=3D213474=
731
"Standing on the shoulders of some very clever giants!"
ZOPA : http://uk.zopa.com/member/RQuadling

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Is there any considerations for not putting php scripts in

am 10.08.2009 16:15:44 von Peter Wang

--001636c5a2b3c395d50470ca389a
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

hi,thanks for your reply.



On Mon, Aug 10, 2009 at 9:54 PM, Richard Quadling
wrote:

> 2009/8/10 Peter Wang :
> > Hi php-general,
> > sorry if it is a wrong lists for this question.
> >
> > 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
> by
> > machine restart/poweroff.
> >
> > since it is not that difficult to restore files on a tmpfs from a
> disk-based
> > dir when machine boot up.
> >
> > so may i put all my php scripts on a tmpfs to speed it up? would that
> cause
> > other issues?
> >
> > thanks for your advices.
> >
>
> Considering that in the main PHP scripts are readonly, I would have
> thought the normal file and disk caching of the OS would suffice.


normal file/disk caching of the OS works for small amount of files,
but when your apps has huge amounts of files, that doesn't work any more.
even with APC, it still cause many stat() system calls.


>
>
>
>
> --
> -----
> Richard Quadling
> Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731
> "Standing on the shoulders of some very clever giants!"
> ZOPA : http://uk.zopa.com/member/RQuadling
>

--001636c5a2b3c395d50470ca389a--