mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-12-21 19:24:15 +00:00
remove zram ratio script
This commit is contained in:
parent
881bb1b96b
commit
b8b5d95f34
1 changed files with 0 additions and 8 deletions
|
@ -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():
|
||||||
|
|
Loading…
Reference in a new issue