The Following 56 Users Say Thank You to freemangordon For This Useful Post: | ||
412b, aanckar, ade, Alfred, AlMehdi, arora.rohan, b-man, Bad_Habit, Bahador, bipinbn, butler, celebrant, cloud596, debernardis, don_falcone, Estel, evan, F2thaK, fasza2, fw190, gregoranderson, Gusse, Hurrian, hyno111, ivanrajkovic, ivyking, JorgeFX, jormartr, jurop88, karam, kevloral, laasonen, lidow, maartenmk, MartinK, Mentalist Traceur, Mitrigol, moepda, MohammadAG, mrsellout, Natan_xy, Netweaver, nkirk, Oboroten, OVK, pantera1989, peterleinchen, reinob, shanttu, Sourav.dubey, stlpaul, Stonik, strange1712, Temporal, TMavica, Xagoln |
![]() |
2011-08-27
, 14:50
|
Posts: 42 |
Thanked: 27 times |
Joined on Jun 2010
|
#2
|
![]() |
2011-08-27
, 14:53
|
Posts: 3,074 |
Thanked: 12,964 times |
Joined on Mar 2010
@ Sofia,Bulgaria
|
#3
|
![]() |
2011-08-27
, 15:13
|
|
Posts: 277 |
Thanked: 93 times |
Joined on Jan 2010
@ Belgrade
|
#4
|
![]() |
2011-08-27
, 15:22
|
Posts: 3,074 |
Thanked: 12,964 times |
Joined on Mar 2010
@ Sofia,Bulgaria
|
#5
|
The Following 14 Users Say Thank You to freemangordon For This Useful Post: | ||
![]() |
2011-08-27
, 15:23
|
Posts: 42 |
Thanked: 27 times |
Joined on Jun 2010
|
#6
|
ok... i'm kinda idiot for this things, but i googled a little bit, so i saw what compcashe is... but, for what is benefit for us? and is it necessary for me to have it?
The Following 9 Users Say Thank You to jormartr For This Useful Post: | ||
![]() |
2011-08-27
, 15:27
|
Posts: 3,074 |
Thanked: 12,964 times |
Joined on Mar 2010
@ Sofia,Bulgaria
|
#7
|
The Following 8 Users Say Thank You to freemangordon For This Useful Post: | ||
![]() |
2011-08-27
, 16:41
|
Posts: 42 |
Thanked: 27 times |
Joined on Jun 2010
|
#8
|
![]() |
2011-08-27
, 17:32
|
|
Posts: 277 |
Thanked: 93 times |
Joined on Jan 2010
@ Belgrade
|
#9
|
![]() |
2011-08-27
, 17:36
|
Posts: 195 |
Thanked: 96 times |
Joined on May 2011
|
#10
|
Here is how to make compcache working on n900. You will need scratchbox or madde environment ready for kernel compilation
1. download latest (48) kernel power source in directory of your choice
apt-get source kernel-power
2. unzip and copy attached patches (update_mmu_cache_arm.zip and patch_swap_notify_core_support_2_2.6.28.zip) into kernel-power-2.6.28\debian\patches
3.add update_mmu_cache_arm.diff at the end of series file
cd kernel-power-2.6.28/debian/patches/
echo update_mmu_cache_arm.diff >> series
4.add patch_swap_notify_core_support_2_2.6.28.diff at the end of series file
cd kernel-power-2.6.28/debian/patches/
echo patch_swap_notify_core_support_2_2.6.28.diff >> series
4. goto kernel source directory and build kernel package
dpkg-buildpackage -rfakeroot -b
5. unzip compcache source(compcache-0.6.2.zip) into the same directory you've downloaded kernel sources
6. cd into compcache-0.6.2 and make it
at that point you should have patched kernel .debs and ramzswap.ko for that kernel. Install kernel on the device and copy ramzswap.ko in /lib/modules/2.6.28.10-power48
reboot and use instructions here
in short it is something like
insmod /lib/modules/current/ramzswap.ko disksize_kb=65536
swapon /dev/ramzswap0
swapoff /dev/mmcblk0p3; swapon /dev/mmcblk0p3
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.
I've disabled nokia swap page remapping (for performance reasons), will enable it again if swap fragmentation develops over time to see if it could help.
EDIT: changed recommended disksize_kb to 120512
Last edited by freemangordon; 2012-05-28 at 05:15.