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)

412b 2011-08-31 06:24

Re: [ANNOUNCE] COMPCACHE on kernel-power (now with notifications)
 
swapiness = 10
runs smooth enough except switching from task manager to app due to io load 50-75%, managed to open about 5 XTerms, 6 Browser tabs, Contacts, Messaging, FBReader, MediaBox, Modest, RSS, File Browser, Calendar with noticable lag in switching (due to high io load).
I've also got a bit tuned syspart (/usr/share/policy/etc/rx51/syspart.conf)
looking forward getting memory free fully working as it's a big stopper at the moment IMO.

[DarkGUNMAN] 2011-08-31 06:31

Re: [ANNOUNCE] COMPCACHE on kernel-power (now with notifications)
 
Ok, swapolube optimisations removed set to stock values.
Speedpatch removed.

Still lagging a bit once cache is full.
Since I'm not exactly knowledgable on this are there any more values I need to correct?

Code:

$ cat /proc/swaps
Filename                                Type                Size        Used        Priority
/dev/ramzswap0                          partition        120504        120492        -1
/dev/mmcblk0p3                          partition        786424        63204        -2
~ $ cat /proc/sys/vm/*
0
10
500
40
500
0
0
59326
30000        30001        30002        30003        0        0        0        0
45
32768
201135
-66
98304
-121
131072
1024
32
0
65536
2039
4096
2
0
0
0
50
2
0
0
20
100


freemangordon 2011-08-31 06:50

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

Originally Posted by 412b (Post 1079351)
swapiness = 10
runs smooth enough except switching from task manager to app due to io load 50-75%, managed to open about 5 XTerms, 6 Browser tabs, Contacts, Messaging, FBReader, MediaBox, Modest, RSS, File Browser, Calendar with noticable lag in switching (due to high io load).
I've also got a bit tuned syspart (/usr/share/policy/etc/rx51/syspart.conf)
looking forward getting memory free fully working as it's a big stopper at the moment IMO.

Will you try page-cluster values 0,1,2 to see if there is any difference?

Re memory free - it is working OK, trust me on that. My understanding is that what happens is the best possible scenario, i.e. instead of notification for a page that was just marked as unused it is immediately overwritten. While we have notifications for the pages that are not immediately overwritten.
For sure there are optimizations to be done, if you look at the code there is a mutex used on write operations.

And for the amount of applications you are testing with - try that on your laptop and tell me how it went :p

[DarkGUNMAN] 2011-08-31 07:14

Re: [ANNOUNCE] COMPCACHE on kernel-power (now with notifications)
 
Responsiveness MUCH improved with page-cluster set to 0 and swappiness set to 10

TMavica 2011-08-31 08:24

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

Originally Posted by freemangordon (Post 1079345)
@TMavica - and do you thing there is an improvement on responsiveness, or things are just the same?

Yes, I feel the responsiveness is improved, but not a lot

gregoranderson 2011-08-31 08:37

Re: [ANNOUNCE] COMPCACHE on kernel-power (now with notifications)
 
Intrigued as to how phone-ui is with this added. I'm in the middle of a prepping a reflash to end all reflashes of my phone. Off topic, but so far, the best "feel" gains have been eMMC fully ext3 and swap only on SD card (things like Fapman zip along and I can fuddle with the phone doing other stuff while it's doing it's thing) but the phone-ui still remains a stuttering mess.

Either way, will give this a shot later after work, unless someone has beaten me too it.

Cheers @freemangordon et al, for your continued efforts towards this community and unique piece of hardware :)

freemangordon 2011-08-31 08:54

Re: [ANNOUNCE] COMPCACHE on kernel-power (now with notifications)
 
@gregoranderson - I would recommend to wait before trying it a little bit, today I will try to make optimizations to the way swap read/write/free requests are handled, at this point compcache does not bring much improvement, while could lead to laggy system from time to time. The "testing" so far was to prove that it is working at all, without oops and hangs.

vi_ 2011-08-31 20:42

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

Originally Posted by gregoranderson (Post 1079399)
Intrigued as to how phone-ui is with this added. I'm in the middle of a prepping a reflash to end all reflashes of my phone. Off topic, but so far, the best "feel" gains have been eMMC fully ext3 and swap only on SD card (things like Fapman zip along and I can fuddle with the phone doing other stuff while it's doing it's thing) but the phone-ui still remains a stuttering mess.

Either way, will give this a shot later after work, unless someone has beaten me too it.

Cheers @freemangordon et al, for your continued efforts towards this community and unique piece of hardware :)

Hey, start a new thread on 'the flash to end all re-flashes', this could lead to some interesting discussion!

freemangordon 2011-09-01 06:20

Re: [ANNOUNCE] COMPCACHE on kernel-power (now with notifications)
 
OK guys, my conclusions so far:

1 - compcache works :D
2 - Anything above (lets's say) 64-96 MBs for disksize_kb results in a massive swap trashing at some point in time. Yesterday it was the first time for maybe an year I missed a call because the UI was stuck (because of the swap trashing)
3 - using the above size should not harm , only can improve things, but no wonders. I setup my primary phone that way, so will see how it will progress with time.
4- The only viable option so far to get rid of the UI lag is to move swap on SD card. Even if it is class 2 you forget about lagging.

I don't think I can do much more on that, sorry.

TMavica 2011-09-01 06:39

Re: [ANNOUNCE] COMPCACHE on kernel-power (now with notifications)
 
I havent swap on sd card, let me trytry


All times are GMT. The time now is 15:14.

vBulletin® Version 3.8.8