For those of you who have compcache on their ROMs enabled: Maybe you noticed that in previous versions of compcache there used to be a special file in /proc from which you could read stats about compcache and its usage (by simply doing "cat /proc/ramzswap").
In newer version this has been removed in favour to a userspace tool for the commandline named "rzscontrol". Some ROMs may have already included it. I missed it on my ROM so I grabbed the current sources from http://code.google.com/p/compcache/ and compiled it against Android 2.1 tree.
If you want to install it:
Attached you find 2 zip-files for 2 alternate ways of installing it:
METHOD 1: Install manually with ADB:
The file "compcache-rzscontrol_just-binary.zip" just contains the compiled binary. Unzip the file and perform the followinf steps to install it manually:
adb remount adb push rzscontrol /system/xbin/ adb shell chmod 0755 /system/xbin/rzscontrol
METHOD 2: Install as update.zip via recovery:
Download the other zip-file "update-install-compcache-rzscontrol-signed.zip". Place it in root of your sd-card, reboot into recovery and apply it as update.zip.
The result is the same for both ways.
After you installed it, you can test it (of course you need to have compcache enabled):
adb shell rzscontrol /dev/block/ramzswap0 --stats
DiskSize: 65536 kB NumReads: 214 NumWrites: 919 FailedReads: 0 FailedWrites: 0 InvalidIO: 0 NotifyFree: 0 ZeroPages: 37 GoodCompress: 62 % NoCompress: 5 % PagesStored: 882 PagesUsed: 385 OrigDataSize: 3528 kB ComprDataSize: 1329 kB MemUsedTotal: 1540 kB