Currently, my 5x's dumpsys meminfo says:
...
76688 kB: Foreground
76688 kB: com.android.settings (pid 23977 / activities)
...
37045 kB: Home
37045 kB: org.adwfreak.launcher (pid 16662 / activities)
...
Total RAM: 1857352 kB (status normal)
Free RAM: 534358 kB (206314 cached pss + 149296 cached kernel + 178748 free)
Used RAM: 1077268 kB (854220 used pss + 223048 kernel)
Lost RAM: 245726 kB
ZRAM: 117796 kB physical used for 506336 kB in swap (520908 kB total swap)
Tuning: 192 (large 512), oom 322560 kB, restore limit 107520 kB (high-end-gfx)
If we count the foreground app in, we have 611M memory for apps.
ZRAM saved 388M memory. Without ZRAM, we only have 223M memory available, for all the foreground+cached apps... Even if we kill the launcher, we only have 260M.
This implies that for some large apps, services would be killed, which is basically not acceptable.
So we are forced to use ZRAM? But this incurs some overhead.
Basically I think that 2G memory is not enough for a 64bit device. I'd hope that 5X is a 32bit device....
I turned off ZRAM last night and I haven't noticed any issues.
Am I right in understanding zRam is basically like a page file? Using storage space as slower system memory?
Yes, it is basically a pagefile held in RAM but compressed. You basically sacrifice a bit of CPU usage for more RAM at a smaller latency and bandwidth hit verses paging to a flash or hard disk.
Darkknight512 said:
I turned off ZRAM last night and I haven't noticed any issues.
Click to expand...
Click to collapse
Really? Would you please show me the meminfo? Do you have many services running?
Total RAM: 1857252 kB (status low)
Free RAM: 414498 kB (158914 cached pss + 212368 cached kernel + 43216 free)
Used RAM: 1326753 kB (1131817 used pss + 194936 kernel)
Lost RAM: 116001 kB
ZRAM: 12 kB physical used for 0 kB in swap (0 kB total swap)
Tuning: 192 (large 512), oom 322560 kB, restore limit 107520 kB (high-end-gfx)
It's perfectly smooth, I have no complaints. Usually using Pebble, Plexfitx Chrome, FB Messenger, SMS, some games like Reaper, Angry Birds, Geometry Wars 3, Gmail and Maps.
Darkknight512 said:
Total RAM: 1857252 kB (status low)
Free RAM: 414498 kB (158914 cached pss + 212368 cached kernel + 43216 free)
Used RAM: 1326753 kB (1131817 used pss + 194936 kernel)
Lost RAM: 116001 kB
ZRAM: 12 kB physical used for 0 kB in swap (0 kB total swap)
Tuning: 192 (large 512), oom 322560 kB, restore limit 107520 kB (high-end-gfx)
It's perfectly smooth, I have no complaints. Usually using Pebble, Plexfitx Chrome, FB Messenger, SMS, some games like Reaper, Angry Birds, Geometry Wars 3, Gmail and Maps.
Click to expand...
Click to collapse
Interesting... Your Lost RAM is much lower than mine....
Are you using the stock rom?
Stock rooted, encryption off, running ElementalX 0.02 kernel now.
Darkknight512 said:
Stock rooted, encryption off, running ElementalX 0.02 kernel now.
Click to expand...
Click to collapse
Might be the kernel. I'll try that later. Thanks.
The 6p also has 500megs of zram enabled by default even though it has 3gb of ram.
Sent from my Nexus 6P using Tapatalk
Darkknight512 said:
Yes, it is basically a pagefile held in RAM but compressed. You basically sacrifice a bit of CPU usage for more RAM at a smaller latency and bandwidth hit verses paging to a flash or hard disk.
Click to expand...
Click to collapse
Kind of correct.
The pagefile isn't really RAM. I assume you're thinking of "private address space" or addressable "memory".
Having a compressed pagefile in RAM, means that instead of writing out less frequently used memory to the flash drive (where it is slower to access and also wears down the flash drive more quickly), then it stores it in RAM (compressed to use less space than it normally would).
Personally I don't see why people are against it so much. You're not really loosing anything (the space is still there for usage). It may cost a few CPU cycles but it wouldn't affect things that much. And it is measurably faster than the alternative of writing to flash and reading after.
Personally, I don't see why people are so hung up on RAM to begin with. Android works nothing at all like Windows, OSX, Ubuntu, or any other desktop OS. The Android system image (Android OS, Android System, System UI) takes up well under 1GB. Apart from Google Play Services, The Google Apps, and some games, the vast majority of apps take up megabytes or maybe tens of megabytes.
RAM has ABSOLUTELY ZERO to do with in app lag experience. It only affects the time it takes to initially load an app (which is largely miniscule to begin with since you're only reading from NAND). Based on the numbers I posted above, 1GB is plenty to hold the OS and a few apps in memory. 2GB is more than you'll ever need. 3GB is unnecessary. Phones now coming out with 4GB is just downright silly, it's playing a paper specs game that has no actual impact on performance.
Related
I am thinking to tweak my Universal to 128 MB, but what exactly is the benefit?
I think the speed will go up because the os can put files in the ram but it is really noticeable?
Thanks
Fritte
Apps like Opera and Navigon will greatly profit from more RAM as they eat our measly 30 MB free RAM (best case) alive. You might see more speed on previously slow tasks like opening the Windows folder if the ROMs cache settings has been tweaked to suit the available RAM. But other than that programs just give you a message once you run out of memory and as there is no page file no slowdown occurs.
A year of 7 ago I owned an IPAQ 3780. On that device you could change the amount of memory and storage. More memory and less storage or otherwise.
According to the HTC website, the HTC diamond has:
ROM: 256 MB
RAM: 192 MB DDR SDRAM
Internal storage: 4 GB
Most roms with TF3D enabled have around 60MB ram left after booting.
Still it makes me wonder why we can't change that amount by making the internal storage smaller and add it to the memory. The device comes with a 4GB internal storage, so what is the point of having a large 'standard' storage. It is not that difficult to move pointers to 'my documents' to 'internal storage\my documents' etc.
But asking this, i think Rom builders already know there is a reason why the RAM can't be enlarged.
Please enlight me with the answer or start discussing how to build such a rom.
That's impossible, absolute different technologies in RAM and storage.. And btw, 64MB of RAM is used for video acceleration, and 60MB goes to Windows Mobile..
In your old Ipaq storage and memory were the same. When the battery was empty all your data was lost. Only the os was kept in the rom. Since Windows Mobile 5 all your saved data is in the rom - and cannot be lost when the battery is empty.
so you can not enlarge the rom by decreasing the ram - its completely different hardware.
Yep, those were the days of WM3 where that was an option to the end user. Even if such an option existed today, how many would actually subtracted the storage for more ram? Well, every user is different. The way I use Ram vs. Rom on this device is basically straight down the middle.
To each is own! The trick here is to work with what we have. I think we aren't doing to bad at all!
charlie42 said:
That's impossible, absolute different technologies in RAM and storage.. And btw, 64MB of RAM is used for video acceleration, and 60MB goes to Windows Mobile..
Click to expand...
Click to collapse
Oke, that answers it.
Though 64MB for video acceleration is a huge buffer for this 640*480 pixels screen. Stealing memory there?
xavalon said:
Oke, that answers it.
Though 64MB for video acceleration is a huge buffer for this 640*480 pixels screen. Stealing memory there?
Click to expand...
Click to collapse
Kindly check this thread:
http://forum.xda-developers.com/showthread.php?t=402747
My AT&T Tilt2, using Energy Rom now:
on the Hardware information tab, I see RAM Size: 288 MB, Flash Size 512 MB,and Storage Size 241.6 MB。
But, on the Memery/Main tab: Storage Total is 241.6 MB, and Program Total is 183.47 MB。
I think the RAM is used for Program, while the flash mem is for Storage. Then, my question is where the other memory is?
If you have a stock rom, the at&t bloatware takes up the majority of it.
I flash mine with a custom rom, which rids the phone of the bloat/crapware.
I also flash to a no manila version, which takes out the touchflo3d graphics, which I don't use, and that gives you more ram/memory/storage.
jrm163 said:
My AT&T Tilt2:
on the Hardware information tab, I see RAM Size: 288 MB, Flash Size 512 MB,and Storage Size 241.6 MB。
But, on the Memery/Main tab: Storage Total is 241.6 MB, and Program Total is 183.47 MB。
I think the RAM is used for Program, while the flash mem is for Storage. Then, my question is where the other memory is?
Click to expand...
Click to collapse
Those Storage and Program Totals are more-or-less the same with most ROMS....not that I've tried most ROMs but a sampling.
For example, on my Valky ROM the Storage Total is 271 MB and the Program Total is 181 MB.
I am not using the stock ROM now. Originally I thought it was the Stock ROM that has some function like ghost, which enables the OS to restore completely. Obviously I was wrong.
p51d007 said:
If you have a stock rom, the at&t bloatware takes up the majority of it.
I flash mine with a custom rom, which rids the phone of the bloat/crapware.
I also flash to a no manila version, which takes out the touchflo3d graphics, which I don't use, and that gives you more ram/memory/storage.
Click to expand...
Click to collapse
You are right. But where is the missing memery? What are they used for?
MCbrian said:
Those Storage and Program Totals are more-or-less the same with most ROMS....not that I've tried most ROMs but a sampling.
For example, on my Valky ROM the Storage Total is 271 MB and the Program Total is 181 MB.
Click to expand...
Click to collapse
What is it you think is missing?
The Hardware Information tab also list OS Program Memory under RAM and OS Memory under Flash size. The Memory Main tab doesn't list these totals, but they are in use by the OS.
The 288MB of RAM does indeed exist in your device, but the way the OS uses it makes much less of it appear in the Memory dialogue, as much of the RAM is not usable for programs (so there's no point in displaying it). 32MB of the 288MB is part of the baseband, and cannot actually be used for programs. Anywhere from around 8MB to 24MB of RAM is part of the Page Pool, which is somewhat like a HDD memory cache in Windows. In addition, some RAM is used for the framebuffer, the radio stack, and the XIP (OS kernel), among many other things.
There is an article on MSDN, written by the Windows Mobile team, which goes into slightly more detail about how RAM is actually used on a Windows Mobile device. But the short answer is that Windows Mobile uses a lot of RAM for critical, low-level functions which have RAM reserved for them. Windows Mobile decides it shouldn't display RAM that will never be used for running userspace applications, so the RAM displayed on the Memory applet is often much less than the actual hardware RAM present in the device.
DaveTheTytnIIGuy said:
the short answer is that Windows Mobile uses a lot of RAM for critical, low-level functions which have RAM reserved for them. Windows Mobile decides it shouldn't display RAM that will never be used for running userspace applications, so the RAM displayed on the Memory applet is often much less than the actual hardware RAM present in the device.
Click to expand...
Click to collapse
Thanks much for the explanation and the link to more explanation. I knew I'd read months ago...somewhere...that there was a good, non-mysterious explanation, but didn't spend the time to find it.
It is true that Desire HD ram only 623MB..? I've check with Android system info..
you are right!
my info (of quadrant) says i have 638 mb ram in total.
that is the total ram aMount of0 free RAM!!!
Pruikki said:
that is the total ram aMount of0 free RAM!!!
Click to expand...
Click to collapse
i dont think so, the programms says TOTAL amount of ram!
my free amount of ram is about 300-400 MB when with usual config.
Pruikki said:
that is the total ram aMount of0 free RAM!!!
Click to expand...
Click to collapse
Correct. The total amount is 768, but some is used for OS stuff.
Yeah first 130mb or so is reserved for system use. Stops apps from grabbing all the memory and making your phone lag.
Sent from my performance enhanced Desire HD
Not OS stuff, more for low-level hardware. Linux only sees ~624MB RAM. Some claim the rest is taken by Fastboot, but disabling it does not free it up.
I suspect it is probably used for GPU memory, unless there is some limitation on the max memory the OS can handle.
Another option is that it might be some kind of volatile filesystem.
Hmmm.
My desire hd says , gig in ram, used 411 MB and have 752 MB free.
syklitengutt said:
Hmmm.
My desire hd says , gig in ram, used 411 MB and have 752 MB free.
Click to expand...
Click to collapse
Somewhere, somehow, you have misread something.
Pics or it didn't happen!
Ok, here you go, sorry for crappy pics.
http://dl.dropbox.com/u/16646991/P1000015.JPG
http://dl.dropbox.com/u/16646991/P1000014.JPG
http://dl.dropbox.com/u/16646991/P1000013.JPG
http://dl.dropbox.com/u/16646991/P1000012.JPG
Bad pictures I know, but there you can see.
Not rootet, new OTA update as rom.
And I have allot of installed apps.
411 mb it says.
That is not RAM, it is the internal storage (NAND). It has about 1.5GB of usable space.
leppie said:
That is not RAM, it is the internal storage (NAND). It has about 1.5GB of usable space.
Click to expand...
Click to collapse
Ok, thanks, thought it was this it was about.
Sorry for messing up.
According to HTC it says 768 MB. but maybe some are reserved for system APP
DHD has 768MB all RAM memory, 640MB for apps, 128MB is isolated for the ARM7 processor that operation radio (radio = your all wireless connection)
DHD has 2GB nanad flash.
550MB for OS. (after update to 1.72 reduced to ~450MB)
1GB for data.
300MB for cache.
Sorry, OT.
@syklitengutt: How did you get so many icons on your power control widget? Are you on 2.2 or 2.2.1? I am getting only the default 5 icons and I am unable to change that.
seba84_2005 said:
DHD has 768MB all RAM memory, 640MB for apps, 128MB is isolated for the ARM7 processor that operation radio (radio = your all wireless connection)
DHD has 2GB nanad flash.
550MB for OS. (after update to 1.72 reduced to ~450MB)
1GB for data.
300MB for cache.
Click to expand...
Click to collapse
128mb is reserved for the chipset, but the majority of it is used by adreno as vram....
Try advanced power bar, its fully customizable
reply to this. ok
i have 653,561... so 653mb ram in my DHD. that is total memory showed by memory booster lite its freeware and its GOOD app.
so 653? why not showing 768? are there reserved memory for OS ? best i get to free ram was 510 mb free and 150 mb used... answers please
use GDE it uses less ram than sense. i pick GDE when rebooted and it saves about 10 to 20% of ram!!!!! GDE good.
Hello guys,I'm using BioHazard_W v.4 ROM, and the RAM usage of it's pretty high, how to lower the ram usage on it?
It's always over 240mb from 350, I wan't to tweak that RAM usage to 150-200 normaly, any advice on that?
Madzix said:
Hello guys,I'm using BioHazard_W v.4 ROM, and the RAM usage of it's pretty high, how to lower the ram usage on it?
It's always over 240mb from 350, I wan't to tweak that RAM usage to 150-200 normaly, any advice on that?
Click to expand...
Click to collapse
240 MB used out of 350 MB ... that means 110 MB free.
That's a respectable number.
Now let me tell you one interesting thing about Linux : free RAM is useless RAM.
Whenever possible, Linux will leave you with as low free RAM as possible, and use the rest of the RAM for caching. This will not only make the system goes faster, but -- in case of portable devices -- reduce power usage as most of the most-often used data is kept in memory, saving the device from having to access a storage media (which consumes more power than accessing the RAM).
So... if your system is not suffering from endless lags and redraws... just ignore the RAM usage.
pepoluan said:
240 MB used out of 350 MB ... that means 110 MB free.
That's a respectable number.
Now let me tell you one interesting thing about Linux : free RAM is useless RAM.
Whenever possible, Linux will leave you with as low free RAM as possible, and use the rest of the RAM for caching. This will not only make the system goes faster, but -- in case of portable devices -- reduce power usage as most of the most-often used data is kept in memory, saving the device from having to access a storage media (which consumes more power than accessing the RAM).
So... if your system is not suffering from endless lags and redraws... just ignore the RAM usage.
Click to expand...
Click to collapse
Btw, my phone had 40mb of RAM free right now when I checked, and I can't multitask successful, when I minimize something and open something else, then, when I decide to open the previous app, it reloads again, and I just wan't it to be on RAM and minimized.
Any suggestions how to make the multitaskin way better?
Madzix said:
Btw, my phone had 40mb of RAM free right now when I checked, and I can't multitask successful, when I minimize something and open something else, then, when I decide to open the previous app, it reloads again, and I just wan't it to be on RAM and minimized.
Any suggestions how to make the multitaskin way better?
Click to expand...
Click to collapse
In that case, try cutting down on apps that continuously run in the background.
In my phone, apps that run in the background are : Google+, Avast!, Pulse (update every 3 hours), Tasks+, Widgetsoid, and CPU Tuner. All other apps I prevent from starting using AutoStarts.
-- Galaxy W + DXKL1 + CM9 + xda --
pepoluan said:
In that case, try cutting down on apps that continuously run in the background.
In my phone, apps that run in the background are : Google+, Avast!, Pulse (update every 3 hours), Tasks+, Widgetsoid, and CPU Tuner. All other apps I prevent from starting using AutoStarts.
-- Galaxy W + DXKL1 + CM9 + xda --
Click to expand...
Click to collapse
Ok, will try.
But I found another solution for that.
http://forum.xda-developers.com/showthread.php?t=1908269
This thread.
That pimp tool is awesome, you can tweak multitasking, RAM, toucscreen smoothness.
Almost everything.