question about tmpfs

Reinis Rozitis r at
Thu Apr 28 19:58:00 UTC 2016

> What happens when a add a new tmpfs partition e.g for squid?

tmpfs uses also swap.
So if you make the fs larger than actual ram and it starts to go beyond the 
physical memory limit things will be swaped out to disk (harddrive) and 
everything might become slow(er).

In general if you can't fit the data in ram it's not a good idea also linux 
file cache should keep accessed files in ram so unless you suffer from write 
speeds (even those if not specifically O_DIRECT will go to ram first and 
later flushed) the reads will come as much as possible from ram anyways.


More information about the nginx mailing list