LWN.net Logo

Temporary files: RAM or disk?

Temporary files: RAM or disk?

Posted Jun 2, 2012 11:40 UTC (Sat) by th0ma7 (guest, #24698)
Parent article: Temporary files: RAM or disk?

A sort of "unionfs" over a regular /tmp (or /tmp over the / partition for that matter) in conjunction of a tmpfs with priority to use RAM space 1st would solve most of the problems... no?


(Log in to post comments)

Temporary files: RAM or disk?

Posted Jun 2, 2012 18:35 UTC (Sat) by ncm (subscriber, #165) [Link]

A common cautionary tale template has an engineer confronting a problem and choosing a shortcut: "... and then the engineer had two problems". Unionfs has fundamental shortcomings that make it a problem where its usage pattern is not severely constrained.

How would this work, exactly? Would a daemon move big files out of tmpfs /tmp to a shadowed on-disk /tmp? This might steer clear of unionfs's shortcomings.

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds