Commit 85c8c598 authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

zramstat is redundant - we have zramctl

parent 5d3f3f96
all:
install -m 0755 zramstart /usr/sbin
install -m 0755 zramstop /usr/sbin
install -m 0755 zramstat /usr/sbin
install -m 0644 mkzram.service /lib/systemd/system
install -m 0644 zram /etc/sysconfig
#!/bin/sh
ls /sys/block/zram* > /dev/null 2>&1 || exit 0
for i in /sys/block/zram*; do
compr=$(< $i/compr_data_size)
orig=$(< $i/orig_data_size)
ratio=0
if [ $compr -gt 0 ]; then
ratio=$(echo "scale=2; $orig*100/$compr" | bc -q)
fi
echo -e "/dev/${i/*\/}:\t$ratio% ($orig -> $compr)"
done
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment