[no subject]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have a couple of services with zram

https://github.com/StuartIanNaylor/log2zram

https://github.com/StuartIanNaylor/zram-swap-config

https://github.com/StuartIanNaylor/zramdrive

Which because I have several zram services prob maybe why this hasn’t been noticed?

If I stop and remove the swap service



                stop)

if DEVICES=$(grep zram /proc/swaps | awk '{print $1}'); then

                                                for i in $DEVICES; do

                                                                swapoff $i


DEV_NUM=$(echo "$i" | tr -dc '0-9')

echo "$DEV_NUM" > /sys/class/zram-control/hot_remove

echo "$DEV_NUM"

                                                done

                                fi



A strange thing happens with zramctl as if all services where running the high order zram device of zramdrive is no longer visible after removing lower order devices. Its still there in /sys/blocks and working but no longer displayed in zramctl?

pi@raspberrypi:~/zram-swap-config $ zramctl

NAME       ALGORITHM DISKSIZE  DATA COMPR TOTAL STREAMS MOUNTPOINT

/dev/zram0 lz4           1.5G 36.5M  1.3M  1.7M       4 /opt/zram/zram0

pi@raspberrypi:~/zram-swap-config $ ls /sys/block

loop0  loop3  loop6    ram0   ram11  ram14  ram3  ram6  ram9

loop1  loop4  loop7    ram1   ram12  ram15  ram4  ram7  zram0
loop2  loop5  mmcblk0  ram10  ram13  ram2   ram5  ram8  zram5

As you will see its not been removed just no longer shown in zramctl

Its Raspbian 4.14 with util-linux 2.29.2

Stuart



[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux