From d05b4dc6c19ba5f981e5d91860fb47433ee2cc15 Mon Sep 17 00:00:00 2001 From: Sven Velt Date: Wed, 20 Nov 2024 09:22:51 +0000 Subject: [PATCH] =?UTF-8?q?zram=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- zram.md | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 zram.md 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