hi,
i'm creating this new thread in order to help bring back to life our p880.
Android is like linux (of course it is)
it caches the background processes that are not currently in use and uses the physical ram for only the active apps.
But what happens if the app needs more physical ram ?
It has 2 ways to get it.
1. zram
2. swap
Let's go first with swap. Swap is slow, it uses the disk storage for "physical ram" but it's not a physical ram.
It only emulates the physical ram. What does this mean ? It does exactly what ram does.
But ram is at least 1 milisecond faster than hard disk. What ram does in 1ns (depends on the ram) the hard disk do it in 1ms (maybe more, depends on the disk).
Ram writes and reads every single "thing" the cpu needs to calculate and it's not found in L1,L2,etc cache...
Ram is our no1 upgrade on a pc hardware when we need to make it faster, because it cooperates with the cpu at everything. (cannot explain it with more simple words)
Zram on the other hand it's compressed physical ram. This way we sucrifice a very tiny amount of physical ram speed and cpu usage to compress the physical ram. But cpu and ram are 1 million times faster than the hard disk.
check your available ram
Anyway, below i will show you a way to double or triple your zram.
Download my attached file below,unzip and place it in /system/etc/init.d
check permissions and ownership.
They must be 755 and root:shell. If they are not, then do:
Good. Now navigate back to /system/build.prop and open it like a text to edit it
At the end add the line:
200 is the size and it means 200% of the physical ram.
Of course you can use a lower value if you want.
Now reboot.
check again the available ram.
adb shell free
Surprise.
How much of ram do you have now ?
phys.ram + zram = ???
If you like it, hit thanks.
*If your init.d isn't executed on boot for some reason *maybe supersu blocks it *maybe the kernel has some mistake *for any reason ... you can use kernel adiutor to emulate init.d on boot.
**For those that don't have init.d support by their kernel , they must install busybox to install sysinit or/and init
***Those that don't have zram partition at all, too bad, change kernel because that one doesn't support zram at all.
XDA:DevDB Information
Zram and various tweaks for p880, Tool/Utility for the LG Optimus 4X HD
Contributors
kessaras
Version Information
Status: Stable
Created 2016-12-22
Last Updated 2017-03-22
i'm creating this new thread in order to help bring back to life our p880.
Android is like linux (of course it is)
it caches the background processes that are not currently in use and uses the physical ram for only the active apps.
But what happens if the app needs more physical ram ?
It has 2 ways to get it.
1. zram
2. swap
Let's go first with swap. Swap is slow, it uses the disk storage for "physical ram" but it's not a physical ram.
It only emulates the physical ram. What does this mean ? It does exactly what ram does.
But ram is at least 1 milisecond faster than hard disk. What ram does in 1ns (depends on the ram) the hard disk do it in 1ms (maybe more, depends on the disk).
Ram writes and reads every single "thing" the cpu needs to calculate and it's not found in L1,L2,etc cache...
Ram is our no1 upgrade on a pc hardware when we need to make it faster, because it cooperates with the cpu at everything. (cannot explain it with more simple words)
Zram on the other hand it's compressed physical ram. This way we sucrifice a very tiny amount of physical ram speed and cpu usage to compress the physical ram. But cpu and ram are 1 million times faster than the hard disk.
check your available ram
Code:
adb shell free
Anyway, below i will show you a way to double or triple your zram.
Download my attached file below,unzip and place it in /system/etc/init.d
Code:
adb root
adb remount
adb push <path to file>/97zram /system/etc/init.d/
check permissions and ownership.
They must be 755 and root:shell. If they are not, then do:
Code:
adb shell
su
chmod 755 /system/etc/init.d/97zram
chown root:shell /system/etc/init.d/97zram
Good. Now navigate back to /system/build.prop and open it like a text to edit it
At the end add the line:
Code:
persist.service.zram=200
200 is the size and it means 200% of the physical ram.
Of course you can use a lower value if you want.
Now reboot.
check again the available ram.
adb shell free
Surprise.
How much of ram do you have now ?
phys.ram + zram = ???
If you like it, hit thanks.
*If your init.d isn't executed on boot for some reason *maybe supersu blocks it *maybe the kernel has some mistake *for any reason ... you can use kernel adiutor to emulate init.d on boot.
**For those that don't have init.d support by their kernel , they must install busybox to install sysinit or/and init
***Those that don't have zram partition at all, too bad, change kernel because that one doesn't support zram at all.
XDA:DevDB Information
Zram and various tweaks for p880, Tool/Utility for the LG Optimus 4X HD
Contributors
kessaras
Version Information
Status: Stable
Created 2016-12-22
Last Updated 2017-03-22
Attachments
Last edited: