The Following 12 Users Say Thank You to maacruz For This Useful Post: | ||
aanckar, don_falcone, Estel, freemangordon, fw190, hawaii, Hurrian, nkirk, OVK, peterleinchen, reinob, stlpaul |
|
2011-09-11
, 10:34
|
Posts: 1,523 |
Thanked: 1,997 times |
Joined on Jul 2011
@ not your mom's FOSS basement
|
#132
|
|
2011-09-11
, 11:14
|
Posts: 3,074 |
Thanked: 12,960 times |
Joined on Mar 2010
@ Sofia,Bulgaria
|
#133
|
Just for the record: i ALWAYS had reboot issues when enabling ramzswap device, regardless of disksize. Just uninstalled speedpatch and batterypatch (like freemangordon suggested multiple times), and tried again (propbably for the 10th time now). At least it created and initialized the device now. So now up to testing with freemangordon's proposed proc and sys values.
I used colin.stephane´s kernel packages btw, and moved swap to /dev/mmcblk1p2 (512MB size).
Remaining issue is that swapoff /dev/mmcblk0p3 takes ages and often returns the message "swapoff: /dev/mmcblk0p3: Cannot allocate memory".
Question: can we use memlimit_kb instead of disdksize_kb and provide /dev/mmcblk1p2 as backing swap, disabling swap on /dev/mmcblk0p3 as usual?
The Following User Says Thank You to freemangordon For This Useful Post: | ||
|
2011-09-11
, 11:21
|
Posts: 3,074 |
Thanked: 12,960 times |
Joined on Mar 2010
@ Sofia,Bulgaria
|
#134
|
It's really nice that you have finally taken on porting compcache, I was amazed nobody did it for the N900, I did it for the N8x0 and the performance improvement was very noticeable.
In the N8x0 world, having 128 MB of RAM we are using disksize=96 MB by default. As you know, disksize is not the ram used by compcache, having a compression ratio of about 1/3 usually, so in the N8x0 we usually have about 50 MB of swapped ram and 20 MB of ram used for compcache.
So, I find very curious that you are using such a low value when you have 256 MB and a much faster cpu. Really, you should be able to use disksize>128MB with no problems, so may be there is some other cause, may be too much locked ram?
Well, having a look at your sources, I'd recommend to try the same changes I did in ramzswap_drv.h , increase max_zpage_size_nobdev to PAGE_SIZE/8*7, and do not setup a backing device (the code is really inefficient).
|
2011-09-11
, 12:10
|
Posts: 1,523 |
Thanked: 1,997 times |
Joined on Jul 2011
@ not your mom's FOSS basement
|
#135
|
Remaining issue is that swapoff /dev/mmcblk0p3 takes ages and often returns the message "swapoff: /dev/mmcblk0p3: Cannot allocate memory".
The Following User Says Thank You to don_falcone For This Useful Post: | ||
|
2011-09-11
, 13:34
|
Posts: 462 |
Thanked: 550 times |
Joined on Sep 2008
@ Moscow
|
#136
|
The Following 5 Users Say Thank You to 412b For This Useful Post: | ||
|
2011-09-11
, 19:44
|
|
Posts: 4,118 |
Thanked: 8,901 times |
Joined on Aug 2010
@ Ruhrgebiet, Germany
|
#137
|
Do not use backing swap, it is EXTREMELY SLOW, second swap is much better in terms of performance. Of course it is much better to be on SD card instead on internal flash.
The Following User Says Thank You to peterleinchen For This Useful Post: | ||
|
2011-09-11
, 20:00
|
Posts: 268 |
Thanked: 1,053 times |
Joined on May 2010
@ The Netherlands
|
#138
|
The Following 7 Users Say Thank You to iDont For This Useful Post: | ||
|
2011-09-12
, 08:18
|
Posts: 1,523 |
Thanked: 1,997 times |
Joined on Jul 2011
@ not your mom's FOSS basement
|
#139
|
Do not use backing swap, it is EXTREMELY SLOW, second swap is much better in terms of performance. Of course it is much better to be on SD card instead on internal flash.
|
2011-09-23
, 20:51
|
Posts: 1,101 |
Thanked: 1,184 times |
Joined on Aug 2008
@ Spain
|
#140
|
EDIT:
And maybe it is better to continue compcache conversation on its dedicated thread.
It was me who insist compcache statistics to be disabled because of performance reasons (there are several spinlocks involved as you may see in source code which COULD result in performance loss). Instead of enabling stats for general public, I think it is better to just rebuild module from compcache thread with stats enabled and test with it.
And if you find which exactly kernel parameter causes swap trashing when RAM/compcache is full I think all of us will say BIG thank you .
For changing compress threshold - maybe it will have slight difference in memory consumption, but I think our major problem is swap trashing, not few megs of RAM more.
In the N8x0 world, having 128 MB of RAM we are using disksize=96 MB by default. As you know, disksize is not the ram used by compcache, having a compression ratio of about 1/3 usually, so in the N8x0 we usually have about 50 MB of swapped ram and 20 MB of ram used for compcache.
So, I find very curious that you are using such a low value when you have 256 MB and a much faster cpu. Really, you should be able to use disksize>128MB with no problems, so may be there is some other cause, may be too much locked ram?
Well, having a look at your sources, I'd recommend to try the same changes I did in ramzswap_drv.h , increase max_zpage_size_nobdev to PAGE_SIZE/8*7, and do not setup a backing device (the code is really inefficient).