Tiny Core Linux
Tiny Core Base => TCB Bugs => Topic started by: Rich on April 15, 2020, 11:52:51 AM
-
I was looking at the section of tc-config that sets up zswap:
if [ -n "$NOZSWAP" ]; then
echo "${BLUE}Skipping compressed swap in ram as requested from the boot command line.${NORMAL}"
else
modprobe -q zram
modprobe -q zcache
while [ ! -e /dev/zram0 ]; do usleep 50000; done
grep MemFree /proc/meminfo | awk '{print $2/4 "K"}' > /sys/block/zram0/disksize
mkswap /dev/zram0 >/dev/null 2>&1
swapon /dev/zram0
echo "/dev/zram0 swap swap defaults,noauto 0 0" >> /etc/fstab # Lets swapoff -a work
fi
Out of curiosity I tried to run modinfo on zram and zcache to see if they took any parameters:
tc@E310:~$ modinfo zram
modinfo: module '/lib/modules/4.19.10-tinycore/zram' not found
tc@E310:~$ modinfo zcache
modinfo: module '/lib/modules/4.19.10-tinycore/zcache' not found
tc@E310:~$
The zram module has been built into the kernel since TC5, so it can't be modprobed, right?
According to this:
https://unix.stackexchange.com/questions/373631/what-is-an-alternative-for-zcache/374579#374579
zcache was discontinued and removed from kernel 3.11.
-
Yes, unnecessary modprobes. Removed, thanks.