Maybe this is helpful for someone, somewhere, sometimes ...
TC uses 25% of the RAM for ramzswap. Sometimes this is too little or too much.
The initialization of ramzswap is done in the script /etc/init.d/tc-config. Unfortunately, the boot codes for the kernel module ramzswap are (currently) not considered by the script and so there is no way to take control with boot codes.
Another possibility would be to change the script tc-config but then you have to remaster TC. Besides, this is not good if you want to upgrade later times.
A third possibility exists with the script /opt/bootlocal.sh - this I will present here:
##
## ramzswap
##
## remove all existing swap
swapoff -a
# remove the ramzswap kernel module
rmmod ramzswap.ko
## load the ramzswap kernel module again
modprobe ramzswap.ko num_devices=1
## initialize the device
rzscontrol /dev/ramzswap0 --disksize_kb 51200 --init
## swap on
swapon /dev/ramzswap0
swapon -a
This snippet replaces the existing ramzswap with 50 MB fresh one. Let's take a look at the result:
tc@box:~$ cat /proc/swaps
Filename Type Size Used Priority
/dev/ramzswap0 partition 51192 0 -1
/dev/sda2 partition 2096472 0 -2
Note: If you want to try this on the console, do not forget the sudo.
Note: More Information about the options can be found here:
http://compcache.googlecode.com/hg/sub-projects/rzscontrol/man/rzscontrol.html?r=a1446e34a056e23e3ff9dc0a9f0c1e0c9605d43cWarning: If you're short on RAM so that your system needs swap at boot time - don't use this script - your system might crash.