Tmpfs

tmpfs (Temporary File System) is a virtual filesystem to store files in memory.

Installation
You need to activate the following kernel options:

Usage
Generation and mounting of tmpfs in one step:

You can specify the mount option size to control the maximum size of the filesystem (default: half of your memory). Note that tmpfs doesn't reserve this memory, but allocates only the needed memory.