FORUMS
Remove All Ads from XDA

[KERNEL] Swap-enabled kernel for GT-I8552 [version 3]

309 posts
Thanks Meter: 189
 
By freitaz, Senior Member on 12th November 2014, 03:21 AM
Post Reply Email Thread
Greetings.

For a while, I've been wondering if swap usage could benefit our device, since we usually have a lot of apps and few memory to run them. But there were no kernels with swapping enabled... until now

With this kernel, you can use swap on your device and free memory for apps which drain more resources, thus obtaining better usage experience. Also, this zip file enables your device to run init.d scripts, and it already has a script to enable swap at boot, so you don't need to worry when you restart your phone.

I tested this on my device. It boots and some of my apps ran better than before. But it is still experimental, I am testing features, toolchains, compiler flags, so be warned.

My thanks to @yajnab, because of his tutorial for compiling the kernel:
http://forum.xda-developers.com/gran...alaxy-t2821042
This kernel is based on his work, and the only changes are the swap support and some optimizations during compilation time.

Links for download:

v3:
http://d-h.st/65V (Dev-Host)
http://www.mediafire.com/download/57...th-swap-v3.zip (MediaFire)

restore-modules.zip (see next post for details):
http://d-h.st/MB3 (Dev-Host)
http://www.mediafire.com/download/tu...re-modules.zip (Dev-Host)

Change log:
Quote:

v3: Compiled with Linaro 4.7.4 with compiler flags for tuning performance
v2: Test version which I didn't post
v1: Initial version.


Older versions:

Before flashing it, check my next post for guidelines! I won't take any responsibility for bricked devices.
The Following 8 Users Say Thank You to freitaz For This Useful Post: [ View ] Gift freitaz Ad-Free
 
 
12th November 2014, 03:25 AM |#2  
freitaz's Avatar
OP Senior Member
Flag Manaus, AM
Thanks Meter: 189
 
