Re: swap and /tmp



On Sat, May 06, 2006 at 06:11:16PM -0400, Dave Witbrodt wrote:
Please correct me if I'm wrong:

About 2 years ago I started reading up about Linux when I was first
decided whether to try it, and which distro to use. I took about a
year before I finally installed Debian last May.

During that time I remember reading that some programs that write to
CDs or DVDs were caching data in /tmp before burning. It seems like
using tmpfs for /tmp under that kind of scenario would be a real
problem. My old box would probably roll over and die, and my newer
one probably would if a DVD image was being built in /tmp.

That info is, admittedly, out of date... but I would want to take a
serious look into such things before putting /tmp on a tmpfs!

It really doesn't matter where these applications cache theire
temporary data. The only importance such considerations have is
in deciding how much space to allocate to your /tmp - it doesn't
matter weather it is stored on a disk partition or a ramfs filesystem.

I think you might be misunderstanding what ramfs does.
using ramfs doesn't put any additional restrictions on
the maximum size of the temp partition. You just have to
add whatever space would have been used for a tmp partition
to your swap partition, and you will be able to support
just as many CD and DVD images.

The effect of using ramfs is to allow things to run faster by
removing any requirement to keep a complete filesystem image on
non-volatile media (disk), and to allow greater flexibility by
allowing disk space to be distributed between /tmp space and
backing store for memory on demand rather than being fixed at
installation time.

Regards,
DigbyT
--
Digby R. S. Tarvin digbyt(at)digbyt.com
http://www.digbyt.com


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: swap and /tmp
    ... the maximum size of the temp partition. ... The effect of using ramfs is to allow things to run faster by ... non-volatile media (disk), and to allow greater flexibility by ... A ramfs filesystem is likely to handle large numbers of small files ...
    (Debian-User)
  • dd gives input/output error on error-free partition
    ... I have a hard disk with a number of partitions, ... ONE partition it fails with an 'input/output' ... Even though it succeeds on reading the entire disk as ...
    (alt.os.linux)
  • Re: softupdates, adding space to partitions, etc
    ... partition for accepting somewhat larger email attachments/ messages. ... i thought softupdates was the way to go, but on reading the handbook ... No. Softupdates is a method of improving performance by optimizing ... Make the entire disk one big Vinum partition ...
    (freebsd-questions)
  • Re: dd gives input/output error on error-free partition
    ... >>error on reading a hard disk partition, ... >>are no error messages whatsoever logged by the kernel (i.e. ... >>The dd succeeded for all partitions and also the entire disk ...
    (alt.os.linux)
  • Re: Trying to find significant factors in experimental results
    ... that anyone else might argue for. ... and thanks for pointing me towards some more reading. ... repeated for every possible partition. ...  My reading of Factorial ANOVA suggests that every population ...
    (sci.stat.edu)