Re: PHP causing high number of NFS getattr operations?

From: Date: Tue, 19 Feb 2013 01:55:53 +0000
Subject: Re: PHP causing high number of NFS getattr operations?
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-65919@lists.php.net to get a copy of this message
On 02/18/2013 05:50 PM, Stas Malyshev wrote: > Hi! > >> Wow, people are still serving web files over NFS? Sounds painful. > > Sometimes, there's not much (better) choices if you need to keep > writeable files in sync over a number of machines. There are other > shared FSes but they would lead to pretty much the same issues. Yeah, but NFS, especially without the realpath cache, which you lose if you turn on open_basedir, is deathly slow because of all the stats. Typically PHP scripts are not actually "writable files" and the way to keep them in synch across multiple machines is to use a deploy mechanism/rsynch to deploy them. You may very well have some writable files that need to be shared at the app-level, but then we wouldn't be talking about PHP stat calls and the realpath cache. And most people have moved to something like memcache for sharing writable data across machines. -Rasmus

« previous php.internals (#65919) next »