Neo_78 wrote: ↑Mon Feb 14, 2022 2:10 pm
GDM has a little indicator of free RAM space in the bottom panel.
Technically, it's not GDM's indicator, it's freemem.sh script, which invokes GDM on right-click, but that's a detail.
Once FatDog is loaded into RAM, it indicates 3.1GB of free space. During normal day operation this sometimes drops to 3.0GB although I do not open additional programs or download anything. So I would like to know what exactly occupies those 100MB.
A possible explanation is that some processes cache things in tmpfs in an unlinked form.
For example, opening a YT video in FF causes a part of that video to be cached in /tmp and immediately unlinked, so you won't find these files in /tmp and yet you can see that the space is used:
Code: Select all
# df -h /tmp
Filesystem Size Used Avail Use% Mounted on
tmpfs 2.7G 66M 2.6G 3% /tmp
We have 66M used, but the size of all files inside /tmp is only:
Code: Select all
# du -ch /tmp | grep total
1.1M total
You can find those unlinked files in /tmp by doing this (I have 2 tabs with videos open):
Code: Select all
# lsof +L1 | grep /tmp
Isolated 789 spot 34u REG 0,25 22151168 0 78 /tmp/mozilla-temp-1156782472 (deleted)
gtkdialog 2149 root 10u REG 0,25 47056 0 122 /tmp/vteIGMJH1 (deleted)
gtkdialog 2149 root 11u REG 0,25 69642 0 123 /tmp/vteJJMJH1 (deleted)
gtkdialog 2149 root 12u REG 0,25 16592 0 124 /tmp/vte7JMJH1 (deleted)
tilda 2157 root 11u REG 0,25 23184 0 201 /tmp/vteUYCSH1 (deleted)
tilda 2157 root 12u REG 0,25 44332 0 202 /tmp/vteSUESH1 (deleted)
tilda 2157 root 13u REG 0,25 5968 0 203 /tmp/vteXVESH1 (deleted)
Isolated 10379 spot 34u REG 0,25 45350912 0 191 /tmp/mozilla-temp-2080028079 (deleted)
Now let's add up the sizes:
Code: Select all
# echo '(22151168 + 47056 + 69642 + 16592 + 23184 + 44332 + 5968 + 45350912) / 1024 / 1024' | bc -l
64.57219505310058593750
~64.6M (lsof) + 1.1M (du) = 65.7M ≈ 66M (df)
Similar thing may happen in /dev/shm, btw.
MochiMoppel wrote: ↑Mon Feb 14, 2022 3:54 am
Maybe this can help: On my system the directory /initrd/pup_rw holds the files added/changed since boot. These files occupy RAM. You could use the tool of your choice to analyze them. Don't know if this applies to Fatdog.
In Fatdog it's /aufs/pup_rw.
Greetings!