RFC on Cloud Images: Make /tmp a tmpfs
kirkland at canonical.com
Thu Jan 14 10:27:58 UTC 2016
On Thu, Jan 14, 2016 at 12:05 AM, Seth Arnold <seth.arnold at canonical.com> wrote:
> On Wed, Jan 13, 2016 at 11:00:16PM +0100, Martin Pitt wrote:
>> In a perfect world we'd have some clever tmpfs file system which would
>> use RAM as available and start overflowing onto a disk partition
>> (which could be LUKS with a random key) when necessary.. But even
> In fact this is what happens, 'unused' data from tmpfs heads to swap. So
> just configure swap space on your systems.
Moreover, just 'sudo apt-get install swapspace' and watch as swapfiles
are created/deleted as needed. If your root disk is lvm-encrypted,
then obviously such swap files are encrypted, too.
More information about the ubuntu-devel