• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[APP][14/5/13]Zram & Swap Control [CACHE & PARTN] V2.5.5 Sammy 4.2.2 compatible!

Search This thread

rlorange

Senior Member
Nov 5, 2010
4,307
2,242
Melbourne
[APP][14/5/13]Zram & Swap Control [CACHE & PARTN] V2.5.5 Sammy 4.2.2 compatible!

This was developed for Siyah and Perseus but should work with any kernel that supports Zram/swap.

IMPORTANT: please make sure super su app re-grants permissions after install!!
---------------------------------------
Thanks to mattiadj (best multitasking fix) for the concept of cache file-based swap
And Gokhan Moral for his ongoing help as I learn shell scripting ;)
---------------------------------------
2uradapy.jpg

---------------------------------------
UPDATE: Zram & Swap Ctrl V2.5.5

>>2.5.5 Tweaked 'dd' command which makes the swap files. should eliminate wrong size creation.

>>2.5.5 Cache size detection should work on CM10.1 roms and limit slider to 100MB less than the total free space.

>>2.5.5 Scrapped timeout and auto-rotate settings. will make landscape scenes eventually.

DOWNLOAD: http://db.tt/cQcrOM3C

CWM busybox install if app install fails:

http://db.tt/BPJPR8jI

(NOTE: the busybox will not affect your rom busybox and will only be used by this app)
---------------------------------------
UPDATE: Zram & Swap Ctrl V2.5.2

DOWNLOAD: http://db.tt/LADTptWk

>>2.5.2 fixed Cache swap files being made to chosen size in KB instead of MB

>>2.5.2 added slider bounce limit for Cache swap using Cache partition detection.

>>2.5.2 New feature! User choice zram swap priority setting

eduqedub.jpg

bupa5aqu.jpg

amy5uhej.jpg

ajahyga3.jpg

---------------------------------------
>>>UPDATE: Zram & Swap Control V2.5.1
 
Last edited:

Highlander11

Senior Member
Jul 20, 2009
191
32
Newlands, Pretoria
Re: [APP][28/3/13]Zram & Hard Swap Control V 2.1

Thx for the app! It is filling a gap in the market...

Just a few (constructive) comments:
- maybe explicitly state that some of the settings can take a long time to execute - there is no app activity to show that it is not hanging or freezing
- when I set swappiness to 100%, it showed as 10% after a reboot
- the second slider "dot" is not always centred on the slider line and the larger blue circle is not always surrounding it (like is the case for the top slider)
- the close button in the RH bottom of the app is not very responsive at times (I guess when the app is busy - but that is not indicated anywhere)

I'll post more as I remember... :rolleyes:

Sent from my GT-I9300 using xda premium
 
  • Like
Reactions: rlorange

rlorange

Senior Member
Nov 5, 2010
4,307
2,242
Melbourne
Re: [APP][28/3/13]Zram & Hard Swap Control V 2.1

I fixed the sappiness issue in V2.1

When the operation is in progress a WAIT message should appear indicating it's still doing it's thing :)

Sent from my GT-I9300 using Tapatalk 2
 

rlorange

Senior Member
Nov 5, 2010
4,307
2,242
Melbourne
Re: [APP][28/3/13]Zram & Hard Swap Control V 2.1

any tutorial on how to set hard swap enabled:confused: thanks :good:

Yes I'll write one...

Basically use mini partition tool in windows.

Make your main partition smaller using resize leaving the desired space free for a swap partition at the END of the card.

Now make a Linux swap partition using this free space and set as PRIMARY.

My app will detect this partition ;)

Sent from my GT-I9300 using Tapatalk 2
 
  • Like
Reactions: hansen5265

rlorange

Senior Member
Nov 5, 2010
4,307
2,242
Melbourne
Re: [APP][28/3/13]Zram & Hard Swap Control V 2.1

Hi rlorange, Just downloaded 2.1 and opened, granted SuperUser permissions and...... Nothing happened ? Any ideas..

Foxhound 2.4, Perseus alpha 34.3, etc

What? That's weird. Um try closing the app from application manager and open again

Edit: also disable notifications in super su app as tasker made apps will continually notify for su shell permissions granted

Sent from my GT-I9300 using Tapatalk 2
 
Last edited:

t4d73

Senior Member
Sep 28, 2011
2,486
567
Re: [APP][28/3/13]Zram & Hard Swap Control V 2.1

This app. Free in play store. It should look like this until zram is used.


Sent from my SPH-L900 using xda app-developers app
 

Attachments

  • uploadfromtaptalk1364519326546.jpg
    uploadfromtaptalk1364519326546.jpg
    49.7 KB · Views: 1,703

erto90

Senior Member
Jun 21, 2008
3,155
687
Firenze ( Florence )
R: [APP][29/3/13]Zram & Hard Swap Control V 2.2

Someone tried with shark kernel? I'm still with an old version unsupported by zram

Inviato dal mio GT-I9300 con Tapatalk 2
 

rlorange

Senior Member
Nov 5, 2010
4,307
2,242
Melbourne
Re: [APP][29/3/13]Zram & Hard Swap Control V 2.2

I assume zram interface with be the same for any kernel that supports it. Testers please report even across devices

Sent from my GT-I9300 using Tapatalk 2
 

t4d73

Senior Member
Sep 28, 2011
2,486
567
Re: [APP][29/3/13]Zram & Hard Swap Control V 2.2

You should think about publishing this in the play store as there is nothing else like it. :) I would buy it and I'm sure others would too. Not much comes up when you search zram.

Sent from my SPH-L900 using xda app-developers app
 
  • Like
Reactions: rlorange

erto90

Senior Member
Jun 21, 2008
3,155
687
Firenze ( Florence )
R: [APP][29/3/13]Zram & Hard Swap Control V 2.2

