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

Re: deleting content of /tmp



On Sat, 24 Mar 2007, Jorge Peixoto de Morais Neto wrote:
> What is the performance impact of mounting /tmp in tmpfs? Some thoughts:

1. It is a lot faster for a lot of stuff, as long as your kernel has proper
swapping behaviour.  This happens because tmpfs can avoid a great deal of
costly operations that other filesystems with backing store need to perform
(such as the need to keep metadata in sync on the backing store).

2. It will waste more virtual memory space than your regular filesystem with
a backing store, as it needs to keep all data in virtual memory (even if it
happens to be swapped).  This *can* be a problem on 32-bit systems.

-- 
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh



Reply to: