Action required: Rawhide: /tmp is now on tmpfs

Reindl Harald h.reindl at thelounge.net
Fri Jun 1 16:04:53 UTC 2012



Am 01.06.2012 18:01, schrieb Chris Adams:
> Once upon a time, Reindl Harald <h.reindl at thelounge.net> said:
>> DO NOT SPIT USELESS DATA IN MY RAM PER DEFAULT BECAUSE RAM
>> IS EXPENSIVE STORAGE AND USED FOR BETTER THINGS
> 
> Actually, the data written to /tmp _always_ goes through the page cache
> and is held in RAM (at least for a bit).  Since many things in /tmp are
> short-lived, they'll stay in the page cache for "life".  The difference
> between /tmp-on-storage and /tmp-on-tmpfs is that tmpfs has no overhead
> for reading metadata from storage, allocating space, flushing updated
> metadata, etc.; the files just only exist in the same page cache they
> would have been in all along

but the data in /tmp are not forever in the cache

if it is tmpf and app dies after creating a 2 GB file in /tmp
RAM will be filled until next reboot and leads sooner or later
in swap-usage or OOM-killer

no, you do NOT want swap-usage in most workloads at all

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <http://lists.fedoraproject.org/pipermail/devel/attachments/20120601/5fa75e47/attachment.sig>


More information about the devel mailing list