How come I dont get consistent reports of how much memory is free/being used?
Right now Advanced task manager is showing
Code:
free Mem: 42MB
Free is showing
Code:
total used free shared buffers
Mem: 98024 94944 3080 0 280
Swap: 31172 14440 16732
Total: 129196 109384 19812
and htop is showing
Code:
Mem [73/95MB]
Swp [14/30MB]
Also (out of whichever of these values is most accurate) are my values typical For a G1 while idle?
Related
So i downloaded an app called "Quick System Info". And it shows memory as:
Total: 386MB, Free: 284MB, Idle: 135MB
Any idea why the total amount of RAM not 512MB?
I am running 2.2.1 stock on a S-LCD N1.
syl0n said:
So i downloaded an app called "Quick System Info". And it shows memory as:
Total: 386MB, Free: 284MB, Idle: 135MB
Any idea why the total amount of RAM not 512MB?
I am running 2.2.1 stock on a S-LCD N1.
Click to expand...
Click to collapse
..maybe this helps http://forum.xda-developers.com/showpost.php?p=8330592&postcount=48
OK. So essentially a 126MB RAM disk is created by the boot up process?
syl0n said:
So i downloaded an app called "Quick System Info". And it shows memory as:
Total: 386MB, Free: 284MB, Idle: 135MB
Any idea why the total amount of RAM not 512MB?
I am running 2.2.1 stock on a S-LCD N1.
Click to expand...
Click to collapse
Using free at the command line I get:
Code:
free
total used free shared buffers
Mem: 416188 343684 72504 0 12272
Swap: 0 0 0
Total: 416188 343684 72504
The the rest of the 512 is mapped for the Radio/gpu/sound after that there is the kernel and the framework and that's before you run anything.
I'd like to get to the bottom of this too.
1) I don't think the zimage takes up a lot of memory when decompressed. Its about 2MB compressed.
2) Is it possible that the memory address space is only 512MB?
i.e. the address bus is only 29 bits wide?
edit:
This explains it: http://forum.xda-developers.com/showpost.php?p=5298630&postcount=5
To me its akin to an on-board video card on your PC reserving 16/32/x MB of video.
britoso said:
I'd like to get to the bottom of this too.
1) I don't think the zimage takes up a lot of memory when decompressed. Its about 2MB compressed.
2) Is it possible that the memory address space is only 512MB?
i.e. the address bus is only 29 bits wide?
edit:
This explains it: http://forum.xda-developers.com/showpost.php?p=5298630&postcount=5
To me its akin to an on-board video card on your PC reserving 16/32/x MB of video.
Click to expand...
Click to collapse
Um yeah, so the 256 memory limtation was fixed in 2.2. That post is from January. The top part of it I'd assume is still the same. Must allocate memory to various things. My N1 shows 400M total from free or /proc/meminfo, (408600 bytes).
Although I never did find the official specs from Dell for this device I thought it had 512M system RAM. 'free' returns far less than the expected amount of RAM
With Streakdroid7-v1.3
Code:
sh-4.1# free
total used free shared buffers
Mem: 371020 235908 135112 0 17696
Swap: 0 0 0
Total: 371020 235908 135112
With Streakdroid-HD7-2.0RC2.5
Code:
# free
total used free shared buffers
Mem: 351996 348628 3368 0 5648
Swap: 0 0 0
Total: 351996 348628 3368
The total should be more like 524288 K
What am I missing here?
uhmzilighase said:
Although I never did find the official specs from Dell for this device I thought it had 512M system RAM. 'free' returns far less than the expected amount of RAM
The total should be more like 524288 K
What am I missing here?
Click to expand...
Click to collapse
Most likely some of it is allocated to video, but yeah, that's quite a big chunk missing (150m).
yep. Look at dmesg.. mem=376M nvmem=128M
It has 512 meg of ram but only 384 is user addressable, per the spec , I am guessing the 128 is video ram , but that is only a guess ...
Sure 'nuf
Code:
dmesg|grep Kernel
<5>[ 0.000000] Kernel command line: [email protected] [email protected] I
Thanks!
So here I am running Infinitum (AOKP) v2.1 with Devil2 0.72, 402 MB edition.
So this is the amount of free ram I have:
~20 MB. *click*
NO WAIT! its 150 MB! *click*
errr... no... its still just ~20 MB *click*
So why would android tell me I got 150 MB of free ram and 'free' command tells me something quiet different? I really don't get it, hope some1 can enlighten me :/
Thanks!
Many apps are cached/pre-buffered like in Windows, so in reality RAM is used more. This 150MB physically is not free, but it's available for apps that needs RAM - memory from this 150MB will be 'cleared' instantly.
So I am not running critically low on memory?
But I guess more ram would anyway benefit the overall performance since android could cache/pre-buffer even more, right?
You can check Memory usage with the SystemPanel app: it will list all active applications / system processes and services / cached applications , showes what amout of ram they're using and can kill the unnecesserary apps on the spot with it!
Model: E5 Play(xt1920-16 ) 1gb ram
Here's the problem, every app or game closes when they reach i can say freely limit of using ram.
First limit was around 900mb, then i increased swap(default was 1gb, increased first to 2gb, then to 4gb) and limit went higher to 1800mb(and didn't change, after swapping more then 2gb).
Tried: lowmemorykiller paramaters
swapiness 100
How can i fix this?
Hi,
I have Lancelot phone (4gb) running Miu 13.0.2 global - android 12
After latest update..
I have some issues:
Reboot takes really long.
My WiFi router keeps disconnecting me it's a Fritzbox.. random Mac is disabled but router logs says not?
Multi tasking no-longer works,
Power save Miu optimization is off
I have "auto start" on.
I have "lock icon" above app ( using security app)
But as soon as I go from say chrome browser to a notepad app.. it reloads the app Vs keeping it running in the background
Other things:
Screenshot with scroll doesn't work.
Chrome browser/ share icon / save as jpeg crashes browser.
Listening long periods you get a notification warning about listening to long?
Random wallpaper app keeps running.. sending notifications..why?
I appreciate the help.
Solved:
Share app : I deleted..it just caused chrome to crash
The auto wallpaper changer app: deleted
The warning headphones app: I disabled
I have the same. The phone ran better on MIUI 12 than on 13. I looked into the issue and it is RAM-starved on MIUI 13. The firmware just uses so much RAM by itself, that not enough is left for your apps. At least on my model wiht 3GB RAM.
I have a few things installed that run in background (Blokada ad blocker, Whatsapp, Threema, GMX mail) and there's not enough RAM that I reliably get a notification when someone sends me a Whatsapp message.
I plan to switch to LineageOS soon.
Yesterday, I took the time to deep dive in the settings
Yet..no clue what's going on..
Free User available ram = 1.5 GB says phone
Sad..that there is no..revert update function.
It did send a bug report..let's hope it gets fixed
As for security, I use netguard with adguard DNS. ( Blocking lots of apps from phoning home or using my mobile data while blocking ads )
Mitchell4you. said:
Free User available ram = 1.5 GB says phone
Click to expand...
Click to collapse
Yeah, but that doesn't seem correct. I currently have no foreground apps open, just on the launcher the UI says "1.2 GB of 3.0 GB available".
But top shows this:
Tasks: 695 total, 1 running, 694 sleeping, 0 stopped, 0 zombie
Mem: 2758004K total, 2692880K used, 65124K free, 10536K buffers
Swap: 2097148K total, 905024K used, 1192124K free, 1167604K cached
...
2.69GB of 2.76GB used. 65MB free, 10MB buffers, and even 905MB swap are used already.
Same with "free -m":
total used free shared buffers
Mem: 2693 2606 86 52 9
-/+ buffers/cache: 2597 95
Swap: 2047 812 1235
Only 86MB RAM free without any user foreground app running, and 812MB swap already used.
I guess the available RAM display in MIUI is just wrong. It seems to count the free swap space as free RAM. (But doesn't count swap size towards total size.
I stumbled upon the option to disable apps via adb pm. There one can also disable apps where it is greyed out in the settings/manage apps UI.
See e.g. https://selivan.github.io/2020/02/25/removing-bloatware-from-xiaomi-miui-android.html
I noticed that "com.google.android.googlequicksearchbox" uses about 300MB RAM although I do not use it.
Do "adb shell" and then e.g. "pm disable-user com.google.android.googlequicksearchbox".
I disabled some more (Google One, Google Wallet, GMail, com.google.android.apps.turbo, com.xiaomi.joyose. com.facebook.system, Mi browser, Mi Health, MIUI ads, MIUI analytics, ...) Will see how it works out.
There several packages using up RAM which are useless for me (support for NFC payment on WeChat or fingerprint payment in AliExpress).
Code:
:/ $ free -m
total used free shared buffers
Mem: 3701 3546 154 64 37
-/+ buffers/cache: 3509 191
Swap: 2251 1033 1218
:/ $
Indeed..
Code:
:/ $ cat /proc/meminfo
MemTotal: 3790152 kB
MemFree: 138952 kB
MemAvailable: 1219616 kB
Buffers: 18420 kB
Cached: 1252720 kB
SwapCached: 125024 kB
Active: 1422752 kB
Inactive: 733888 kB
Active(anon): 763628 kB
Inactive(anon): 288660 kB
Active(file): 659124 kB
Inactive(file): 445228 kB
Unevictable: 95936 kB
Mlocked: 95936 kB
SwapTotal: 2306044 kB
SwapFree: 1290616 kB
Dirty: 72 kB
Writeback: 0 kB
AnonPages: 967296 kB
Mapped: 949036 kB
Shmem: 71896 kB
KReclaimable: 111464 kB
Slab: 218172 kB
SReclaimable: 60940 kB
SUnreclaim: 157232 kB
KernelStack: 57776 kB
PageTables: 90692 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 4201120 kB
Committed_AS: 91750508 kB
VmallocTotal: 263061440 kB
VmallocUsed: 106608 kB
VmallocChunk: 0 kB
CmaTotal: 327680 kB
CmaFree: 40196 kB
:/ $