/tmp on tmpfs

Lennart Poettering mzerqung at 0pointer.de
Tue Apr 3 20:54:38 UTC 2012


On Tue, 03.04.12 12:30, Steve Clark (sclark at netwolves.com) wrote:

> >Also, on servers where there are users with shell access, I'll typically
> >limit the size of /tmp with an option in fstab (the default is RAM/2,
> >which can be larger than I'd like).  However, reading the feature page,
> >this would be harder to do, since somebody's irrational fear of
> >/etc/fstab is extending to /tmp.  I think that's a bad idea, especially
> >since the proposed feature creates yet another way to mount filesystems
> >(systemd-"auto", /etc/fstab, and now a service for /tmp).  Really?  Two
> >wasn't enough?
> >
> I have been doing this also but limiting how much space can be used in /etc/fstab
> with the size= option. To do away with being able to control this seems dumb.

We are not doing away with this control. You can still configure it in
fstab as you always did.

It's just that by default we don't have an entry there for tmpfs. If you
have a line for /tmp there however, then yes, it takes precedence.

Lennart

-- 
Lennart Poettering - Red Hat, Inc.


More information about the devel mailing list