More
Exclamation Guidelines for using this kernel
  1. What do I need to flash it?
    You need to have:
    • A rooted phone (obvious)
    • CWM installed
    • Busybox installed (VERY important!)
    • A bit of courage, hehe
  2. And about the instructions?
    Very easy and painless. Just follow these steps:
    • Download zip file
    • Put it on your sd card
    • Reboot on CWM mode
    • Flash zip file
      CWM will warn you that rom may flash stock recovery. You MUST answer "NO" to this question.
    • Reboot, and you're done.
  3. Notes about usage of this kernel
    From the 3rd version, this kernel ships their own modules. A backup is made during install, so if you want to change back to stock kernel by restoring a boot.img backup, you need also to flash the restore-modules.zip package, otherwise some things won't work after kernel change (for example, wi-fi).
    Also, this kernel may drain more battery than usual.
  4. Notes about swap usage
    There are some points that YOU MUST notice before using this kernel.
    • Reduction of SD card life
      Swap activity is disk-intensive and flash media has a limit of write cycles. So, this kernel WILL reduce your SD card life. How many time will you lose, you wonder? I don't know. But be warned.
    • Performance changes
      Swap activity is also dependent of your SD card speed. So, if your SD card is class 4 or below, your device may get slower, so you shouldn't use this. This is for use on faster SD cards. I use on a Kingston SD card class 10, so it's fast and will provide me some performance gain. Still, this kernel might give you lags.
    • Use of swap files or partition files
      You probably WILL need to edit the file located under the folder
      Code:
      system/etc/init.d
      on zip package. This is because your swap device will be different from mine. I use as swap a partition on my SD card, and it is the second partition. So, the path for the device, in my case, is
      Code:
      /dev/block/mmcblk1p2
      If you use another partition, or even a swap file, you will need to unzip the package, change the file on previously mentioned folder and zip it again before you flash it. You only need to change the part referent to device (for example, from
      Code:
      /dev/block/mmcblk1p2
      to
      Code:
      /storage/sdcard0/swapfile.swp
      This is just an example, your values probably will be different.
    • Size of swap file/partition
      This will vary according to your necessities. In my daily use, my device uses up to 240MB of swap space, during some heavy gaming. So, I reccomend no more than 512MB of swap space; more than this will be probably waste of space.
That said, you may make questions, or flash this package straight.
The Following 4 Users Say Thank You to freitaz For This Useful Post: [ View ] Gift freitaz Ad-Free
12th November 2014, 02:13 PM |#3  
Member
Flag Toronto(Canada)-Tehran(Iran)
Thanks Meter: 20
 
More
Download Link Not Found
Error 404 !
12th November 2014, 04:24 PM |#4  
freitaz's Avatar
OP Senior Member
Flag Manaus, AM
Thanks Meter: 189
 
More
Quote:
Originally Posted by dadash_ari

Download Link Not Found
Error 404 !

It is working for me. Anyway, I uploaded it on an alternate link.
The Following User Says Thank You to freitaz For This Useful Post: [ View ] Gift freitaz Ad-Free
12th November 2014, 08:04 PM |#5  
manojkumar8552's Avatar
Senior Member
Flag AHEMADABAD
Thanks Meter: 502
 
More
Angry
Nice Job.Keep Devloping bro.add some SmartassH3 nd SIO nd Smartassv2 nd voltage control :P Will Be HelpFul
13th November 2014, 03:02 AM |#6  
freitaz's Avatar
OP Senior Member
Flag Manaus, AM
Thanks Meter: 189
 
More
Quote:
Originally Posted by manojkumar8552

Nice Job.Keep Devloping bro.add some SmartassH3 nd SIO nd Smartassv2 nd voltage control :P Will Be HelpFul

I will try to include this as soon as I have free time.
13th November 2014, 06:54 PM |#7  
manojkumar8552's Avatar
Senior Member
Flag AHEMADABAD
Thanks Meter: 502
 
More
Quote:
Originally Posted by freitaz

I will try to include this as soon as I have free time.

which toolchain do u use ????
i m getti g error in toolchain so i need some batter toolchain !!
13th November 2014, 07:28 PM |#8  
freitaz's Avatar
OP Senior Member
Flag Manaus, AM
Thanks Meter: 189
 
More
Quote:
Originally Posted by manojkumar8552

which toolchain do u use ????
i m getti g error in toolchain so i need some batter toolchain !!

For the first version I used the toolchain from CM repo:
https://github.com/CyanogenMod/andro...arm-eabi-4.4.3

For the third I used Linaro 4.7.4.
The Following User Says Thank You to freitaz For This Useful Post: [ View ] Gift freitaz Ad-Free
15th November 2014, 11:47 AM |#9  
manojkumar8552's Avatar
Senior Member
Flag AHEMADABAD
Thanks Meter: 502
 
More
Quote:
Originally Posted by freitaz

For the first version I used the toolchain from CM repo:
https://github.com/CyanogenMod/andro...arm-eabi-4.4.3

For the third I used Linaro 4.7.4.

Nicer Pls Provide me Linaro 4.7.4 link
I mess always i dont get Zimage Sometimes.
and dont knw how to solve problem that can u help me in that !!
www.fb.com/420manoj is my FB
15th November 2014, 12:43 PM |#10  
freitaz's Avatar
OP Senior Member
Flag Manaus, AM
Thanks Meter: 189
 
More
Quote:
Originally Posted by manojkumar8552

Nicer Pls Provide me Linaro 4.7.4 link
I mess always i dont get Zimage Sometimes.
and dont knw how to solve problem that can u help me in that !!
www.fb.com/420manoj is my FB

You can find Linaro pre-built there:
http://forum.xda-developers.com/show....php?t=2098133
About the zImage, I will be of little help at moment. Basically I am only compiling this, and nothing more else, at least for now.
15th November 2014, 02:00 PM |#11  
manojkumar8552's Avatar
Senior Member
Flag AHEMADABAD
Thanks Meter: 502
 
More
Quote:
Originally Posted by freitaz

You can find Linaro pre-built there:
http://forum.xda-developers.com/show....php?t=2098133
About the zImage, I will be of little help at moment. Basically I am only compiling this, and nothing more else, at least for now.

i have 2 toolchain problem is with different toolchain get different problem. :P when add governors than no problem in output but when Add IO gots problem :P !! Will try thnxs.
Post Reply Subscribe to Thread

Tags
grand quattro, kernel, swap

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes