The Following 8 Users Say Thank You to wook_sf For This Useful Post: | ||
|
2012-09-10
, 10:27
|
Moderator |
Posts: 6,215 |
Thanked: 6,400 times |
Joined on Nov 2011
|
#2
|
The Following 4 Users Say Thank You to thedead1440 For This Useful Post: | ||
|
2012-09-10
, 10:30
|
|
Posts: 640 |
Thanked: 435 times |
Joined on Oct 2011
@ rajvoSa BA
|
#3
|
The Following User Says Thank You to wook_sf For This Useful Post: | ||
|
2012-09-10
, 19:37
|
Posts: 1,067 |
Thanked: 2,383 times |
Joined on Jan 2012
@ Finland
|
#4
|
The Following 3 Users Say Thank You to rainisto For This Useful Post: | ||
|
2012-09-10
, 19:57
|
|
Posts: 640 |
Thanked: 435 times |
Joined on Oct 2011
@ rajvoSa BA
|
#5
|
Running swap on flash of course kills the flash memory at some point. Just a word of caution.
But having said that, I have always wondered why nobody has enabled the near 500MB extra mtd block device that is unused on the Harmattan devices. ;-)
I give this as a hint: /etc/init/enable-swap.conf (with couple changes (remember to resign hashlist or you malf your device) you can gain 256MB more free ram (when disabling ramz) and gain almost 500MB swap). And it doesn't mess your mass storage size.
|
2012-09-14
, 16:40
|
Moderator |
Posts: 6,215 |
Thanked: 6,400 times |
Joined on Nov 2011
|
#6
|
RM696-21-3_PR_005:~# free total used free shared buffers Mem: 1008108 908720 99388 0 44816 -/+ buffers: 863904 144204 Swap: 2359280 12264 2347016
The Following User Says Thank You to thedead1440 For This Useful Post: | ||
|
2012-09-14
, 16:45
|
|
Posts: 640 |
Thanked: 435 times |
Joined on Oct 2011
@ rajvoSa BA
|
#7
|
My output of free:
Code:RM696-21-3_PR_005:~# free total used free shared buffers Mem: 1008108 908720 99388 0 44816 -/+ buffers: 863904 144204 Swap: 2359280 12264 2347016
|
2012-09-14
, 16:45
|
Moderator |
Posts: 6,215 |
Thanked: 6,400 times |
Joined on Nov 2011
|
#8
|
The Following 2 Users Say Thank You to thedead1440 For This Useful Post: | ||
|
2012-09-14
, 16:46
|
|
Posts: 640 |
Thanked: 435 times |
Joined on Oct 2011
@ rajvoSa BA
|
#9
|
The Following User Says Thank You to wook_sf For This Useful Post: | ||
|
2012-09-15
, 13:06
|
Moderator |
Posts: 6,215 |
Thanked: 6,400 times |
Joined on Nov 2011
|
#10
|
Running swap on flash of course kills the flash memory at some point. Just a word of caution.
But having said that, I have always wondered why nobody has enabled the near 500MB extra mtd block device that is unused on the Harmattan devices. ;-)
I give this as a hint: /etc/init/enable-swap.conf (with couple changes (remember to resign hashlist or you malf your device) you can gain 256MB more free ram (when disabling ramz) and gain almost 500MB swap). And it doesn't mess your mass storage size.
especially, it's not big deal if mass storage is in some other file system than FAT.
related to:
https://www.linux.com/news/software/...ux-swap-space/
i've made some little tests and i think so far there's lot of ways to speed up phone little bit and this is one of first steps.
this is only for super advanced users and no one is responsible if you damage anything with this, it's also only for those who don't connect phone to mass storage very often.
it's important to note that swap is not replacement for RAM and it will not make "visible" changes to your device (like more ram....)
so, here we go:
need: sudo package and probably open mode kernel?
little automatization:
scripts for "quick" add/rem /home/user/MyDocs/.swap0:
copy them to /sbin/ or /bin/ or /usr/bin and do:
download rmswap0
###############
additional notes:
line dd if=/dev/zero of=/home/user/MyDocs/.swap0 bs=1024 count=2097152 means: fill /home/user/MyDocs/.swap0 with zeros in block size 1024 for 1024*2048 so maybe you will want to replace it with 1024*1024 (1048576)
to view swap files use:
# cat /proc/swaps
to view memory:
$ free
only for advanced users!!!
Last edited by wook_sf; 2012-09-10 at 10:14.