remove zram ratio script

This commit is contained in:
Sean Buckley 2022-07-11 10:16:20 -04:00
parent 881bb1b96b
commit b8b5d95f34

View file

@ -51,14 +51,6 @@
-e '/.cache/nix/flake-registry.json ' -e '/.cache/nix/flake-registry.json '
'') '')
(writeScriptBin "zram-ratio" ''
#!${pkgs.python3}/bin/python
(orig_data_size, compr_data_size, mem_used_total)=list(
map(int,filter(None,open('/sys/block/zram0/mm_stat').read().split(' ')))
)[:3]
print("compression ratio:", orig_data_size/mem_used_total)
'')
(writeScriptBin "zfsram" '' (writeScriptBin "zfsram" ''
#!${pkgs.python3}/bin/python #!${pkgs.python3}/bin/python
for ln in open('/proc/spl/kstat/zfs/arcstats').readlines(): for ln in open('/proc/spl/kstat/zfs/arcstats').readlines():