Looking over
https://www.kernel.org/doc/Documentation/filesystems/tmpfs.txt , Updated: KOSAKI Motohiro,
16 Mar 2010 (so old!)the string "nr_inodes" shows only 3 times.
1. "So 'mount -t tmpfs -o size=10G,nr_inodes=10k,mode=700 tmpfs /mytmpfs' will give you tmpfs instance on /mytmpfs which can allocate 10GB RAM/SWAP in 10240 inodes and it is only accessible by root" <--is Not very useful.
2. "nr_inodes: The maximum number of inodes for this instance. The default is
half of the number of your physical RAM pages, or (on a machine with highmem) the number of lowmem RAM pages, whichever is the lower." <--so we need to specify
something about inode (but not necesary 1/3 of RAM)
3. "
if nr_inodes=0, inodes will not be limited. It is generally unwise to mount with such options, since it allows any user with write access to
use up all the memory on the machine; but enhances the scalability of that instance in a system with
many cpus making intensive use of it." <-- like most modern forced UEFI_64 with shame-less multicore CPU (> 4+ cores).
But here is the thing, we use 90% of RAM, and
we use zram for compressed_swap in memory. So no danger to exhaust all RAM inodes, I think.
So, if I am not wrong, nr_inode parameter for mount can be zero (aka missing)?