Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
inteks
Old
(Last edited by inteks; 5th November 2011 at 02:48 PM.)
#1  
inteks's Avatar
Senior Member - OP
Thanks Meter 619
Posts: 999
Join Date: Oct 2006

 
DONATE TO ME
Angry [Script]Swap2cache (make use of unused Memory)

i finally get it to work.

this script (if kernel support) create a swapfile on mostly unused /cache partition

-copy the script to phone
-chmod
-add it to end of hw_config.sh (or any other way of bootexecute)

have fun
inteks

update:
new version creates own loopdevice (thx to hygge)
Attached Files
File Type: zip swap2cache.zip - [Click for QR Code] (393 Bytes, 2124 views)
The Following 16 Users Say Thank You to inteks For This Useful Post: [ Click to Expand ]
 
le_manhpro
Old
#2  
Senior Member
Thanks Meter 90
Posts: 280
Join Date: Aug 2011
Location: Buôn Mê Thuột
pls guider install ??
 
dubist
Old
#3  
Senior Member
Thanks Meter 39
Posts: 313
Join Date: Apr 2011
niceee.

Does this work on rooted and locked 2.3.4 Arc ?
 
inteks
Old
#4  
inteks's Avatar
Senior Member - OP
Thanks Meter 619
Posts: 999
Join Date: Oct 2006

 
DONATE TO ME
Quote:
Originally Posted by dubist View Post
niceee.

Does this work on rooted and locked 2.3.4 Arc ?
sorry but you need a kernel with swap support ...
 
inteks
Old
#5  
inteks's Avatar
Senior Member - OP
Thanks Meter 619
Posts: 999
Join Date: Oct 2006

 
DONATE TO ME
Quote:
Originally Posted by le_manhpro View Post
pls guider install ??
the easiest way is to use i.e. rootexplorer to run the script but then you have to do it after every reboot.

maybe a good idea for testing
 
funiewski
Old
#6  
Senior Member
Thanks Meter 116
Posts: 547
Join Date: Dec 2010
Location: Stockholm
will it work on ray?
 
lukas77
Old
#7  
lukas77's Avatar
Senior Member
Thanks Meter 113
Posts: 532
Join Date: Mar 2008
Location: Leeds
What's benefits we have using swap file?
Thx for answer

LG OPTIMUS 4X HD 4.1.2 ROOTED
 
donghungx
Old
#8  
Senior Member
Thanks Meter 5
Posts: 160
Join Date: Jun 2008
Quote:
Originally Posted by inteks View Post
sorry but you need a kernel with swap support ...
So what kind of kernel, is DoomKernel support? why you dont give a sameple?
 
hygge
Old
#9  
Senior Member
Thanks Meter 16
Posts: 100
Join Date: Oct 2009
Interesting idea, I have setup swap as descriped but I had to change loop device to /dev/block/loop18 which was the only unused loop device on my mobile.

It was wierd, because all new loop devices I created was quickly reserved for the same app by the system, rather annoying. But luckily I had one unused allready available.

I will let you know how it works, how the system performance is percieved after some testing. I would think it could slow down the device, the memeory is increased but it will be on slower memory.
 
inteks
Old
#10  
inteks's Avatar
Senior Member - OP
Thanks Meter 619
Posts: 999
Join Date: Oct 2006

 
DONATE TO ME
Quote:
Originally Posted by donghungx View Post
So what kind of kernel, is DoomKernel support? why you dont give a sameple?
yepp, doomkernel support swap :)

Sent from my MT15i using Tapatalk

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

report this ad
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...