开发者

File system optimizations (ext3)

开发者 https://www.devze.com 2023-01-16 13:04 出处:网络
I have a PHP application that for every request loads 1 ini file, and at least 10 PHP files. As these same files are loaded for every single request I thought about mounting them on a ram disk but I

I have a PHP application that for every request loads 1 ini file, and at least 10 PHP files.

As these same files are loaded for every single request I thought about mounting them on a ram disk but I have been told that the linux filing system (ext3) will basically cache them in some way that a ram disk would not开发者_开发技巧 improve performance.

Can anyone verify this and possibly explain what is actually happening?

Many thanks.


The virtual file system of (not only) linux uses a cache for virtually every filesystem. So yes, that's in place for ext3, too.
But you might be interested in something like apc which stores the byte/intermediate code for php's zend engine in memory.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号