[Q] Turning off ZRAM not increasing normal available RAM? - Android Q&A, Help & Troubleshooting

I have a Gionee Pioneer P3. It comes with ZRAM enabled by default. See Screenshot
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
That's over 300MB for ZRAM. I'd like to disable this zram so that I will have more RAM. I ran swapoff /dev/block/zram0 to disable zram. It did get disabled as seen in the screenshot above. However, when I run "free" command, I see that the amount of RAM has not increased.
Could somebody please tell me what is happening here? How can I make the zram partition available to normal RAM?

@davidheis zram doesn't use a partition to enable swap, instead it just reserves a bit of real RAM and compresses pages in there, so it's really just a virtual swap. From the looks of it 300MB is fas too much though but anyway the free command won't see this, all it's showing is the total amount of memory available to the user, so disabling zram won't make any difference because as far as it's concerned it doesn't make any difference to the amount of physical memory available.

HTCDreamOn said:
@davidheis zram doesn't use a partition to enable swap, instead it just reserves a bit of real RAM and compresses pages in there, so it's really just a virtual swap. From the looks of it 300MB is fas too much though but anyway the free command won't see this, all it's showing is the total amount of memory available to the user, so disabling zram won't make any difference because as far as it's concerned it doesn't make any difference to the amount of physical memory available.
Click to expand...
Click to collapse
Will it have any effect on game performance if I disable ZRAM? I'm guessing that games will run better with zram disabled because, then, there will be more normal RAM for games to run and the processor will not have to waste time compressing-decompressing stuff. Is this right?
If there is a significant gain by disabling it, I'm planning to disable it permanently.
Sent from my Pioneer_P3 using xda app-developers app

davidheis said:
Will it have any effect on game performance if I disable ZRAM? I'm guessing that games will run better with zram disabled because, then, there will be more normal RAM for games to run and the processor will not have to waste time compressing-decompressing stuff. Is this right?
If there is a significant gain by disabling it, I'm planning to disable it permanently.
Sent from my Pioneer_P3 using xda app-developers app
Click to expand...
Click to collapse
Yeah I expect it will, you might just want to test with and without. Zram is probably better for multitasking, whereas with a game you just want a large chunk of free ram which you want to load the game into so yeah disabling it would be better. If they're still not good then you'll need physically swap instead. There are scripts and even apps to do this.

with Kernel Adiutor or SP Kernel Manager you can alter the size of the zram0 block in the Virtual Memory section of the app. Ticking the On Boot toggle button you can then peek on the commands executed by going in the On Boot section. From there you could create a startup script with only parts of the commands or you could just set a really small size for zram0 like 8mb.
I haven't tried it yet but apps2sd allows you to create and manage init.d startup scripts.
It is obvious that I am talking only about rooted devices.
edit: found out you can delete boot cmds individually in SP Kernel Manager

Related

why samsung vibrant not use 512 ram?

My phone is Samsung Vibrant!
I had a question.
Why samsung vibrant not use 512 ram?
I'm use tast manage.In Summary,it display 326mb ram!
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
The Android OS itself needs some RAM for vital phone functions, SMS functions, etc. and the video card (PowerVR SGX 540) needs some dedicated memory. But how much RAM do you really need? Do you multitask 10 apps at a time?
duongthanhcong said:
My phone is Samsung Vibrant!
I had a question.
Why samsung vibrant not use 512 ram?
I'm use tast manage.In Summary,it display 326mb ram!
Click to expand...
Click to collapse
Like was mentioned. The lack of 512 "max" memory is because of the dedicated memory for video, just like any other motherboard with onboard video.
XPLANE9 said:
The Android OS itself needs some RAM for vital phone functions, SMS functions, etc. and the video card (PowerVR SGX 540) needs some dedicated memory. But how much RAM do you really need? Do you multitask 10 apps at a time?
Click to expand...
Click to collapse
I want free about >100mb ram. And I do not run 10 with a time multitasking.
MWBehr said:
Like was mentioned. The lack of 512 "max" memory is because of the dedicated memory for video, just like any other motherboard with onboard video.
Click to expand...
Click to collapse
I thought the max was 512 (including memory for video)
duongthanhcong said:
I want free about >100mb ram.
Click to expand...
Click to collapse
Why?
what good does unused ram do you?
Unused ram is what it is, unused and wasted ram. Google will optimize the OS for our hummingbirds as the Nexus s uses the same SoC, so our phones will be up to date for at least a year. Android is efficient with RAM management so don't worry, you will rarely run out of RAM. Even the original Droid with only 256 mb ram rarely had issues.
Moved of: Samsung Vibrant > Vibrant General
To: Samsung Vibrant > Vibrant Q&A
Please put your questions to: Vibrant Q&A

[Q] How can I get More RAM?

