The idea here is that RAM is tremendously faster than hard drives, so putting heavily accessed files into a ramdisk (a disk created in ram that looks like an ordinary disk drive to the OS) will be faster.
In some cases, it may be. Generally speaking, though, the OS'es virtual memory system is smarter than you are and can make far better decisions about what the best overall use of memory is at any given moment. Frequently accessed disk blocks will very likely be in the buffer cache anyway, so a ramdisk may gain you little there and cause you to suffer elsewhere.
If you are going to essay this, don't base the results solely on immediate response. Watch the system closely with sar and other tools before and after the change; what seems obvious may not be.
Got something to add? Send me email.
Increase ad revenue 50-250% with Ezoic