Posts

Showing posts from March, 2026

Mac Memory One Liners

 while true; do clear; vm_stat | perl -ne 'BEGIN{$ps=16384} /Pages (free|active|inactive|speculative|wired down|occupied by compressor):.*?(\d+)/ and $v{$1}=$2; /(Decompressions|Compressions):.*?(\d+)/ and $c{$1}=$2; END { $u=($v{active}+$v{inactive}+$v{"wired down"}+$v{speculative}+$v{"occupied by compressor"})*$ps/1024**3; $a=($v{free}+$v{inactive}+$v{speculative})*$ps/1024**3; $co=$v{"occupied by compressor"}*$ps/1024**3; $dc=$c{Decompressions}-$prev_dc; $cc=$c{Compressions}-$prev_cc; printf "Total Available: %.2f GB | Used: %.2f GB (%.2fGB Compressed)\n", $a, $u, $co; printf "ACTIVITY (last sec): Compressions: %d | Decompressions: %d\n", $cc, $dc if defined $prev_cc; }' 2>/dev/null; sleep 1; done % while true; do clear; vm_stat | perl -ne 'BEGIN{$ps=16384} /Pages (free|active|inactive|speculative|wired down|occupied by compressor):.*?(\d+)/ and $v{$1}=$2; END { $u=($v{active}+$v{"wired down"}+$v{"occupi...

Invocations

CachyOS: sudo python btrfs_inode_resolver.py games-install-diff.txt \             --subvol-mounts \           sys-home=/home sys-root=/ sys-cache=/var/cache \           sys-usrroot=/root local-data=/home/tim/local_data \           local-games=/home/tim/local_data/games Use --force to completely rescan database. python btrfs_diff_analyser.py games-install-diff.txt \           --scope system games \           --steam-libraries /home/tim/.local/share/Steam /home/tim/local_data/games \           --text report.txt \           --json report.json --user=tim --full_anomalies sudo mount -o subvol=@,compress=zstd,noatime,space_cache=v2,ssd /dev/sdb6 local_data sudo mount -o subvol=@games,compress=zstd,noatime,space_cache=v2,ssd /dev/sdb6 local_data/games Mount snapshot subvolumes for post ...
 sudo zpool import -d /dev/sdc1 -R /mnt/ zfs_data