Guest Victod Posted February 25, 2014 Report Posted February 25, 2014 (edited) I never liked zRAM feature in the android devices! ^_^ In most Kitkat ROM for this device, zRAM is enable by default with 50 MB And due to I couldn't repack Boot.img (Kernel) from Kitkat ROMs to disable zRAM, I decided implement one script to disable it. Deactivating zRAM you get a slight boost in performance and extends a bit the battery duration due to is not needed use CPU to compress data in zRAM... (Dont expect much difference) Here is more info about it! and here too! If you want to know more *Google-it* as "zRAM in Android" ;) The purpose of these scripts is to disable zRAM or Enable SWAP Without apps and before the first boot, to get a better performance And improve the first impression of the ROM... ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Disable zRAM Download this file and install it by recovery. 09Dis-Zram0.zip or Download this file and put it in /etc/init.d folder, then set the right permissions after this, restarts to apply changes. 09Dis-Zram0 Disable zRAM Disabler Disable zRAM Disabler.zip ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ENABLE SWAP FILE This will create a swap file on /system or on /cache partition, depending on which you choose... Just is SWAP Use only one of two method.! 05-Swaponboot.zip [249 mb at /System] 05-Swaponboot v2.zip [128mb at /Cache] 05-Swaponboot v2.1 [Cache 150mb].zip DISABLE SWAP! Disable SWAP.zip ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- FSTRIM.! Improve SSD performance with fstrim --> FSTRIM(8) It seems that SSD performance decreases over time, since unlike hard disk drives (HDDs), NAND flash memory that make SSD cannot overwrite existing data. This means that you first have to delete the old data before writing new one. Flash memory is divided into blocks, which is further divided in pages. The minimum write unit is a page, but the smallest erase unit is a block. This means that as time goes on, the SSD will internally fragment the blocks among the different pages, until that it reaches a point where there won’t be available any empty page. Then every time the drive needs to write a block into any of the semi-full pages, it first needs to copy the current blocks from the page to a buffer, then it has to delete the whole page to finally rewrite the old blocks along with the new one. This means that as time goes on the SSD performance degrades more and more, because for every write it has to go through a cycle of read-erase-modify-write. This is known as “write amplification”. TRIM was invented for solving this problem, allowing the operating system to tell the SSD which blocks are free in the filesystem. The SSD uses this information to internally “defragment” the blocks and keep free pages available to be written quickly and efficiently. - See more at: http://fcns.eu/2013/09/12/improve-ssd-performance-with-fstrim/#sthash.F96ibMjL.dpuf 02Fstrim.zip Flash by recovery.! This script will create a log at "/data/trim.log" there you can see the amount of bytes that was trimmed You will see something like this... Disable FSTRIM.! Disable FSTRIM.zip ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- My Sysctl-Preferences. Taken from the V6 SuperCharger thanks to zeppelinrox To end, here a script with my SysCtl preferences like swappiness, min_free_kbytes, read_ahead_kb... 03My_preferences.zip Disable My Sysctl-Preferences. Disable_My-Sysctl-Preferences.zip That's all! Greetings! Edited May 4, 2014 by Victod
Guest mockingbird Posted February 26, 2014 Report Posted February 26, 2014 Wouldn't be easier to use Trickster Mod and tick that zRam off...
Guest Victod Posted February 27, 2014 Report Posted February 27, 2014 Wouldn't be easier to use Trickster Mod and tick that zRam off... Well, I prefer that these scripts do the work by me at disabling zRAM each time I install CyanogenMod 11 !! That's ok if you prefer installing such app to make things that one SIMPLE script can make without consume memory.!!
Guest SH3H1 Posted February 27, 2014 Report Posted February 27, 2014 It's safe to use swap on system partition? :wacko:
Guest Gliwusss Posted February 27, 2014 Report Posted February 27, 2014 It's safe to use swap on system partition? :wacko: yes
Guest SH3H1 Posted February 27, 2014 Report Posted February 27, 2014 Yes Won't it affect as the same as an sd card in terms of life of it? :huh:
Guest Gliwusss Posted February 28, 2014 Report Posted February 28, 2014 Won't it affect as the same as an sd card in terms of life of it? :huh: Nope, because system partition is default always in use :)
Guest SH3H1 Posted March 1, 2014 Report Posted March 1, 2014 The swap script can be used on stock? :unsure:
Guest Victod Posted March 1, 2014 Report Posted March 1, 2014 The swap script can be used on stock? :unsure: Sure!
Guest barnir Posted March 24, 2014 Report Posted March 24, 2014 Heya, i tried this method on latest Slimkat but i dont see anyfile on system folder, how can i know if the swap file is created?
Guest Victod Posted March 24, 2014 Report Posted March 24, 2014 Updater-Script fixed! [24/03/2014] Heya, i tried this method on latest Slimkat but i dont see anyfile on system folder, how can i know if the swap file is created? Please, download again, install it, and before install smth through recovery make sure that system is mounted... Greetings!
Guest Victod Posted March 24, 2014 Report Posted March 24, 2014 New Method! - Recommended Swap file at cache partition thanks to chiwahfj6
Guest farfix Posted March 24, 2014 Report Posted March 24, 2014 I have a doubt here... How I must flash these zip files? I have to flash the "Zram disabler", restart, boot phone, restart again, flash the swap and restart? Or can I flash both files in recovery and just restart? Greetings!
Guest Victod Posted March 24, 2014 Report Posted March 24, 2014 (edited) I have a doubt here... How I must flash these zip files? I have to flash the "Zram disabler", restart, boot phone, restart again, flash the swap and restart? Or can I flash both files in recovery and just restart? Greetings! Si, puedes instalar todos sin necesidad de reiniciar, el orden de instalación no importa... y lo del zRam es solo para las ROMS de Kitkat... English... Yep! u can install all scripts without reboot, and installation order doesn't matter zRam script is only to Kitkat based ROMS Edited March 24, 2014 by Victod
Guest farfix Posted March 24, 2014 Report Posted March 24, 2014 Si, puedes instalar todos sin necesidad de reiniciar, el orden de instalación no importa... y lo del zRam es solo para las ROMS de Kitkat... English... Yep! u can install all scripts without reboot, and installation order doesn't matter zRam script is only to Kitkat based ROMS Thanks! I thinked that I've done a mistake there flashing both zip at same time... I'm using Slimkat :) (Spanish): ¡Gracias! Creí que me había equivocado al flashear los 2 zip al mismo tiempo... Uso Slimkat :)
Guest Victod Posted March 24, 2014 Report Posted March 24, 2014 Thanks! I thinked that I've done a mistake there flashing both zip at same time... I'm using Slimkat :) (Spanish): ¡Gracias! Creí que me había equivocado al flashear los 2 zip al mismo tiempo... Uso Slimkat :) De nada... Y como dice la imagen de mi firma, usa el botón para dar las gracias... ^_^ Saludos!
Guest barnir Posted March 24, 2014 Report Posted March 24, 2014 So you recommend the 128mb cache swap iover the 250mb system?
Guest Victod Posted March 24, 2014 Report Posted March 24, 2014 So you recommend the 128mb cache swap iover the 250mb system? Yes, because unlike the system partition, partition cache is almost unused and almost always is empty you can increase the value of the swap file but remember that cache partition isn't as large as system /Cache 188mb /System 1006mb
Guest barnir Posted March 24, 2014 Report Posted March 24, 2014 Well that size should be enough i guess, i installed now that version and yup now i can see the file on cache xd thank you mate for updating this
Guest SaurabhRCk Posted March 24, 2014 Report Posted March 24, 2014 on slimkat, i disabled zram with performance control. so do i have to flash the zram disable script too, or just the swap script ??
Guest Victod Posted March 24, 2014 Report Posted March 24, 2014 on slimkat, i disabled zram with performance control. so do i have to flash the zram disable script too, or just the swap script ?? These scripts are independent, you can use it by separate... So, is not needed to use Swap script if you want to disable zRAM.... The intention of the scripts is disable zRAM before the first boot, to get a better performance...
Guest Domino2115 Posted March 24, 2014 Report Posted March 24, 2014 And zram is activated on every kitkat roms?
Guest Victod Posted March 24, 2014 Report Posted March 24, 2014 (edited) And zram is activated on every kitkat roms? Well, now with Ceastel kernel running on Slimkat and others KK ROMS, I don't know exactly wich of these have zRAM by default... But I sure that CM 11 have zRAM activated... Edit: Confirmed!... zRam still is by default on all KK Roms Edited March 24, 2014 by Victod
Guest SaurabhRCk Posted March 25, 2014 Report Posted March 25, 2014 hwy just out of curiosity, will this method work on any device??
Guest squal Posted March 25, 2014 Report Posted March 25, 2014 hwy just out of curiosity, will this method work on any device?? hi..wat recovery do you use..
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now