Well after doing a lot more research I have managed to enable the compression on the BTRFS scheme. It made a massive difference!
Code: Select all
root@debian:/# btrfs filesystem df /
Data, single: total=626.50MiB, used=212.85MiB
System, DUP: total=8.00MiB, used=16.00KiB
Metadata, DUP: total=160.75MiB, used=16.34MiB
GlobalReserve, single: total=16.00MiB, used=0.00B
root@debian:/# btrfs filesystem usage /
Overall:
Device size: 976.00MiB
Device allocated: 964.00MiB
Device unallocated: 12.00MiB
Device missing: 0.00B
Used: 245.57MiB
Free (estimated): 413.65MiB (min: 413.65MiB)
Data ratio: 1.00
Metadata ratio: 2.00
Global reserve: 16.00MiB (used: 0.00B)
Got down to maybe 245 MB used, although the file system seems to allocate 160 MB to metadata for some reason which seems too much. It is a bit of a complicated file system. I think it allocates data between the data and metadata though so might not be too bad. Even if a bit of space is lost, the compression is so good that it more than makes up for it.
Post Pi-hole install and adding to the blocklist database (now have 269093 domains blocked, that should be quite a few bytes just there), there is still oodles of space on the drive!:
Code: Select all
root@debian:/home/sam# btrfs filesystem df /
Data, single: total=448.00MiB, used=396.45MiB
System, DUP: total=5.50MiB, used=16.00KiB
Metadata, DUP: total=48.75MiB, used=21.06MiB
GlobalReserve, single: total=16.00MiB, used=0.00B
root@debian:/home/sam# btrfs filesystem usage /
Overall:
Device size: 976.00MiB
Device allocated: 556.50MiB
Device unallocated: 419.50MiB
Device missing: 0.00B
Used: 438.61MiB
Free (estimated): 471.05MiB (min: 261.30MiB)
Data ratio: 1.00
Metadata ratio: 2.00
Global reserve: 16.00MiB (used: 0.00B)
Data,single: Size:448.00MiB, Used:396.45MiB
/dev/sda1 448.00MiB
Metadata,DUP: Size:48.75MiB, Used:21.06MiB
/dev/sda1 97.50MiB
System,DUP: Size:5.50MiB, Used:16.00KiB
/dev/sda1 11.00MiB
Unallocated:
/dev/sda1 419.50MiB
brtfs is a pretty weird file system and it is quite hard to actually know how much free space is avaliable, there is quite a large quantity of commands to query it and I think you have to just guess.
The machine still runs lightning fast and boots really quickly as it is so powerful.
Memory usage: 2.4 % so plenty of headroom on the RAM front and there seems to still be plenty of room on the hard drive too.
With btrfs it seems that I can add a second drive and set it behave as one volume, so I can do that if I run out of space on the 1 GB drive. I think it is not going to be a very good to use a cheap no brand USB flash drive as a hard drive so I wish to avoid doing this if possible.
Anyway, happy days.
https://www.youtube.com/watch?v=gqsT4xnKZPg