Welcome Guest, Not a member yet? Register   Sign In
system folder in memory device
#1

[eluser]rogierb[/eluser]
I have been wondering if anyone has done something like this and even is it's possible.
What would be downside and what would be the gain?

First off the system folder should be out of root and copied into for instance /dev/shm/system. Or maybe create a new mount like /var/www/system?


Anyone has any thoughts if this would/could work? If it works theoretically the increase should be quite noticable.
#2

[eluser]Mike Ryan[/eluser]
Hi,

Yes, this will work fine in theory, I have successfully served content from Apache using a file system mounted in memory. I think a PHP cache/accelerator would be a better option though as it will save the files in memory in their compiled state.

As long as you populate the file system after each boot you can treat it as a normal disk. You can write to the files, but obviously your changes will not persist across reboots unless you move the data to a hard disk.


PS: nice sig Smile
#3

[eluser]TheFuzzy0ne[/eluser]
What a fantastic idea! Please let me know your findings!

I think it would be hard to get this working on a shared server, but for our own servers, it sounds like an ecxellent idea.




Theme © iAndrew 2016 - Forum software by © MyBB