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)

TMavica 2011-09-01 06:43

Re: [ANNOUNCE] COMPCACHE on kernel-power (now with notifications)
 
sorry for disturbance..
how to swap on sd card..cant find the wiki

freemangordon 2011-09-01 06:45

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

Originally Posted by TMavica (Post 1079860)
I havent swap on sd card, let me trytry

And you MUST use setting from here.

Anyway, this is going OT

evan 2011-09-01 06:47

Re: [ANNOUNCE] COMPCACHE on kernel-power (now with notifications)
 
that was my finding also. not a good idea to grab more than half available physical ram for swapz. you don't want to pass each and every call for ram allocation through the swap mechanism. I have such a low disksize for a frew days now and it works, no lags, no crashes, no wonders.

freemangordon 2011-09-01 07:22

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

Originally Posted by evan (Post 1079866)
that was my finding also. not a good idea to grab more than half available physical ram for swapz. you don't want to pass each and every call for ram allocation through the swap mechanism. I have such a low disksize for a frew days now and it works, no lags, no crashes, no wonders.

Did you try with 96MB?

And would you share your other settings:

where is your swap located at
/proc/sys/vm changes
io scheduler changes (if any)

what else?

evan 2011-09-01 07:39

Re: [ANNOUNCE] COMPCACHE on kernel-power (now with notifications)
 
I tried with 96mb only for a while and while I did not see heavy lags, I noticed nokia maps to take too long to start. Swappiness to 30 and laptop mode to 0 as is default. Nothing else changed. No magic script nor magic carpets. Swap is the default p3 cause I can’t get bothered to repartition my sd card although since you say it’s the best bet for improved performance I will try it when I find the time.

Estel 2011-09-01 13:20

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

Quote:

Originally Posted by freemangordon
Notifications are working, but seems there are paths in the kernel swap subsystem allowing direct write over a page without first marking it free.
Seems like memory consumption should not be affected by that.

...seems to be impossible to fix, currently?

freemangordon 2011-09-01 13:50

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

Originally Posted by Estel (Post 1080006)
And:



...seems to be impossible to fix, currently?

Should be posible, but I don't think we will gain anything but additional overhead. You can check upstream zram, they are not using notifications at all, does not seem to have much negative effect. The problem is that SW running on n900 needs lots of RAM and not having it (because it is used by compcache) leads to constant swapping (swap trash).

Anyway there is definitely improvement from using compcahe, just not so much that was probably expected. Use disksize_kb in range 64MB to 96MB and you will see it.

Estel 2011-09-01 16:25

Re: [ANNOUNCE] COMPCACHE on kernel-power (now with notifications)
 
Thanks for all your effort - I've not had any "exaggerated" expectations, and it's already great thing that you've bring it to us. I think it's closest of what we can get, to actual higher RAM amount :)

So, thanks for doing something, that no one else was able/interested to bring us.

TMavica 2011-09-02 05:54

Re: [ANNOUNCE] COMPCACHE on kernel-power (now with notifications)
 
Friends, I tried swap on SD:

ramzswap (120504), mmcblk0p3, mmcblk1p2 (796472) with priority 1, 0, 0 and with your setting recommanded, but still sometimes the UI got some laggy.

Moreover, I made a script for bootup, only can swapon ramzswap and mmcblk0p3, mmcblk1p2 cant swapon at bootup
from added a more line here, http://talk.maemo.org/showpost.php?p...8&postcount=95

freemangordon 2011-09-02 06:04

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

Originally Posted by TMavica (Post 1080388)
Friends, I tried swap on SD:

ramzswap (120504), mmcblk0p3, mmcblk1p2 (796472) with priority 1, 0, 0 and with your setting recommanded, but still sometimes the UI got some laggy.

Moreover, I made a script for bootup, only can swapon ramzswap and mmcblk0p3, mmcblk1p2 cant swapon at bootup
from added a more line here, http://talk.maemo.org/showpost.php?p...8&postcount=95

Use only 64-96 MBs for ramzswap. And do not use mmcblk0p3, only SD card swap partition. And just to make sure put /sbin/ in front of swapon/swapoff commands

EDIT: and change first line of your script to "start on started rcS-late"


All times are GMT. The time now is 11:47.

vBulletin® Version 3.8.8