This is my situation with shark kernel
When I press "set now" my phone reboot..
Is zram active or not?



Inviato dal mio GT-I9300 con Tapatalk 2
 

Attachments

  • uploadfromtaptalk1364584321330.jpg
    uploadfromtaptalk1364584321330.jpg
    46.5 KB · Views: 992

t4d73

Senior Member
Sep 28, 2011
2,486
567
Re: [APP][29/3/13]Zram & Hard Swap Control V 2.2

This is my situation with shark kernel
When I press "set now" my phone reboot..
Is zram active or not?



Inviato dal mio GT-I9300 con Tapatalk 2

Are you certain your kernel supports zram? If not it probably won't work.

Sent from my SPH-L900 using xda app-developers app
 

Top Liked Posts

  • There are no posts matching your filters.
  • 57
    [APP][14/5/13]Zram & Swap Control [CACHE & PARTN] V2.5.5 Sammy 4.2.2 compatible!

    This was developed for Siyah and Perseus but should work with any kernel that supports Zram/swap.

    IMPORTANT: please make sure super su app re-grants permissions after install!!
    ---------------------------------------
    Thanks to mattiadj (best multitasking fix) for the concept of cache file-based swap
    And Gokhan Moral for his ongoing help as I learn shell scripting ;)
    ---------------------------------------
    2uradapy.jpg

    ---------------------------------------
    UPDATE: Zram & Swap Ctrl V2.5.5

    >>2.5.5 Tweaked 'dd' command which makes the swap files. should eliminate wrong size creation.

    >>2.5.5 Cache size detection should work on CM10.1 roms and limit slider to 100MB less than the total free space.

    >>2.5.5 Scrapped timeout and auto-rotate settings. will make landscape scenes eventually.

    DOWNLOAD: http://db.tt/cQcrOM3C

    CWM busybox install if app install fails:

    http://db.tt/BPJPR8jI

    (NOTE: the busybox will not affect your rom busybox and will only be used by this app)
    ---------------------------------------
    UPDATE: Zram & Swap Ctrl V2.5.2

    DOWNLOAD: http://db.tt/LADTptWk

    >>2.5.2 fixed Cache swap files being made to chosen size in KB instead of MB

    >>2.5.2 added slider bounce limit for Cache swap using Cache partition detection.

    >>2.5.2 New feature! User choice zram swap priority setting

    eduqedub.jpg

    bupa5aqu.jpg

    amy5uhej.jpg

    ajahyga3.jpg

    ---------------------------------------
    >>>UPDATE: Zram & Swap Control V2.5.1
    4
    Next version is a biggy!!

    Now you can choose to have your NAND residing swap files on the SD card instead of cache. Better for dual boot and safety

    ALSO!... external SD swap without using a swap partition!
    5ahategy.jpg


    Sent from my GT-I9300 using Tapatalk 2
    4
    Is possible to set priority with any busybox version? If yes how? I'm making my best multitasking fix with cache file swap but I want to learn more about priority.

    Thanks

    From universe with my gs3

    No that's what I was scratching my head about when I looked into it. The default script command calls the kernel busybox which seem to all be a version which doesn't support priority so I used sterricon budybox my app puts in a folder.

    You might can easily do this with a CMW zip then call the busybox with your script when setting your swap commands.

    Remember you must swapoff zram as well if the kernel starts it on boot then set it back on with the same priority as cache swap priority as well otherwise it won't run till cache is full.

    #!/system/bin/sh

    /system/bbsiyahmods/busybox mkswap /cache/swapfile.swp;
    /system/bbsiyahmods/busybox mkswap /cache/swapfile2.swp;
    /system/bbsiyahmods/busybox mkswap /cache/swapfile3.swp;
    /system/bbsiyahmods/busybox mkswap /cache/swapfile4.swp;
    /system/bbsiyahmods/busybox swapon -p 2 /cache/swapfile.swp;
    /system/bbsiyahmods/busybox swapon -p 2 /cache/swapfile2.swp;
    /system/bbsiyahmods/busybox swapon -p 2 /cache/swapfile3.swp;
    /system/bbsiyahmods/busybox swapon -p 2 /cache/swapfile4.swp
    echo 100 > /proc/sys/vm/swappiness;
    fi

    Edit: default swaps are set -1, -2 etc in the order they are activated so zram will be a lower priority if you use priority with your cache swap but let the kernel set zram.

    Use "cat /proc/swaps" to see details

    Sent from my GT-I9300 using Tapatalk 2
    4
    UPDATE: Zram & Swap Ctrl V2.5.2

    DOWNLOAD: http://db.tt/LADTptWk

    >>2.5.2 fixed Cache swap files being made to chosen size in KB instead of MB

    >>2.5.2 added slider bounce limit for Cache swap using Cache partition detection.

    >>2.5.2 New feature! User choice zram swap priority setting

    eduqedub.jpg

    bupa5aqu.jpg

    amy5uhej.jpg

    ajahyga3.jpg


    Sent from my GT-I9300 using Tapatalk 2
    3
    Re: [APP][29/3/13]Zram & Swap Control [CACHE & PARTITION] V 2.3 UPDATE

    UPDATE: Zram & Swap control V2.3

    V2.3 Changelog:

    -Running dialogs
    -Now with internal memory cache file situated Swap option.
    -improved Boot-set init.d support.

    Download V2.3: http://db.tt/MkEcM7Hs

    EDIT: RE- UPLOADED FOR BUG FIX

    Note this app will work with any kernel with swap support across many devices

    enemy9a8.jpg


    Sent from my GT-I9300 using Tapatalk 2

    Sent from my GT-I9300 using Tapatalk 2