Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,805,777 Members 41,944 Now Online
XDA Developers Android and Mobile Development Forum

enabling swap

Tip us?
 
ddalex
Old
#1  
Junior Member - OP
Thanks Meter 3
Posts: 5
Join Date: Dec 2010
Default enabling swap

Just to let you know that Razr I works beautifully with ZRAM swap enabled !

Moto Razr I comes with a 1G of RAM, but sometimes that is not enough. The Linux kernel uses swap space even if there is a lot of memory to page out allocated but rarely used pages, and move instead disk cache into memory.

I enabled a 256Mb ZRAM swap, and the difference in device responsivness is impressive - I can switch between applications with no lag, I get no freezes, and I'm happy with it.

To enable this, I sent a pull request to the Gamma kernel: http://forum.xda-developers.com/show....php?t=2217725

You will need to flash the next kernel image after the change is merged.
The Following 2 Users Say Thank You to ddalex For This Useful Post: [ Click to Expand ]
 
paulle
Old
#2  
paulle's Avatar
Senior Member
Thanks Meter 162
Posts: 826
Join Date: Nov 2010
Default swap

Quote:
Originally Posted by ddalex View Post
Just to let you know that Razr I works beautifully with ZRAM swap enabled !

Moto Razr I comes with a 1G of RAM, but sometimes that is not enough. The Linux kernel uses swap space even if there is a lot of memory to page out allocated but rarely used pages, and move instead disk cache into memory.

I enabled a 256Mb ZRAM swap, and the difference in device responsivness is impressive - I can switch between applications with no lag, I get no freezes, and I'm happy with it.

To enable this, I sent a pull request to the Gamma kernel: http://forum.xda-developers.com/show....php?t=2217725

You will need to flash the next kernel image after the change is merged.
A noob question: Is this similar to the swap partition in linux?
The Following User Says Thank You to paulle For This Useful Post: [ Click to Expand ]
 
adddaamo
Old
#3  
Senior Member
Thanks Meter 57
Posts: 147
Join Date: Oct 2010
Quote:
Originally Posted by paulle View Post
A noob question: Is this similar to the swap partition in linux?
It's a different beast.

http://forum.xda-developers.com/show....php?t=1851991
The Following User Says Thank You to adddaamo For This Useful Post: [ Click to Expand ]
 
godoy.rafa
Old
#4  
Member
Thanks Meter 14
Posts: 46
Join Date: Jun 2012
Location: Rio de Janeiro
Can you post a tutorial?
The Following User Says Thank You to godoy.rafa For This Useful Post: [ Click to Expand ]
 
adddaamo
Old
#5  
Senior Member
Thanks Meter 57
Posts: 147
Join Date: Oct 2010
Quote:
Originally Posted by ddalex View Post
Just to let you know that Razr I works beautifully with ZRAM swap enabled !

Moto Razr I comes with a 1G of RAM, but sometimes that is not enough. The Linux kernel uses swap space even if there is a lot of memory to page out allocated but rarely used pages, and move instead disk cache into memory.

I enabled a 256Mb ZRAM swap, and the difference in device responsivness is impressive - I can switch between applications with no lag, I get no freezes, and I'm happy with it.

To enable this, I sent a pull request to the Gamma kernel: http://forum.xda-developers.com/show....php?t=2217725

You will need to flash the next kernel image after the change is merged.
I've enabled it also, it didn't help too much. Try to switch between Chrome and Skype and Hangouts, each time each app is killed. Memory management in Android sucks.
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes