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)

Estel 2011-09-25 10:27

Re: [ANNOUNCE] COMPCACHE on kernel-power (now with notifications)
 
Using ramzswap with sd swap at same priority is counter-productive. Try with sd swap being *lower* priority.

maacruz 2011-10-03 18:53

Re: [ANNOUNCE] COMPCACHE on kernel-power (now with notifications)
 
Monitoring stats and memory usage while doing nothing
Code:

Nokia-N900:~# rzscontrol /dev/ramzswap0 --stats
DiskSize:          131072 kB
NumReads:          53583
NumWrites:          33751
FailedReads:              0
FailedWrites:              0
InvalidIO:              0
NotifyFree:            385
ZeroPages:            1211
GoodCompress:              69 %
NoCompress:              5 %
PagesStored:          30459
PagesUsed:          12429
OrigDataSize:          121836 kB
ComprDataSize:          48666 kB
MemUsedTotal:          49716 kB
Nokia-N900:~# free
            total        used        free      shared      buffers
Mem:        237304      172088        65216            0          96
-/+ buffers:            171992        65312
Swap:      917488      127128      790360
Nokia-N900:~# free
            total        used        free      shared      buffers
Mem:        237304      163032        74272            0          84
-/+ buffers:            162948        74356
Swap:      917488      127932      789556
Nokia-N900:~# rzscontrol /dev/ramzswap0 --stats
DiskSize:          131072 kB
NumReads:          53912
NumWrites:          34111
FailedReads:              0
FailedWrites:              0
InvalidIO:              0
NotifyFree:            385
ZeroPages:            1213
GoodCompress:              69 %
NoCompress:              5 %
PagesStored:          30748
PagesUsed:          12589
OrigDataSize:          122992 kB
ComprDataSize:          49238 kB
MemUsedTotal:          50356 kB
Nokia-N900:~# free
            total        used        free      shared      buffers
Mem:        237304      160764        76540            0          72
-/+ buffers:            160692        76612
Swap:      917488      129928      787560
Nokia-N900:~# free
            total        used        free      shared      buffers
Mem:        237304      158904        78400            0          80
-/+ buffers:            158824        78480
Swap:      917488      129968      787520
Nokia-N900:~# rzscontrol /dev/ramzswap0 --stats
DiskSize:          131072 kB
NumReads:          54719
NumWrites:          34767
FailedReads:              0
FailedWrites:              0
InvalidIO:              0
NotifyFree:            385
ZeroPages:            1212
GoodCompress:              69 %
NoCompress:              5 %
PagesStored:          31262
PagesUsed:          12727
OrigDataSize:          125048 kB
ComprDataSize:          49805 kB
MemUsedTotal:          50908 kB
Nokia-N900:~# free
            total        used        free      shared      buffers
Mem:        237304      183536        53768            0          92
-/+ buffers:            183444        53860
Swap:      917488      130024      787464
Nokia-N900:~# rzscontrol /dev/ramzswap0 --stats
DiskSize:          131072 kB
NumReads:          60822
NumWrites:          34888
FailedReads:              0
FailedWrites:              0
InvalidIO:              0
NotifyFree:            385
ZeroPages:            1212
GoodCompress:              69 %
NoCompress:              5 %
PagesStored:          31311
PagesUsed:          12733
OrigDataSize:          125244 kB
ComprDataSize:          49852 kB
MemUsedTotal:          50932 kB
Nokia-N900:~# free
            total        used        free      shared      buffers
Mem:        237304      181796        55508            0          100
-/+ buffers:            181696        55608
Swap:      917488      130116      787372
Nokia-N900:~# free
            total        used        free      shared      buffers
Mem:        237304      180124        57180            0          104
-/+ buffers:            180020        57284
Swap:      917488      130156      787332
Nokia-N900:~# rzscontrol /dev/ramzswap0 --stats
DiskSize:          131072 kB
NumReads:          60977
NumWrites:          34946
FailedReads:              0
FailedWrites:              0
InvalidIO:              0
NotifyFree:            386
ZeroPages:            1212
GoodCompress:              69 %
NoCompress:              5 %
PagesStored:          31323
PagesUsed:          12738
OrigDataSize:          125292 kB
ComprDataSize:          49870 kB
MemUsedTotal:          50952 kB
Nokia-N900:~# free
            total        used        free      shared      buffers
