[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: /tmp as tmpfs and consequence for imaging software



Le samedi 12 novembre 2011 à 23:12 +0100, Samuel Thibault a écrit : 
> Adam Borowski, le Sat 12 Nov 2011 23:08:08 +0100, a écrit :
> > You need to increase the swap size by the amount you'd use for /tmp.
> 
> Well, the idea of such case is precisely to *not* use swap, but real
> disks. Such software already know how to manage its memory and
> disk-backed memory (thusly stored in /tmp)

Practically speaking, the only significant difference is that files are
not forced to disk as early. Otherwise, if you have a large enough swap,
pages of a file on a tmpfs that are not used enough will be swapped. And
pages of a file on a regular filesystem that are used enough will be
kept in the buffer cache.

OTOH, for a wide range of applications that do a lot of small writes,
using tmpfs is a huge gain.

-- 
 .''`.      Josselin Mouette
: :' :
`. `'
  `-

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: