What is the difference between tmpfs and ramfs

Solution 1:

The short answer is that

Primarily both ramfs and tmpfs do the same thing with some differences. Ramfs will grow dynamically. But when it goes above total RAM size, the system may hang, because RAM is full, and can't keep any more data.

Tmpfs will not grow dynamically. It would not allow you to write more than the size you’ve specified while mounting the tmpfs.

Tmpfs uses swap, where as Ramfs doesn't.

Source:csdn