Mem:        237304      177064        60240            0          112
-/+ buffers:            176952        60352
Swap:      917488      130264      787224
Nokia-N900:~# rzscontrol /dev/ramzswap0 --stats
DiskSize:          131072 kB
NumReads:          61567
NumWrites:          35036
FailedReads:              0
FailedWrites:              0
InvalidIO:              0
NotifyFree:            387
ZeroPages:            1210
GoodCompress:              69 %
NoCompress:              5 %
PagesStored:          31356
PagesUsed:          12745
OrigDataSize:          125424 kB
ComprDataSize:          49924 kB
MemUsedTotal:          50980 kB
Nokia-N900:~# free
            total        used        free      shared      buffers
Mem:        237304      217688        19616            0          144
-/+ buffers:            217544        19760
Swap:      917488      133288      784200
Nokia-N900:~# rzscontrol /dev/ramzswap0 --stats
DiskSize:          131072 kB
NumReads:          124445
NumWrites:          39584
FailedReads:              0
FailedWrites:              0
InvalidIO:              0
NotifyFree:            1139
ZeroPages:            1213
GoodCompress:              68 %
NoCompress:              5 %
PagesStored:          31246
PagesUsed:          13033
OrigDataSize:          124984 kB
ComprDataSize:          50812 kB
MemUsedTotal:          52132 kB
Nokia-N900:~# free
            total        used        free      shared      buffers
Mem:        237304      200416        36888            0          128
-/+ buffers:            200288        37016
Swap:      917488      133324      784164
Nokia-N900:~# rzscontrol /dev/ramzswap0 --stats
DiskSize:          131072 kB
NumReads:          125628
NumWrites:          39777
FailedReads:              0
FailedWrites:              0
InvalidIO:              0
NotifyFree:            1140
ZeroPages:            1213
GoodCompress:              68 %
NoCompress:              5 %
PagesStored:          31265
PagesUsed:          13037
OrigDataSize:          125060 kB
ComprDataSize:          50836 kB
MemUsedTotal:          52148 kB
Nokia-N900:~# free
            total        used        free      shared      buffers
Mem:        237304      209556        27748            0          140
-/+ buffers:            209416        27888
Swap:      917488      133164      784324
Nokia-N900:~# rzscontrol /dev/ramzswap0 --stats
DiskSize:          131072 kB
NumReads:          135025
NumWrites:          40000
FailedReads:              0
FailedWrites:              0
InvalidIO:              0
NotifyFree:            1230
ZeroPages:            1212
GoodCompress:              68 %
NoCompress:              5 %
PagesStored:          31207
PagesUsed:          13035
OrigDataSize:          124828 kB
ComprDataSize:          50739 kB
MemUsedTotal:          52140 kB


stlpaul 2011-11-21 21:47

Re: [ANNOUNCE] COMPCACHE on kernel-power (now with notifications)
 
Did anyone have luck with ramzswap included in kp49? I get instant reboot every time. :(

vi_ 2011-11-25 13:42

Re: [ANNOUNCE] COMPCACHE on kernel-power (now with notifications)
 
Same here 'insmod ramzswap', instant crash.

don_falcone 2011-11-25 14:11

Re: [ANNOUNCE] COMPCACHE on kernel-power (now with notifications)
 
I shall not even try now; in only one build it did not crash (20111006).

maacruz 2011-11-25 15:50

Re: [ANNOUNCE] COMPCACHE on kernel-power (now with notifications)
 
It never crashes for me, are you using power of 2 sizes for disksize_kb?
EDIT: I should add that I use my own kernel build, but it is currently derived from kp49 and parts of bfs. I can make it available if anyone so wants.

gregoranderson 2011-11-25 16:18

Re: [ANNOUNCE] COMPCACHE on kernel-power (now with notifications)
 
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.

don_falcone 2011-11-26 12:34

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?

...98304 is.

ivanrajkovic 2011-11-26 13:02

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

Originally Posted by don_falcone (Post 1129198)
...98304 is.

is not.
2^16 = 65 536
2^17 = 131 072

you are somewhere in between:
2^16.5849625 = 98304

maacruz 2011-11-26 18:17

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

Originally Posted by ivanrajkovic (Post 1129204)
is not.
2^16 = 65 536
2^17 = 131 072

you are somewhere in between:
2^16.5849625 = 98304

Oh, well, that's true, I mean.... at least pagesize multiples.
98304 fits in that category (and works fine for me too)


All times are GMT. The time now is 17:18.

vBulletin® Version 3.8.8