Extra 14MB of RAM to userspace - G3 Developer Discussion [Developers Only]

Hello, I've successfully managed to allocate 14MB of RAM to userspace by removing the jtag feature and crash_fb_mem.
Kernel commit

waau said:
Hello, I've successfully managed to allocate 14MB of RAM to userspace by removing the jtag feature and crash_fb_mem.
Kernel commit
Click to expand...
Click to collapse
Good to know that especially crash_fb_mem isn't necessary for operation
the less waste the better

Related

Where is my memory?

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.

[Q] RAM usage.

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.

zram or swapfile?

hi all, I have a little question on s4 mini duos I9192.
using "free" or "meminfo" commands displays memory informations, the phisical ram displayed is 1,3 gb but the phone is declared 1,5 gb confused , so I thought it will be some zram but analising the memory its not zram.
by the way there is a swapfile of 1gb.
please can someone confirm this? I am playing with swappiness value and I must be sure if I touch zram or swapfile
screenshot attached
I'm guessing your using stock os as that uses a 1gb swap file. Zram is kernel dependant and I don't think stock makes use of this. Although our phones have 1.5gb RAM some of this is stolen by Android OS. The same with our 8gb storage which part of is stolen by Android again leaving us with around 5.5gb.
Would like to know how you get on with different swapiness values, and which you decided to settle on.
RuffBuster said:
I'm guessing your using stock os as that uses a 1gb swap file. Zram is kernel dependant and I don't think stock makes use of this. Although our phones have 1.5gb RAM some of this is stolen by Android OS. The same with our 8gb storage which part of is stolen by Android again leaving us with around 5.5gb.
Would like to know how you get on with different swapiness values, and which you decided to settle on.
Click to expand...
Click to collapse
Thanks, yes I'm on stock.
I noticed that the 1gb swapfile is little used; with swappiness 100 swapfile is used about 200mb and with swpss 20 about 40mb both after 1 day of use;
Also the used part tends to accumulate and grow from boot but I shutoff phone at night so swapfile resets at boot.
My idea was to delete swapfile to recovery space bit I can't, swapoff doesn't work.
Anyway I think phone is smoother with low swappiness and with medium usage I never suffered lack of ram problems.
hi !
swap & Zram are completely useless for a device like ours .....because we have enought RAM and enought power .
thes two are develloped and used before for old low and middle devices
the best is to grenify or freeze unused apps and services for a more lighten rom....
Loulou-13 said:
hi !
swap & Zram are completely useless for a device like ours .....because we have enought RAM and enought power .
thes two are develloped and used before for old low and middle devices
the best is to grenify or freeze unused apps and services for a more lighten rom....
Click to expand...
Click to collapse
Yes, already greenyfied all and removed all bloat and useless apks.
My doubt is why stock rom has a so large swapfile, a waste of space
?????????7
may be some one can help you right here dearly .

Increasing "RAM"

What are the possible ways of increasing RAM (either SWAP or ZRAM) except from rooting and installing a certain software? I've already searched but all I got was to use Roehsoft RAM Expander
Ram can't be increased rather learn to tune LMK (Low Memory Killer) and also add a low memory flag to build.prop

Question Has anyone added zram?

Hi all,
The main issue with this device for me is very clear, lack of memory and the memory management. The 2gb swap doesn't make any difference in my testing.
I think this device would benefit massively from zram or compressed ram as it has quite a strong CPU compared to the ram issues.
I guess we'd just need to unlock the bootloader, root the stock ROM and then turn on zram.
Has anyone tried it?
Many thanks

Categories

Resources