maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   [ANNOUNCE] COMPCACHE on kernel-power (now with notifications) (https://talk.maemo.org/showthread.php?t=76112)

gregoranderson 2011-11-28 16:06

Re: [ANNOUNCE] COMPCACHE on kernel-power (now with notifications)
 
Quote:

Originally Posted by vi_ (Post 1130122)
I await your results with baited breath fellow scotch man. Also there is a script just appeared in dev-repos called 'swap-set'. It is for detecting where your swap is, unounting, mounting ramzswap, mounting old swap.

Spotters Badge for vi_ ; that'll save me the hassle of trying to thrash one together myself.

Mair chat here on (mr_jrt's) efforts:

http://talk.maemo.org/showthread.php?t=80431

mr_jrt 2011-11-28 20:08

Re: [ANNOUNCE] COMPCACHE on kernel-power (now with notifications)
 
...and I just thought I'd pop in to let folks know it existed....can't have any secrets around here it seems :)

...not sure what the best way to approach the tunable settings is though. Perhaps a config file, perhaps gconf, perhaps just having people edit the script. I'm somewhat undecided....

Anyways, it lives here.

..oh, an in the interests of full disclosure, I did actually start with gregoranderson's initial script and missed the rest of the conversation from that point on ;)

Alfred 2011-11-28 20:23

Re: [ANNOUNCE] COMPCACHE on kernel-power (now with notifications)
 
have anyone got luck using SwapSet?
http://maemo.org/packages/view/swapset/

ivanrajkovic 2011-11-28 20:32

Re: [ANNOUNCE] COMPCACHE on kernel-power (now with notifications)
 
Quote:

Originally Posted by Alfred (Post 1130255)
have anyone got luck using SwapSet?
http://maemo.org/packages/view/swapset/

I am using it, so far so good.

mr_jrt 2011-11-28 20:48

Re: [ANNOUNCE] COMPCACHE on kernel-power (now with notifications)
 
Quote:

Originally Posted by Alfred (Post 1130255)
have anyone got luck using SwapSet?
http://maemo.org/packages/view/swapset/

...I've not made it particularly clear, but once you install it you will need to reboot for the startup event to trigger. You can mount and unmount the SD swap at any time though. Might add a compache option...but I was wary of messing up the installation databases as people were reporting that insmod'ing the module was causing reboots.

...speaking of which, I guess I could add some reboot/failure tracking to prevent boot loops easily enough....might do that next actually.

maartenmk 2011-11-29 18:11

Re: [ANNOUNCE] COMPCACHE on kernel-power (now with notifications)
 
Quote:

Originally Posted by gregoranderson (Post 1128924)
I had a crash (running KP49) with the following approach:

Code:

insmod /lib/modules/current/ramzswap.ko disksize_kb=65536
swapon /dev/ramzswap0
swapoff /dev/mmcblk1p2; swapon /dev/mmcblk1p2

(I use my sdcard for swap)

So, after a short period of contemplation I went with:

Code:

swapoff /dev/mmcblk1p2
insmod /lib/modules/current/ramzswap.ko disksize_kb=65536
swapon /dev/ramzswap0
swapon /dev/mmcblk1p2

And everything is groovy again. The old N900 is snappier than a crocodile who's found himself at a penguin parade.

I tried compcache using this method, and it seems to work. But it made the device significantly slower as far as I could see.
Do any of you have better experiences?

I am on cssu &kp49, swap on microsd, no speed/battery patches.

stlpaul 2011-11-29 20:42

Re: [ANNOUNCE] COMPCACHE on kernel-power (now with notifications)
 
Quote:

Originally Posted by maacruz (Post 1128915)
It never crashes for me, are you using power of 2 sizes for disksize_kb?

Thanks, that seems to have been it.

mr_jrt 2011-11-30 00:40

Re: [ANNOUNCE] COMPCACHE on kernel-power (now with notifications)
 
Quote:

Originally Posted by maartenmk (Post 1130644)
I tried compcache using this method, and it seems to work. But it made the device significantly slower as far as I could see.
Do any of you have better experiences?

I am on cssu &kp49, swap on microsd, no speed/battery patches.

On my test N900 with a SD card, it was very, very quick with both compcache and SD.

On my live phone without a SD, it seems very sluggish when first turned on with compcache, but settles down after 5-10 minutes.

nkirk 2011-12-01 14:26

Re: [ANNOUNCE] COMPCACHE on kernel-power (now with notifications)
 
Comp-cache, 65mb file size causes me sudden unexpected reboots, its out of my my tolerable range (which is approx 1 unexpected reboot a month :d ), now using SD swap only ,, same result with SwapSet.

gregoranderson 2011-12-01 14:40

Re: [ANNOUNCE] COMPCACHE on kernel-power (now with notifications)
 
Quote:

Originally Posted by mr_jrt (Post 1130246)
...and I just thought I'd pop in to let folks know it existed....can't have any secrets around here it seems :)

Installed and works very nicely indeed. Cheers for putting in the effort.

(KP49 / CSSU Testing / swap on SD for the curious)


All times are GMT. The time now is 20:54.

vBulletin® Version 3.8.8