APLawrence.com -  Resources for Unix and Linux Systems, Bloggers and the self-employed

2004/02/24 ramdisk

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

More Articles by

Find me on Google+

© Tony Lawrence

Kerio Samepage

Have you tried Searching this site?

Support Rates

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more.

Contact us

One of the main causes of the fall of the Roman Empire was that, lacking zero, they had no way to indicate successful termination of their C programs. (Robert Firth)

This post tagged: