Creating a RAM disk

This recipe teaches you how to take advantage of RAM's low latency using a RAM disk, a section of memory made available as if it were a standard storage device. RAM disks often store volatile data that is constantly read and updated in memory. For example, on desktop systems they're used for storing a browser's cache to speed up web surfing. In server environments, RAM disks can store cache data for high-load proxy services to reduce latency.

Getting ready

This recipe requires a CentOS system with administrative privileges provided by logging in with the root account or using sudo.

How to do it...

Perform the following steps to create and use a RAM disk:

  1. Check whether there is sufficient memory available for the RAM disk using ...

Get CentOS 7 Server Deployment Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.