Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4435

General discussion • Zram, Overlay filesystem and available disk space

$
0
0
On a Raspberry Pi Zero Two with 8GB SD card, the memory and available disk space look like this

Code:

free -h               total        used        free      shared  buff/cache   availableMem:           418Mi       179Mi       102Mi       1.1Mi       194Mi       238MiSwap:           99Mi        32Mi        67Midf -h  # some lines omittedFilesystem      Size  Used Avail Use% Mounted on/dev/mmcblk0p2  6.8G  2.6G  3.9G  41% //dev/mmcblk0p1  510M   61M  450M  12% /boot/firmwarelog2ram          40M   18M   23M  43% /var/log
If I enable the overlay filesystem I get this

Code:

df -h/dev/mmcblk0p2  6.8G  3.0G  3.5G  47% /media/root-rotmpfs-root      209M   32K  209M   1% /media/root-rwoverlayroot     209M   32K  209M   1% /
(Disk size is / is now 50% of non-swap memory, regardless of SD card size)

Disable overlayfs, install zram following https://pimylifeup.com/raspberry-pi-zram/ and enable overlayfs, total memory is about the same but swap space appears to be substantially increased.

Code:

free -h               total        used        free      shared  buff/cache   availableMem:           417Mi       203Mi       100Mi        20Mi       183Mi       213MiSwap:          521Mi          0B       521Mi
So is there any scope for the size of the in-memory root filesystem to be any greater? It still seems to be set to 219MB.
I was hoping to get a bit more free space!

Statistics: Posted by jbudd — Tue Apr 23, 2024 8:37 pm — Replies 1 — Views 62



Viewing all articles
Browse latest Browse all 4435

Trending Articles