Effectivement j'ai testé la commande en enlevant la ligne du fstab et celà indique bien si le /tmp est ram ou non.
Du coup j'ai voulu tester la vitesse d'écriture, toutefois , je ne sais pas si ma démarche est bonne. En effet je n'ai pas tout a fait effectué la démarche donné par Zahkar, j'ai juste utilisé la commande
dd if=/dev/urandom of=/tmp/file1Go bs=1M count=1024
/tmp sur le SSD :
xxx@xxx:~$ mount|grep tmpfs
udev on /dev type devtmpfs (rw,nosuid,noexec,relatime,size=1969160k,nr_inodes=492290,mode=755)
tmpfs on /run type tmpfs (rw,nosuid,nodev,noexec,relatime,size=402952k,mode=755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=402948k,mode=700,uid=1000,gid=1000)
xxx@xxx:~$ sync; echo 3 | sudo tee /proc/sys/vm/drop_caches;
[sudo] Mot de passe de moi :
3
xxx@xxx:~$ dd if=/dev/urandom of=/tmp/file1Go bs=1M count=1024
1024+0 enregistrements lus
1024+0 enregistrements écrits
1073741824 octets (1,1 GB, 1,0 GiB) copiés, 9,72592 s, 110 MB/s
xxx@xxx:~$
/tmp en RAM
xxx@xxx:~$ mount|grep tmpfs
udev on /dev type devtmpfs (rw,nosuid,noexec,relatime,size=1969164k,nr_inodes=492291,mode=755)
tmpfs on /run type tmpfs (rw,nosuid,nodev,noexec,relatime,size=402956k,mode=755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
tmpfs on /tmp type tmpfs (rw,nosuid,relatime,size=8388608k)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=402952k,mode=700,uid=1000,gid=1000)
xxx@xxx:~$ sync; echo 3 | sudo tee /proc/sys/vm/drop_caches;
[sudo] Mot de passe de moi :
3
xxx@xxx:~$ dd if=/dev/urandom of=/tmp/file1Go bs=1M count=1024
1024+0 enregistrements lus
1024+0 enregistrements écrits
1073741824 octets (1,1 GB, 1,0 GiB) copiés, 5,47474 s, 196 MB/s
xxx@xxx:~$
Pour ta question
Par contre, le mode=1777 n'y apparaît pas et je me demande l'intérêt d'encadrer la taille maxi de /tmp ?
Je ne m'y connait pas suffisamment pour répondre à ta question.