[arch-general] swap and tmpfs

Sean Greenslade sean at seangreenslade.com
Thu Apr 23 19:37:00 UTC 2015


On April 23, 2015 9:52:11 AM CDT Ralf Mardorf <ralf.mardorf at rocketmail.com> wrote:
>Hi,
>
>this line in fstab
>
>$ grep tmp /etc/fstab 
>tmpfs   /tmp         tmpfs   nodev,nosuid,size=3G          0  0
>
>usually is commented out. One time it was needed, when building a
>kernel failed. Today building Firefox failed. I'll try with 3G
>again, instead of half of the memory (1.9G), after a restart, to safely
>clean tmp first.
>
>I suspect that if the RAM size doesn't fit, swap isn't used?!
>

To be clear, swap is used for tmpfs if available ram is exhausted. The tmpfs still obeys the mount option for max size regardless.

--Sean


-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.


More information about the arch-general mailing list