WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: tc-config: modprobing of builtin and discontinued modules.  (Read 305 times)

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 7935
tc-config: modprobing of builtin and discontinued modules.
« on: April 15, 2020, 08:52:51 AM »
I was looking at the section of  tc-config  that sets up  zswap:
Code: [Select]
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:
Code: [Select]
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.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10240
Re: tc-config: modprobing of builtin and discontinued modules.
« Reply #1 on: April 15, 2020, 09:38:50 AM »
Yes, unnecessary modprobes. Removed, thanks.
The only barriers that can stop you are the ones you create yourself.