commit d05b4dc6c19ba5f981e5d91860fb47433ee2cc15 Author: Sven Velt Date: Wed Nov 20 09:22:51 2024 +0000 zram hinzugefĆ¼gt diff --git a/zram.md b/zram.md new file mode 100644 index 0000000..76030f4 --- /dev/null +++ b/zram.md @@ -0,0 +1,46 @@ +Vorher: +``` +root@ws ~ # find /proc -name "*zr*"; find /sys -name "*zr*" +``` + +Modul laden: +``` +root@ws ~ # modprobe zram +root@ws ~ # find /proc -name "*zr*"; find /sys -name "*zr*" +/sys/kernel/btf/zram +/sys/kernel/debug/zram +/sys/kernel/debug/zram/zram0 +/sys/kernel/debug/block/zram0 +/sys/class/block/zram0 +/sys/class/zram-control +/sys/devices/virtual/block/zram0 +/sys/block/zram0 +/sys/module/zram +``` + +Mit aktivem zram-Swap: +``` +root@odroid-m1:pts/0->/home/svelt (0) +> zramctl +NAME ALGORITHM DISKSIZE DATA COMPR TOTAL STREAMS MOUNTPOINT +/dev/zram0 lzo-rle 3,8G 4K 74B 12K 4 [SWAP] +/dev/zram1 zstd 50M 2M 428,8K 1,7M 4 /var/log +root@odroid-m1:pts/0->/home/svelt (0) +> find /proc -name "*zr*"; find /sys -name "*zr*" +/proc/fs/ext4/zram1 +/sys/kernel/debug/block/zram2 +/sys/kernel/debug/block/zram1 +/sys/kernel/debug/block/zram0 +/sys/class/block/zram1 +/sys/class/block/zram2 +/sys/class/block/zram0 +/sys/class/zram-control +/sys/devices/virtual/block/zram1 +/sys/devices/virtual/block/zram2 +/sys/devices/virtual/block/zram0 +/sys/fs/ext4/zram1 +/sys/block/zram1 +/sys/block/zram2 +/sys/block/zram0 +/sys/module/zram +``` \ No newline at end of file