Re: [PHP-DEV] Is there any considerations for not putting php scripts in tmpfs?

2009-08-12 Thread 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


--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DEV] is there any way to get realpath cache hit ratio of php?

2009-08-12 Thread Stanislav Malyshev

Hi!


Is there any way to get realpath cache hit ratio of php?


Unfortunately not, it doesn't have API for statistics or looking into 
the cache. It would be a good idea to add one.


--
Stanislav Malyshev, Zend Software Architect
s...@zend.com   http://www.zend.com/
(408)253-8829   MSN: s...@zend.com

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php