[Bug 1533639] Re: [ubuntu-cpc] please make /tmp a tmpfs in RAM
Robie Basak
1533639 at bugs.launchpad.net
Wed Jan 13 12:45:55 UTC 2016
> * Performance - much faster read/write access to data in /tmp
Is this really true? Writes to /tmp will go to the page cache, which I
believe is an identical path whether /tmp is backed by disk or by tmpfs.
Similarly reads from /tmp will come from the page cache except where
pages have been evicted in the case of a disk-backed /tmp, which cannot
happen with tmpfs.
fsyncs on /tmp will be slower. Whether that's a problem depends on the
application. But do we need to use tmpfs to eliminate that? Is there a
better way of just swallowing syncs (eatmydata style), which would have
the same effect?
The big disadvantage of a tmpfs /tmp is that it cannot be paged out, and
thus puts pressure on available system RAM. One failure case is a
sysadmin expecting it to be backed to disk (and therefore be big), using
it for something temporary, and then killing the system due to memory
starvation.
> * Security - sensitive data would be cleared from memory on boot,
rather than written (leaked) to disk -- important for encryption
scenarios
If this is important then surely the user is encrypting the filesystem
on disk anyway?
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1533639
Title:
[ubuntu-cpc] please make /tmp a tmpfs in RAM
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/livecd-rootfs/+bug/1533639/+subscriptions
More information about the Ubuntu-server-bugs
mailing list