Just wanted to know if there was a way to increase my Free RAM on this device. Some ROM's I have run have about 150megs free while others have less, the current ROM I running has 200megs free. Other than killing a running app or task, is there a way to free up more? Or is this just how this device works?
phillymade said:
Just wanted to know if there was a way to increase my Free RAM on this device. Some ROM's I have run have about 150megs free while others have less, the current ROM I running has 200megs free. Other than killing a running app or task, is there a way to free up more? Or is this just how this device works?
Click to expand...
Click to collapse
I've tried lots of roms and none had more free ram than UR Rom. But it does take more time to set up than other roms because its light, which is great IMO. O wish it had 2gb of ram like the S3. If it did it would be perfect. By the way I hate the s3.
phillymade said:
Just wanted to know if there was a way to increase my Free RAM on this device. Some ROM's I have run have about 150megs free while others have less, the current ROM I running has 200megs free. Other than killing a running app or task, is there a way to free up more? Or is this just how this device works?
Click to expand...
Click to collapse
If your running sense and dont mind disabling sense aspects of your rom, you can freeze sense and run another launcher like ADW. When i was running the older viper i did see on average another 100 megs of ram open.
Or you could go aosp and win right there just saying
sent from my LTEvo
pimpol10 said:
I've tried lots of roms and none had more free ram than UR Rom. But it does take more time to set up than other roms because its light, which is great IMO. O wish it had 2gb of ram like the S3. If it did it would be perfect. By the way I hate the s3.
Click to expand...
Click to collapse
UR is the rom I running now. I would like to keep sense, I understand that freezing/removing will lighten it up. So until CM is fully functioning, I want to try to make the most of what I have.
I'll probably add swap when I get around to playing with the kernel in the mean time if u have tasker u can set up a profile to bulletproof apps, I was pissed when dolphin closed while watching hulu on the EVO LTE, it has 2x the ram of my og EVO but less avaible for me to use
Tasker profile active when dolphin running in foreground:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}

RAM Management

As you know, Android integrated a Memory Management Mechanism that allow system to kill some apps to free RAM for those RAM-tiger apps like games and browsers.
That's good, but it's quite annoying sometimes, when I quit a game or browser the home launcher always take several seconds to reload icons and widgets.
I hope Launcher,Contacts,Phone,SMS these frequently-used apps can be LOCKED INTO RAM so it can starts quickly when I need it.
So I'm looking for some app can Lock app into RAM, but I've found nothing I want.
Then I remembered there is a Memory Management function in DX Toolbox might be useful more or less.
There is 4 settings in DX Toolbox:
first is system default setting(can not be changed), and the other 3 are DX Toolbox's 3 different settings:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
There is only 19+29+24+37+49+43=201mb RAM of the system default setting:
but there is 227+113=340mb RAM in total of my ROM:
So I modified one of the settings like this, 30+30+65+65+70+80=340mb:
Then I just wanna know am I correct.....?
And how should I set these values.....?
If you ask me, I rather you go ask Zeppelinrox, the God of Android-Ram-Manager
Sent from my ST18i using Tapatalk 2
Pim My Rom can lock apps in the memory - but I don't think it's that useful because Ray only has 512mb.
The latest CM10 build is very fast - so much so that I don't really think such tweaks are really necessary.
Ultimately the Ray is not a power user phone, I'm amazed what the developers here have managed to do, but it's limited by its hardware and can only be taken so far.
Nothing will work for it since xperia ray only have 400mb ram "why you guys say 512mb? check by your self thats a sony lie sometimes we have only 358mb" the only thing xperia ray users can do for ram is use some apps who can help the only one's i found are:
Ram Manager Pro
Speed booster
Ram booster pro
Those one's are the only hope to get a... decent ram management
YeoZy96 said:
If you ask me, I rather you go ask Zeppelinrox, the God of Android-Ram-Manager
Sent from my ST18i using Tapatalk 2
Click to expand...
Click to collapse
Yeah thats true...
Sent from my ST18i

