View Single Post
Posts: 1,101 | Thanked: 1,185 times | Joined on Aug 2008 @ Spain
#1700
Originally Posted by don_falcone View Post
Code:
modprobe ramzswap num_devices=1 disksize_kb=98304
swapon /dev/ramzswap0
swapoff /dev/mmcblk0p3
swapoff /dev/mmcblk1p2


EDIT 3: Confirmed. Compcache works only if:
- i freshly dpkg'd -i kernel, modules, and flasher (in that sequence, kernel-settings were retained from kp47)
AND
- performed a reboot.
And only then it works after this first reboot. From each consecutive reboot onwards. i observe the instant reboots after ramzswap0 initializing with disksize_kb. If i solely insert the module, no reboot occurs, but of course i cannot initialize it separately.
I'm using it right now with disksize_kb=131072 with no issues at all, and no slowness for now.
Unfortunately, this being compcache 0.6.2 means that ramzswap statistics are accessible only from ioctl, so having rzscontrol is a must for debugging and checking its behavior.

EDIT: I have built rzscontrol in my N810 scratchbox, works fine, but the ramzswap module has been built without stats support, so it is useless.
@pali: could you build the module with stats enabled (define CONFIG_RAMZSWAP_STATS), please?

EDIT2: And could you apply the changes I suggested in the compcache thread? they'll increase the memory efficiency.
I have increased the ramzswap size to 192 MB and no stability problems so far, although I have hit a funny memory management problem when applying memory pressure: ramzswap usage has grown to 168 MB, swap partition remains at 0, and the cpu is pegged because the free memory goes up and down like a roller coaster against the used memory. I guess this is some kernel parameter configuration issue that can be easily fixed with a script "a la swapolube".
Attached Files
File Type: gz rzscontrol.gz (6.1 KB, 105 views)

Last edited by maacruz; 2011-09-22 at 23:56.
 

The Following 6 Users Say Thank You to maacruz For This Useful Post: