I'm using vagrant & virtualbox to create drupal websites on my Windows local machine. My actual drupal website is under a Windows folder, shared with my guest(ubuntu) by using a Windows NFS server (winnfsd).
After playing with NFS mount caching options, I understood that my website becomes really fast when enabling it.(specially files attributes caching with high actimeo parameter)
The website becomes fast, but it's almost unusable to developp at the same time:
- Changes in my Windows text editor (Sublime Text) are not seen by Linux.
- Sass/compass/gulp also don't see changes made in Windows if actimeo is superior to few seconds.
And when there is no NFS cache at all, I could see that lots of NFS operations are logged by my NFS server logs. Every Drupal files are accessed even several times to get attributes, nslookup, read, access...
So my idea was to make several NFS mounts, with different NFS caching options.
- Drupal core files never changed => really long NFS cache
- Contrib modules changed rarely => really long NFS cache
- Custom modules change often => NO CACHE
- My Themes change often => NO CACHE
So here is my question, is it good assumptions ? If yes how do we make those kind of multiple NFS shares ? I thought about Symlinks ? Any one tried this approach ?