Is there any way to extend phone ram? - Huawei P20 Lite Questions & Answers

Hi, are there any magisk modules or firm mods that can extend phone ram? Like add 2 or 4gb to ram from memory?

erpl said:
Hi, are there any magisk modules or firm mods that can extend phone ram? Like add 2 or 4gb to ram from memory?
Click to expand...
Click to collapse
You can simply expand the RAM memory virtually, for example using the 'Swap - no root' app.
Be aware that it will not work very fast (by default, RAM uses the high-speed LPDDR4 or LPDDR5 standard with their modifications. Its performance can be ten times faster than the built-in flash memory).

Related

[Q] Ram memory

How much free ram memory xperia mini have ?
And does it have 512mb total ram or something like 418mb ?
Story is the Xperia has 512M of RAM, but 177M or so of RAM are taken up by the O/S. Leaving something along the lines of 335M free for other apps.
I don't know why all the programs that report memory don't show the memory reserved by the O/S.
Would be interested in knowing if such an app exists.
Mike
can u post screenshot of ram memory status ? so if i'am understand u, xperia have 335mb free ram with stock rom ? thats cool
Sejk97 said:
can u post screenshot of ram memory status ? so if i'am understand u, xperia have 335mb free ram with stock rom ? thats cool
Click to expand...
Click to collapse
That's the theoretical amount of memory, when I run max kill, I end up with 191MB.
If you go by the utilities they show you total memory its 335mb
Mike
ok, than it have 355mb ram not 512mb is 191mb of ram enought to run hd games ?
Sejk97 said:
ok, than it have 355mb ram not 512mb is 191mb of ram enought to run hd games ?
Click to expand...
Click to collapse
It's truly 512MB RAM, but the operating system (Android) also occupies RAM, for example in panamamike's case, the OS uses 191MB for its running so the amount of RAM left for other programs is about 512 - 191 = 355MB RAM.
I haven't tried any HD games but you can watch these videos :
http://www.youtube.com/watch?v=9tf5SpYnvII
http://www.youtube.com/watch?v=1wNx6ZnUgvM
acb123 said:
It's truly 512MB RAM, but the operating system (Android) also occupies RAM, for example in panamamike's case, the OS uses 191MB for its running so the amount of RAM left for other programs is about 512 - 191 = 355MB RAM.
I haven't tried any HD games but you can watch these videos :
http://www.youtube.com/watch?v=9tf5SpYnvII
http://www.youtube.com/watch?v=1wNx6ZnUgvM
Click to expand...
Click to collapse
Actually, the math goes like this.
512MB total - 177MB [Hidden by Android for system] - (166-170MB) [Android O/S apps] 22MB [Kernel] approx 143MB available to the user. Max Kill, kills some of the Android O/S stuff, but it starts right back up automatically. I don't know enough to determine if I can really turn some of that stuff off, but ATM I'm just letting it go.
Also note, if we could root the phone, there are applications that SE has installed as part of the O/S that could be removed to free up more memory.
It's a bit disheartening to see such little memory truly available. I don't know what typical HD games need to run.
Mike
i don't understand, if system hide 177mb ram for system, why he(system) double use ram memory ? 1. 177mb and 2. 166-177mb(for os and apps) why ?
never mind, thast cool phone..
Most apps/games store the big files /data on yer sdcard. The app needs to have this feature implemented.
sent from my phone using internet

Reallocating RAM , possible?

