On Wed, 08 Jul 2009 08:55:43 -0400
Richard Freeman <r...@thefreemanclan.net> wrote:

> 
> I occassionally get swaps, but that is no big deal.  In the worst case 
> swapping is no worse than not using tmpfs at all, and in the typical or 
> best cases it is far better.  It really is a no-lose scenario.  If 
> something leaves junk lying around in /var/tmp then it just gets swapped 
> out and never gets swapped back in - again no worse than if it were 
> written to disk in the first place.  Just make sure you have plenty of 
> swap space if your physical RAM is limited.
> 

My swap space is set for 8G, and it is also located at about
the center of the disk platter, which supposedly will give the
fastest I/O performance.

However, I am not clear on how tmpfs will fail.  If the tmpfs mount
becomes filled or exceeds the file limit, since it is essentially just
another disk partition shouldn't it produce a "No more space left on device"
error?  Or is the system designed to extend the tmpfs through swapping?
The latter option doesn't seem right, but everyone still refers to such
behavior.

Frank Peters

Reply via email to