Ive done alot of reading that mounting var/sessions and var/cache to ram will give a performance boost. However would this still be beneficial if I am using SSD?

closed as primarily opinion-based by brentwpeterson, 7ochem, pspahn, Amit Bera, Keyul Shah Jun 3 '15 at 0:51

Many good questions generate some degree of opinion based on expert experience, but answers to this question will tend to be almost entirely based on opinions, rather than facts, references, or specific expertise. If this question can be reworded to fit the rules in the help center, please edit the question.


It's always better to put the data you want to cache in Ram memory as is faster than a SSD. RAM is much faster than SSD but volatile, that means if the power is gone then the data is lost.

Also Ram is not only faster but the OS uses it in a complete different way.

This is just to give an example but a tipycal DRAM has a transfer rate of approximately 2-20GB/s, whereas typical SSDs have a transfer rate of 50MB-200MB/s. So it's one to two orders of magnitude slower.

RAM is far more flexible and is truly random access -- any word, any time. By comparison, flash writes have to erase an entire block at a time before writing to it; and there are other problems that need to be dealt with such as wear leveling and bad blocks.

So you have to put a file system on top of SSD to deal with those issues. You can put a file system on top of DRAM (it is called a ramdisk), but you don't have to.

Coming back to magento you could try to use memcached to store sessions data and redis for block cache.

  • Is mounting var/cache and var/sessions to ram just as good as using memcache and redis? – ronrony288 Jun 2 '15 at 20:34
  • It depends on what you need or want to do, but if you have multiple app servers is a good idea to store the sessions in a memcached server that can be accessed by all servers. BTW how would you mount var/cache and var/sessions to ram exactly? – lloiacono Jun 2 '15 at 20:36
  • I was going to ask my host to do this screencast.com/t/544FMBPyzL Located at this link yoast.com/magento-performance-hosting Everything is on one server. – ronrony288 Jun 2 '15 at 20:39
  • I just found this nice article that gives an overview of the different options and it benefits: magebase.com/magento-tutorials/… – lloiacono Jun 2 '15 at 20:40
  • So according to that article there is not much difference. Seems a little hard to believe. Not sure what to do. – ronrony288 Jun 2 '15 at 20:43

Not the answer you're looking for? Browse other questions tagged or ask your own question.