Well, we all know the ray has 512 MB of RAM built in. But if you use tools like Android Assistant, it tells you you can only use about 332 MB of it. I searched in other forums and found out, the "hidden" part of the RAM is reserved for the gpu. My question now: is there a way to reallocate the RAM and get some of the reserved available for user apps? Because i constantly get freezes wit oom.
I dont how to do it , but i am also disappoint when i saw ray has only 315+ RAM , sony site says ray has 512 MB
I am sure if we try to re allocate it we will get problems , why not you try cyanogenmod ?
it is faster and less RAM intensive
i am running on cyanogenmod 7.2 , but if i use launchers like spb shell 3d , my free ram, even at reboot, max caps at 110 mb. thats nothing.
JayanWarden said:
Well, we all know the ray has 512 MB of RAM built in. But if you use tools like Android Assistant, it tells you you can only use about 332 MB of it. I searched in other forums and found out, the "hidden" part of the RAM is reserved for the gpu. My question now: is there a way to reallocate the RAM and get some of the reserved available for user apps? Because i constantly get freezes wit oom.
Click to expand...
Click to collapse
i think is possible but it will be worst! most of the phone speed is given by the gpu (example samsung galaxy ace has 800MHz but lower gpu alocated memory and the phone speed is a disaster)
I think the only way to 'gain' some extra RAM is enabling SWAP.
On my old samsung, I once had a swap partition of 256 to extend the memory.
The good: you have real extra ram
The bad :
-swapping is slowing down the phone, as the sd-card speed is never sufficient.
-SD-card will die sooner, as you read/write a lot to same partition.
So swapping is not advised to my opinion, and others.
Some way to make some memory free (and speed up your phone) :
Use a clean rom (like 4pda.ru) and with the "autostarts" tool, try to disable android apps that automatically try to start itself at boot, startup or other events.
I found out that a lot of android apps try to start themselves even when you plug in the power cable (google maps for example), or connectivity changed, application installed etc.
With the autostarts tool (or rom toolbox) you can influence these triggers to prevent apps to startup themselves in the background.

zram: yes or no?

Im using pacman 18 on my neo v (JB rom)
Never really had a ram problem untill lately, when i started using viber, whatsapp, swype...
Now phone is struggling, there are no cached processes and almost no memory free.
By default zram is using 18% of my memory.
I dont exactly know what is zram, googling didnt help.
If i understand correctly, there are 2 scenarios:
1) It compresses data that would be in memory anyway, so you gain more ram, at the cost of having to compress/decompress evey time.
2) Apps that would normally be killed, are kept compressed inside memory, for faster access, at the cost of 'live' memory.
Could someone please clarify this for me?
well i dont know many things either.
I just think of this as that:
there is a swap/page file in ram that compresses useless/unused apps in ram.
Something like NTFS compress ability.
if you are using windows you have probably noticed that in the properties menu it says compress file to save disk space.
Well it just compresses it in ram and when you will need it it will be decompressed.
That way you will have more ram but maybe lags when swiching to apps.
I dont know anything about pacman rom so i can tell you about your problem.
try deleting zram (it will probably be a script in init.d)
I know it compresses data in phone's ram.
My question is, where does that data come from?
1) If that data would be in memory anyway, and they are just compressed, it gives you more memory, at the cost of performance
2) If they were outside of memory, and zram puts the in memory compressed, you lose ram, but you gain performance.
Let me also rephrase:
If i disable zram, that data that it compressed, would still be in memory uncompressed?
Or they will not be kept in memory any more?
Sorry, my English isnt helping on this one...
gordito_gr said:
I know it compresses data in phone's ram.
My question is, where does that data come from?
1) If that data would be in memory anyway, and they are just compressed, it gives you more memory, at the cost of performance
2) If they were outside of memory, and zram puts the in memory compressed, you lose ram, but you gain performance.
Let me also rephrase:
If i disable zram, that data that it compressed, would still be in memory uncompressed?
Or they will not be kept in memory any more?
Sorry, my English isnt helping on this one...
Click to expand...
Click to collapse
From Wiki
"zRam is an available feature for certain distributions of Linux, that was previously called "compcache". It increases performance by avoiding paging on disk and instead uses a compressed block device in RAM in which paging takes place until it is necessary to use the swap space on the hard disk drive. Since using RAM is faster than using disks, zRam allows Linux to make more use of RAM when swapping/paging is required, especially on older computers with less RAM installed.
Even though the cost of RAM hardware is relatively low this feature still offers advantages for netbooks and other lower-powered latops, virtualization and in the case of embedded devices, especially those that use flash memories that have a limited lifespan, dependent on write-use and thus wear out quickly when used as a swap device."
So the data are still in RAM but compressed...yes if you disable Zram they will be still there but they will use more ram! You gain more free ram when u use Zram but your CPU load is higher so perfomarnce is almost the same..
Konstantinosj77 said:
So the data are still in RAM but compressed...yes if you disable Zram they will be still there but they will use more ram! You gain more free ram when u use Zram but your CPU load is higher so perfomarnce is almost the same..
Click to expand...
Click to collapse
Still not clear.
On linux, after ram is depleted, data is coming from page file (hard disk)
How does zram work?
Does it pre-occupy that space in ram?
Or when ram is depleted, zram is automatically enabled and it starts compressing data???
gordito_gr said:
Still not clear.
On linux, after ram is depleted, data is coming from page file (hard disk)
How does zram work?
Does it pre-occupy that space in ram?
Or when ram is depleted, zram is automatically enabled and it starts compressing data???
Click to expand...
Click to collapse
Read again the part from the wiki..it says that zram uses "a compressed block device in RAM" so yes it pre-occupy some ram like a swap file! Also read this http://forum.xda-developers.com/showthread.php?t=2023568