[APP] Ram Manager Pro ## << Extreme performance>>##

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
ROOT IS REQUIRED!!!
EACH ROOT USER MUST HAVE THIS APPLICATION!
IF YOU FIND A BUG OR IF YOU HAVE SOME PROBLEM, CONTACT ME BEFORE YOU GIVE LOW RATING, PLEASE.
This application optimizes the RAM of all android devices and improves the performance in all directions. We tested the best RAM balance which makes your system as fast as possible. Lots of running applications with enough free memory will not be a problem for your device. This is the best solution for all who have problem with the free memory, with the multitasking, with slow swapping between applications or with low performance.
ADVANTAGES OF PRO:
★No ads
★All features
★Widget
★Faster support
★More frequent updates
★You can support development
FEATURES:
★Balance - Option which makes your RAM to the best optimization, this option is for everyday using. Use this option when you want to have fast phone without lags.
★More free memory - This option is nearly the same as Balance, but this option should be advantageous for users who have more RAM than 512 MB. This option gives you more free memory but a bit reduces multitasking.
★More multitasking - This option is nearly the same as Balance, but this option should be advantageous for users who have less RAM than 512 MB. This option gives you more multitasking, but a bit reduces free memory.
★Hard gaming - Option which stabilizes your RAM for playing hardest games. Use this option for games which lag on your phone. Your games will run smooth without lags.
★Hard multitasking - Option for users which are really hard working on their phones. You can have a lot of running apps and quickly switch between them without lags.
★Default (Samsung) - Default settings by Samsung, these settings are also used by LG, HTC, etc.
★Default (Nexus S) - Default settings which are used by all Google devices.
★Default - This option reverts your RAM to your default settings, which you had before you installed this app.
★Set on boot - Saves all your settings on boot
★Lock launcher in memory - Prevents restarting your launcher
★Kill all apps - Cleans your memory
★VM Heap size - It is a maximal size in MB which application can use for its data
★Swap file - Improves a performance but may degrade your SD card life
★Memory info - Shows informations of your memory
★Memory graph - Shows your free and used memory
★Widget (Light or dark theme)
★You can switch between all options without rebooting
★Languages - English, Czech, Slovak, Korean, Italian, Croatian, Polish, French, Russian, Greek, Chinese
DO NOT USE RAM SCRIPTS AND TWEAKS!!!
If you want be really sure that my application works, I recommend to not use any RAM scripts and tweaks.
Re: [APP] Ram Manager Pro ## << Extreme performance>>##
Dont post any paid apps here... No piracy on xda...
Sent from my Xperia Neo V using xda app-developers app
Do not post warez!
If a piece of software requires you to pay to use it, then pay for it.
We do not accept warez nor do we permit any member to promote or describe ways in which Warez, cracks, serial codes or other means of avoiding payment, can be obtained.
This is a site of developers, i.e. the sort of people who create such software.
When you cheat a software developer, you cheat us as a community.
Thread Closed.

4.2.2 RAM ? : Memory leak still exists !

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I observed killer consumption of RAM in leaked 4.2.2 ; yes I know it's not official ergo not perfect but I wanted to ask if your riding the same boat ? and hope its fixed with official release.
ps. Not complaining or anything. I love the leak and its fluid too. just wanted to crosscheck the numbers.
Sent from the State where marijuana is not illegal
Why does it matter?... I don't understand why people don't get how Linux based OS's... If you're not having problems, stop looking for some.
Why ask why it matters? If you can't answer don't answer, he obviously wants to know for a reason lol
------------------------------------------------
Sent from my right hand, which is surprisingly not busy right now.
I can answer it perfectly fine. Your post added nothing. If the phone is running fine and its fluid, why try to find something wrong with it?... Its a Linux based system, it caches it in the RAM, everything it can so that it can be accessed faster. Don't worry about it.
b-eock said:
Why does it matter?... I don't understand why people don't get how Linux based OS's... If you're not having problems, stop looking for some.
Click to expand...
Click to collapse
this is the exact condescending reply I was not looking for. I know how Linux works. I just wanted to know why 70 mb was remaining when same processes on Previous firmware was around 200mb + . I know you can only sing free ram is wasted ram . except that you don't foool me. Thank you
sent from the State where marijuana is not illegal
LMK.
That's why. Don't know what it is, search.
b-eock said:
I can answer it perfectly fine. Your post added nothing. If the phone is running fine and its fluid, why try to find something wrong with it?... Its a Linux based system, it caches it in the RAM, everything it can so that it can be accessed faster. Don't worry about it.
Click to expand...
Click to collapse
I am not looking for problem. I just seek I formation. I made it clear in the post. You should atleast take a sec before posting and read the OP
sent from the State where marijuana is not illegal
Actually this is a problem. I know its linux and its how it handle memory etc etc but we are talking about memory leak, after some usage the memory used by apps can not be released by android task killers and it keep getting bad until a point when even if you open settings the launcher gets killed. It's a plague on all touchwiz roms and in my opinion the most frustrating part of this phone
b-eock said:
LMK.
That's why. Don't know what it is, search.
Click to expand...
Click to collapse
you ever tried to open 2-3 apps when memory is too low ? it will close 2nd app always its a very big problem and LMK cant fix it whenever your notes closed without save you will understand that, its biggest problem in android and most annoying 1. and on 4.2.2 leak because of low ram games crash too like rr3 and real boxing
So which app is memory leaking in the screen shot? How many MB of RAM is leaking and at what rate?
Sent from my GT-I9300 using Tapatalk 2
Minimize on unnecessary apps ea. instead of installing X app that i know is accessible via browser then avoid installing said app. Well that's my basis for apps that I install

Categories

Resources