At tmpfs - ArchWiki is said that “a tmpfs partition has its maximum size set to half of the available RAM” and it is true in my case. But i am wondering if really is needed to have that large /tmp
So i am asking which commands to run to discover right size?
Here are some details:
$ grep tmp /etc/fstab;df -h /tmp;uptime;free -h;inxi -Fazy|grep -i "swap";pamac info systemd-swap|grep Description
tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0
Filesystem Size Used Avail Use% Mounted on
tmpfs 32G 943M 31G 3% /tmp
16:29:04 up 4:51, 1 user, load average: 4,07, 4,47, 4,46
total used free shared buff/cache available
Mem: 62Gi 55Gi 4,5Gi 1,0Gi 2,4Gi 5,2Gi
Swap: 5,1Gi 3,6Gi 1,5Gi
Swap:
Kernel: swappiness: 60 (default) cache-pressure: 100 (default)
ID-1: swap-1 type: file size: 1.02 GiB used: 1.02 GiB (99.8%) priority: 50
file: /var/lib/systemd-swap/swapfc/1
ID-2: swap-2 type: file size: 1.02 GiB used: 1.02 GiB (99.9%) priority: 49
file: /var/lib/systemd-swap/swapfc/2
ID-3: swap-3 type: file size: 1.02 GiB used: 1.02 GiB (99.3%) priority: 48
file: /var/lib/systemd-swap/swapfc/3
ID-4: swap-4 type: file size: 1.02 GiB used: 582.1 MiB (55.5%)
priority: 47 file: /var/lib/systemd-swap/swapfc/4
ID-5: swap-5 type: file size: 1.02 GiB used: 0 KiB (0.0%) priority: 46
file: /var/lib/systemd-swap/swapfc/5
Description : Script for creating hybrid swap space from zram swaps,
Thank you
PS: to change size, i assume to run “sudo nano /etc/fstab” and on “tmpfs /tmp” line replace “defaults,” by “defaults,size=2G,” & reboot ?