App2sd

Does the Note 3 Pro allow for app2sd?
Thinking of getting the 16gb model if it is possible. Since the extra gig of ram doesnt really add to much performance.
Also, whats the general consensus in this forum, 2gb or 3gb model? and why?
Thanksss
Does the Note 3 Pro allow for app2sd?
No
Thinking of getting the 16gb model if it is possible. Since the extra gig of ram doesnt really add to much performance.
It matters a lot while multi-tasking, MIUI is RAM hungry & frequently kills background apps.
Also, whats the general consensus in this forum, 2gb or 3gb model? and why?
I am using the 2GB model, 800MB free RAM & around 10GB storage available on 1st boot. I had to flash custom ROM to get rid of RAM management issues.
If you are a heavy user, use 4-5 apps simultaneously & install a lot of apps get the 3GB else 2GB one will suffice.
SharkcpN said:
Does the Note 3 Pro allow for app2sd?
No
Thinking of getting the 16gb model if it is possible. Since the extra gig of ram doesnt really add to much performance.
It matters a lot while multi-tasking, MIUI is RAM hungry & frequently kills background apps.
Also, whats the general consensus in this forum, 2gb or 3gb model? and why?
I am using the 2GB model, 800MB free RAM & around 10GB storage available on 1st boot. I had to flash custom ROM to get rid of RAM management issues.
If you are a heavy user, use 4-5 apps simultaneously & install a lot of apps get the 3GB else 2GB one will suffice.
Click to expand...
Click to collapse
Can we set the external sd card to be the default location for whatspp and other apps after rooting Redmi Note 3?
techie_vintage said:
Can we set the external sd card to be the default location for whatspp and other apps after rooting Redmi Note 3?
Click to expand...
Click to collapse
Nope, Xiaomi never supported App2SD even after rooting. Its a restriction imposed by MIUI.
Boring, was thinking to use my 128Gb card for this...
Try xposed framworks...
so, if we were able to get a non MIUI ROM, can we get app2sd to work then?
youdoofus said:
so, if we were able to get a non MIUI ROM, can we get app2sd to work then?
Click to expand...
Click to collapse
Yeah, I think it's possible.
You can use XinternalSD (with XPOSED... root and xposed framework needed)
This app can change internal patch to SD with all or some apps...
whatsapp media direct to SD
here we go maps direct to SD
titanium backup files direct to SD
work fine with games but i dont recomend this.
dont move apps... move apps data only

Random Access Memory (RAM) enlarge

Hello,
I had times a question, unimpeded I want to increase the working memory (RAM) of my S2 with external SD card, is it possible?
thanks!
fener6-0 said:
Hello,
I had times a question, unimpeded I want to increase the working memory (RAM) of my S2 with external SD card, is it possible?
thanks!
Click to expand...
Click to collapse
Not possible. RAM is allocated and restricted for many other hardware in our device like camera, display, GPU, etc.
Just use ZRAM (swap) or ensure KSM (or other kernel mem saving features) is set with a high enough aggressiveness. By default in linux kernel, swappiness (swap) is set to 60. You can increase this at the expense of more CPU cycles. The same with KSM thresholds, but most KSM parameters are set/controlled by the kernel developer. Our device is old and 1GB doesn't play well with newer android versions.

Categories

Resources