Reply
Thread Tools
Estel's Avatar
Posts: 5,028 | Thanked: 8,613 times | Joined on Mar 2011
#151
Using ramzswap with sd swap at same priority is counter-productive. Try with sd swap being *lower* priority.
__________________
N900's aluminum backcover / body replacement
-
N900's HDMI-Out
-
Camera cover MOD
-
Measure battery's real capacity on-device
-
TrueCrypt 7.1 | ereswap | bnf
-
Hardware's mods research is costly. To support my work, please consider donating. Thank You!
 

The Following User Says Thank You to Estel For This Useful Post:
Posts: 1,101 | Thanked: 1,184 times | Joined on Aug 2008 @ Spain
#152
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
 

The Following 4 Users Say Thank You to maacruz For This Useful Post:
Posts: 1,141 | Thanked: 781 times | Joined on Dec 2009 @ Magical Unicorn Land
#153
Did anyone have luck with ramzswap included in kp49? I get instant reboot every time.
 
Posts: 1,680 | Thanked: 3,685 times | Joined on Jan 2011
#154
Same here 'insmod ramzswap', instant crash.
__________________
N900: One of God's own prototypes. A high-powered mutant of some kind never even considered for mass production. Too weird to live, and too rare to die.
 
Posts: 1,523 | Thanked: 1,997 times | Joined on Jul 2011 @ not your mom's FOSS basement
#155
I shall not even try now; in only one build it did not crash (20111006).
 
Posts: 1,101 | Thanked: 1,184 times | Joined on Aug 2008 @ Spain
#156
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.

Last edited by maacruz; 2011-11-25 at 15:58.
 
Posts: 244 | Thanked: 354 times | Joined on Jul 2010 @ Scotland
#157
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.
 

The Following 6 Users Say Thank You to gregoranderson For This Useful Post:
Posts: 1,523 | Thanked: 1,997 times | Joined on Jul 2011 @ not your mom's FOSS basement
#158
Originally Posted by maacruz View Post
It never crashes for me, are you using power of 2 sizes for disksize_kb?
...98304 is.
 
Posts: 43 | Thanked: 18 times | Joined on Jul 2010
#159
Originally Posted by don_falcone View Post
...98304 is.
is not.
2^16 = 65 536
2^17 = 131 072

you are somewhere in between:
2^16.5849625 = 98304
 

The Following 2 Users Say Thank You to ivanrajkovic For This Useful Post:
Posts: 1,101 | Thanked: 1,184 times | Joined on Aug 2008 @ Spain
#160
Originally Posted by ivanrajkovic View Post
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)
 

The Following 3 Users Say Thank You to maacruz For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 04:32.