Talk:Unix filesystem: Difference between revisions

Content deleted Content added
Tmpfs limitations: Many statements about /tmp are neither uniformly true nor uniformly false, they're platform dependent. We should not use "is" or "isn't" for those statements.
Line 75:
 
::::::::Stating that tmpfs is a small filesystem with limited space is definitely a false claim as the limitation for tmpfs is sizeof RAM + sizeof swap and this typically is much more than /usr/tmp. I am disappinted to see that you repeatedly introduce this false claim. [[User:Schily|Schily]] ([[User talk:Schily|talk]]) 14:15, 30 March 2015 (UTC)
 
:::::::::Stating broadly, for all platforms, that tmpfs is, or isn't, a small file system with limited space is definitely a false claim, as:
 
:::::::::*on Linux, [https://www.kernel.org/doc/Documentation/filesystems/tmpfs.txt the documentation] says
 
tmpfs has three mount options for sizing:
size: The limit of allocated bytes for this tmpfs instance. The
default is half of your physical RAM without swap. If you
oversize your tmpfs instances the machine will deadlock
since the OOM handler will not be able to free that memory.
 
:::::::::*on Solaris, the size limit is based on the size of RAM ''plus swap'', and I can personally attest to sticking large files on tmpfs on Solaris.
 
:::::::::So it would be a mistake to say that {{mono|/tmp}} ''is'' a small file system or a file system that ''will'' be cleared or reboot or that ''will'' have files not recently referred to removed. We should, at most, note that it ''might be'' small (it is quite literally no smaller than {{mono|/var/tmp}} on my machine, as they're on the ''same partition'', and [[HFS+]] doesn't have per-directory size limits) and that files ''might be'' removed on reboot or ''might be'' removed after some period of time, depending on whether the OS you're using happens to use tmpfs or clean {{mono|/tmp}} on reboot (that's not a requirement, and, in fact, FreeBSD 10.1 didn't remove a file in {{mono|/tmp}} on reboot when I tried it just now) or whether {{mono|/tmp}} happens to be on a small root partition or whether it happens to be a tmpfs file system that imposes a RAM-only-based size limitation. [[User:Guy Harris|Guy Harris]] ([[User talk:Guy Harris|talk]]) 17:22, 30 March 2015 (UTC)