Welcome to CyanogenMod
![]() |
Welcome to our forum. Like most online communities you must register to post, but don't worry this is a simple free process that requires minimal information for you to signup. Be a part of the CyanogenMod Forum by signing in or creating an account. You can even sign in with your Facebook or Twitter account.
|
Enabling swap
#41
Posted 14 July 2010 - 06:24 AM
#42
Posted 14 July 2010 - 12:42 PM
nwordjim, on 14 July 2010 - 04:36 AM, said:
The way I understand it, the way CM5 and maybe CM6 handles swap is different. If swap is available it will use it, all of it. It uses swap like physical memory. Swap just gives you more room to breath. Since VM is slower than physical mem you don't want a lot of it. I'm sure there is more to it than that, but that is my take on it.
#43
Posted 14 July 2010 - 01:18 PM
connoisseur, on 14 July 2010 - 04:42 AM, said:
Not that I know of. I tried with gparted on Ubuntu. I could resize the swap, but for some reason I couldn't resize/move the ext partition to fill the space. If that dead space doesn't bother you then do that. I wanted to completely rebuild the phone anyway so I did a full partition/format. You can download Ubuntu 10.04 Desktop and burn the CD. The CD will run as a standalone, and it has gparted installed.
#44
Posted 15 July 2010 - 02:00 PM
-Stevo-, on 14 July 2010 - 04:42 AM, said:
http://goaruna.com/cqnw
Gives you these new commands in terminal:
swapon10
swapon20
swapon30
swapon40
swapon50
swapon60
swapon70
swapon80
swapon90
The commands will mount your swap partition with the corresponding swappiness. Bootswap was removed until cm6 and run parts can see the external partitions required.
Thanks again, Stevo! This time I did a quick test, rather than doing it on the fly whilst in the gym.
Test 1. No swap, compcache off.
Started Streamfurious, waited for buffering, radio started playing.
Hit Home key, Streamfurious stops.
Test 2. No swap, compcache on.
Started Streamfurious, waited for buffering, radio started playing.
Hit Home key, Streamfurious keeps playing.
Started browser. Halfway through page load, Streamfurious stops.
Test 3. Swap30, compcache off.
Started Streamfurious, waited for buffering, radio started playing.
Hit Home key, Streamfurious keeps playing.
Started browser. Halfway through page load, Streamfurious keeps playing.
On my 32B, at least, the results are dramatic. Without swap, my Android is an iFlop (other than not dropping calls), with swap it multitasks perfectly. I don't see any performance impact from having swap on.
#45
Posted 15 July 2010 - 05:03 PM
#46
Posted 15 July 2010 - 05:26 PM
anwoo, on 15 July 2010 - 05:03 PM, said:
There was a thread about this a few weeks ago. From memory, I think the answer is yes. The speed information suggested that anything beyond Class 6 is a waste of money because the transfer speed is limited by the phone hardware rather than the card.
#47
Posted 15 July 2010 - 08:47 PM
Settings > ADWLauncher > System Preferences
Wallpaper Hack: Checked
Orientation Sensor: Unchecked (not sure if this one matters though)
Use Screen Cache: Checked
Scrollable widget support: Unchecked!
System Persistent: Checked
Settings > CyanogenMod Settings > Performance Settings
Use Compcache: Checked
Use JIT: Unchecked
Enable Surface Dithering: Checked (not sure if this one matters though)
VM heap size: 16 M
With the above settings my phone is very fast, applications load very quickly, and returning to home is instant! I have been running this way for the past few days and I'm really amazed!
Try them out and let me know if you still need swap...I know I don't need it!
#48
Posted 15 July 2010 - 09:24 PM
elmoojps, on 15 July 2010 - 08:47 PM, said:
Settings > ADWLauncher > System Preferences
Wallpaper Hack: Checked
Orientation Sensor: Unchecked (not sure if this one matters though)
Use Screen Cache: Checked
Scrollable widget support: Unchecked!
System Persistent: Checked
Settings > CyanogenMod Settings > Performance Settings
Use Compcache: Checked
Use JIT: Unchecked
Enable Surface Dithering: Checked (not sure if this one matters though)
VM heap size: 16 M
With the above settings my phone is very fast, applications load very quickly, and returning to home is instant! I have been running this way for the past few days and I'm really amazed!
Try them out and let me know if you still need swap...I know I don't need it!
Have you tested its multitasking performance without swap?
#50
Posted 15 July 2010 - 11:34 PM
-Stevo-, on 15 July 2010 - 11:19 PM, said:
I've still yet to hear a convincing reason why swap isn't a good idea, a lot of people say it's bad, but are somewhat reticent in backing up their statements with facts. If it comes to the point where I can't run swap at all, then I'll either go back to an earlier release or buy a new phone. I'm already anxiously monitoring the Desire status.....
#51
Posted 16 July 2010 - 04:35 AM
Firerat, on 12 July 2010 - 03:43 PM, said:
add a shabang
#!/system/bin/sh
Dear Firerat lol,
I am running the cm6 rc1 (not nightly). I flashed with rom manager and worked rather well I might add. One problem though. I ran your all in one patch then rebooted. Checked swap, swap was on. On next reboot, swap off? System performance was way better before with swap on, how do I get it to start on boot and stay that way?
#52
Posted 16 July 2010 - 05:02 AM
sparksco, on 16 July 2010 - 04:35 AM, said:
I am running the cm6 rc1 (not nightly). I flashed with rom manager and worked rather well I might add. One problem though. I ran your all in one patch then rebooted. Checked swap, swap was on. On next reboot, swap off? System performance was way better before with swap on, how do I get it to start on boot and stay that way?
#55
Posted 16 July 2010 - 10:33 AM
pbelcomp, on 16 July 2010 - 06:58 AM, said:
It has never worked on my phone.
Doesn't work on mine either... and, most of the times when I enable swap to file (/sdcard/swapfile.swp) it fails... I have to repeat the operation several times to make it work... it's a pain in the ass
#56
Posted 16 July 2010 - 03:43 PM
#58
Posted 16 July 2010 - 04:16 PM
#59
Posted 16 July 2010 - 04:21 PM
#60
Posted 16 July 2010 - 04:58 PM
invisiblewave, on 15 July 2010 - 11:34 PM, said:
i don't think anyone's necessarily saying it's bad. it's just a trade off. for me, when i turned on my swap things were painfully slow, but i was able to run pandora and the browser at the same time. smaller swap seems to be the way to go. mines at 64mb right now, thinking about dropping it to 32mb and trying again. i had a similar experience in 5.0.8, but in cm5 i was able to run without swap and still do a lot of multitasking and it was much much faster than running the swap.














