Compcache on N810
1 Attachment(s)
Hi,
Just wanted to report on some results regarding compcache on N810 diablo. I compiled the modules required and I have given it a small test on my own N810. See the link below for information. http://code.google.com/p/compcache/ See the attached zip: EDIT: now its called ramzswap Attachment 3304 By far I have tested it with the biggest RAM hog that I know, the browser. Some proof attached: root@Nokia-N810-23-14:~ #_cat /proc/swaps Filename Type Size Used Priority /dev/ramzswap0 partition 31692 2008 -2 EDIT: After posting my tablet rebooted, *sigh* |
Re: Compcache on N810
1 Attachment(s)
Quote:
|
Re: Compcache on N810
Quote:
|
Re: Compcache on N810
I'm interested in some more information about it as well. It sounds like a great idea but how do I properly use the .ko files? Can we make it into a package that can be installed through apt-get? What kind of performance are you seeing?
Thanks! |
Re: Compcache on N810
Quote:
Quote:
You gotta ask the admins to include this to Mer repository, I can of course make a package for this if needed. But without the package, extract the zip and run from the same directory as you extracted the zip: Code:
insmod xvmalloc.ko Code:
insmod ramzswap.ko disksize_kb=10240 |
Re: Compcache on N810
I insmodded both modules without error messages - but when I ask cat /proc/swaps only the flash swap on mmc2 is shown. EDIT Aha! needs Code:
swapoff /media/mmc2/.swap Also, ooo allocates all the default 31700 megabytes of the ramzswap device, and runs over the .swap file on flash which has lower priority. Maybe a bigger ramzswap space could be better - tweak and experiment. @locusf: also, I bet you have ported the 0.5 version, because it does not accept the parameters of the newest version, i.e. 0.6. Would you mind trying that one? Thanks :) |
Re: Compcache on N810
This is a very nice idea indeed but I see two missing critical features:
a) When the "virtual swap" is full, it sends _uncompressed_ pages to the backing swap device. It would be nice to compress them before, may help with swap-on-sd performance. b) The Diablo kernel version (2.6.21) does not support bio_discard (AFAIK) and as such it does not free memory when you close apps -- it will reuse it as soon as you need to swap out again, but it won't reuse the memory for file cache or something else. After playing with it for a while: Code:
BackingSwap: /dev/mmcblk1p3 BTW, I could open nxagent, oowriter, oocalc, abiword, cacaovm running swt-example, the sun embedded jvm, xfce, Thunar, plus the whole of hildon at the same time before it started being unusable =). |
Re: Compcache on N810
Any hope to get this working in OS2007HE?
770 users desperately need those kind of improvements. |
Re: Compcache on N810
I've been daily issuing this:
Code:
swapoff /dev/ramzswap0 /media/mmc2/.swap This wipes the flash-based swap and re-enables it after. I'm convinced (maybe it's an illusion) that it keeps my tablet quicker by refreshing all swap needed to the ram-based compressed ramzswap0 device. |
Re: Compcache on N810
Quote:
|
All times are GMT. The time now is 23:57. |
vBulletin® Version 3.8.8