Redux: Speedup browser using RAM-disk

Here is this Lifehacker post that describes moving  your browser cache to a RAM-disk for making your browser faster. The tip for doing this in Linux actually is from this website, which in turn copies the procedure for making the RAM-disk from this Linux how-to.

The idea is very simple; in-memory access to data is faster. So if we move the cache of a browser to the volatile RAM, which is much faster than the disc access, the browser will be faster. But the procedure described is really involved and requires partitioning and what not.

What these guys forgot is that Linux has a far easier way to do this. Just use /dev/shm, a RAM-based temporary filesystem, already created for you during boot-time in all modern Linux distro. It’s read-write. ready to use, and unlike RAM-disk, the size of this file-system expands and shrinks according to the use. You don’t need to mount it, it has already been mounted for you. The maximum size of this filesystem is generally half of your memory in the computer.

So there it is, if you want faster access to anything disk bound, just use /dev/shm. No need to create a RAM-disk.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s