[Q] Nexus 5: set the size of devices as you want - Nexus 5 Q&A, Help & Troubleshooting

Hello,everyone!
I have a Nexus 5 whose ram size is about 2GB. Now, I want to change the ram size to 1G or anything else below 2.
Do you have any idea? If so, please share with us now. I'll appreciate that very much!
Someone told me that I might try the bootloader, but I havn't figured that out yet. Please help me out! Thanks again!

Hi,
But... Why do you want to reduce your RAM size????
RAM is allocated to user apps, system, GPU, etc... it's possible (for some devices) to re allocate the RAM for the GPU (a little more) for example at kernel level, but here you want to re allocate 1 Gb of RAM, seriously? Why? Even if it was possible, here what do you expect?
For other devices with an unlock bootloader it's the system partition size (I don't remember the exact name) you re allocate to be used for the user (apps), maybe it will be possible in the future for the N5?
But here, honestly, I don't uderstand why you want that

viking37 said:
Hi,
But... Why do you want to reduce your RAM size????
RAM is allocated to user apps, system, GPU, etc... it's possible (for some devices) to re allocate the RAM for the GPU (a little more) for example at kernel level, but here you want to re allocate 1 Gb of RAM, seriously? Why? Even if it was possible, here what do you expect?
For other devices with an unlock bootloader it's the system partition size (I don't remember the exact name) you re allocate to be used for the user (apps), maybe it will be possible in the future for the N5?
But here, honestly, I don't uderstand why you want that
Click to expand...
Click to collapse
Firstly, thanks for your response!
Now I'm doing a series of experiments on swap partition. For the ram size of N5 is a little too large to make use of the swap area I created.
So I want to make the ram size small enough so that the device could run out of memory and would swap things out to emmc(swap area).
Have I made it clear to you? Looking forward to your reply!:fingers-crossed:

Hi,
Yes it's a little clearer, maybe, but why do you want that? What kind of experimentation are you doing? It's totaly counter productive...
Some apps like Ram Manager for example (Play Store) can create a swap file, there is also some kernel like Faux123 with, grrr don't remember exactly the name, something like Zramswap or... not sure...
But you don't reduce the RAM size, on 2Gb, you have about 1,8 Gb free for the system, apps and that's all, you can't reduce this part. At the end with a clean and light system booted you have about 1,6 Gb free. What you want will virtualy increase the RAM size (with the swap file).
In any case with the app above, use it to create and use your swap file, open one or two "big" apps, a game and you will see that it is used...
Tweak also the OOM settings to run Out Of Memory earlier, see Google.
You want reduce the amount of free RAM not reduce the RAM size. For me it's not the same thing.
Or I don't understand again, and I'm sorry. But I don't see the point...
Sent from my LG-D802 using xda premium

viking37 said:
Hi,
Yes it's a little clearer, maybe, but why do you want that? What kind of experimentation are you doing? It's totaly counter productive...
Some apps like Ram Manager for example (Play Store) can create a swap file, there is also some kernel like Faux123 with, grrr don't remember exactly the name, something like Zramswap or... not sure...
But you don't reduce the RAM size, on 2Gb, you have about 1,8 Gb free for the system, apps and that's all, you can't reduce this part. At the end with a clean and light system booted you have about 1,6 Gb free. What you want will virtualy increase the RAM size (with the swap file).
In any case with the app above, use it to create and use your swap file, open one or two "big" apps, a game and you will see that it is used...
Tweak also the OOM settings to run Out Of Memory earlier, see Google.
You want reduce the amount of free RAM not reduce the RAM size. For me it's not the same thing.
Or I don't understand again, and I'm sorry. But I don't see the point...
Sent from my LG-D802 using xda premium
Click to expand...
Click to collapse
Well, actually it's quite simple. The Nexus 5's RAM size is too large(ok, it's about 1.8Gb free or less). Even After I have run a lot of apps, there are still serval hundred Mb RAM free(Maybe I can run more apps, but it doesn't worth. Or I should choose another device with smaller RAM size. But that's out of my budget). Yes, as you said I want to reduce the amount of free RAM. But reducing the RAM size can also work for me.
All in all, I want to see the benefit of swap area through the experimnt?
Ok, my friend, you have got that right? It's ok, if you still feel confused. I'm glad to tall with you!

Cant you increase swappiness?
-----------------------
Sent via tapatalk.
I do NOT reply to support queries over PM. Please keep support queries to the Q&A section, so that others may benefit

rootSU said:
Cant you increase swappiness?
-----------------------
Sent via tapatalk.
I do NOT reply to support queries over PM. Please keep support queries to the Q&A section, so that others may benefit
Click to expand...
Click to collapse
What do you mean?
Just now, I found a way out! Make large enough ramdisk in RAM. In that way, the RAM decresed!
Thank you all the same!

zxcoolid said:
What do you mean?
Just now, I found a way out! Make large enough ramdisk in RAM. In that way, the RAM decresed!
Thank you all the same!
Click to expand...
Click to collapse
For future info.
http://en.wikipedia.org/wiki/Swappiness

Just use scavenger pro and slight of hand pro. Then you never run out of memory and you can swap apps really fast!!!!
Sent from my SGH-M919 using xda app-developers app

rootSU said:
For future info.
http://en.wikipedia.org/wiki/Swappiness
Click to expand...
Click to collapse
Thanks for your message!

Related

Has a rom kernel been built with swap enabled?

I would give it a shot but I'm not sure how to make a compatible zip for revolver..
I get the function not implemented error when I try to swapon currently...
The fix...
"Try this: grep SWAP /usr/src/linux/.config CONFIG_SWAP=y
If you don't have it set then you need to configure the kernel set it. Swap is in the General setup section and it's not called swap, it's called "Support for paging of anonymous memory."
"
at the risk of sounding like a ****, I need to point out that the Transformer has 1GB RAM. That's twice as much as most Android phones. Do you really need a swapfile as well? Have you tried enabling Compcache or zRAM or whatever they're calling it these days? You'll probably run into the same issue (incompatible kernel), but you may have better results than a swapfile.
I made a swap partition, it wouldnt turn on.. i havent used zram and the other...never heard of them. I'm also aware that my transformer has 1gb of ram, but not all of it is accessible. I'd just like to squeeze as much performance as i can out of this thing and adding a swap partition seems like it would be useful.
pierut said:
but not all of it is accessable.
Click to expand...
Click to collapse
And how did you work that one out?
pierut said:
but not all of it is accessable.
Click to expand...
Click to collapse
The base dalvik system uses ram, and what it uses is excluded from the total in android.
Its all there, its all being used.
Another perfect display of how to slap some-one in the face using the shovel of logic.
Part is dedicated to the gpu.
Sent from my Transformer TF101 using xda premium
And none of this is even relevent to my original post.
Sent from my Transformer TF101 using xda premium
If my question was along the lines of 'how do i dwindle a discussion of performance improvement down to petty name-calling' it might have been useful insight.
Sent from my Transformer TF101 using xda premium
It is relevant to your OP as you provided a reason why you want a swap on the TF and the replies explain why your reasons are incorrect.
Having a swap file will not improve performance as the write speed of a SDcard/SSD is greater than the write speed of a ram module.
Which, considering how Android uses RAM, will slow the TF down.
Also, what "petty name calling" are you speaking of?
I wasn't asking if I was correct or not. I was asking if anyone had enabled swap. This has added performance for other android devices and I really don't see how this device is any different.
I'm sure there is a plethora of ways to handle ram, however I doubt that most people know these methods, myself included.
In reference to name-calling, a `slap in the face with the shovel of logic` might not be name-calling but it is certainly along the same lines.
Heh.
Swap is really only useful when your system is running out of free RAM frequently. I used to enable swap on my HTC Magic back in the day because of how little RAM it had. Nowadays though, it's not a problem - the Transformer has roughly five times the memory of my old Magic. Android is (in general) really light in its memory hunger, thanks to its intelligent paging system (inactive apps are paged out of main memory and remain in a suspended state).
Are you actually seeing situations where your device is running out of memory? I've never come across one. Just sayin'
i have instances that i assume are due to a lack of memory. laggyness of the ui... and the browser crashing when there is a resource intensive flash application running.
Sent from my Transformer TF101 using xda premium

in Stock ROM swap is enabled by default !

Check it yourself.
Type in terminal:
su
cat /proc/meminfo
There is about 128Mb of swap.
What's your opinion about this?
would it be a big deal?
walterddr said:
would it be a big deal?
Click to expand...
Click to collapse
Actually I don't like the idea of swap in O3D
It may cause lags because we already have a dual channel 512MB ram
Is it necessary to have more 128MB of swap but slower? Also vm have to decide which is swap which is not swap...waste more cpu
Pls correct me if i was wrong
I added some "#" in /system/bin/swap_enable.sh...check it out
Yes it can cause some lags when dropping things to swap etc.
but maybe it can be sometimes useful?
Why lg did it in the stock ROM?
Do you notice any speed up after disabling it?
Yes before add those # I had some lags when finish an asphalt6 round, now lags gone.
On the other hand I thought because LG had a lot of bloatware in stock rom so they wanted to make sure there are enough memory, and they used swap.
I removed a lot of things that I don't need, tweak the minfree, vm, disable swap and everything still fine.
futranbg said:
Actually I don't like the idea of swap in O3D
It may cause lags because we already have a dual channel 512MB ram
Is it necessary to have more 128MB of swap but slower? Also vm have to decide which is swap which is not swap...waste more cpu
Pls correct me if i was wrong
I added some "#" in /system/bin/swap_enable.sh...check it out
Click to expand...
Click to collapse
Well, lg has a lot of crap in its stock rom.. i think its necessary
futranbg said:
Yes before add those # I had some lags when finish an asphalt6 round, now lags gone.
On the other hand I thought because LG had a lot of bloatware in stock rom so they wanted to make sure there are enough memory, and they used swap.
I removed a lot of things that I don't need, tweak the minfree, vm, disable swap and everything still fine.
Click to expand...
Click to collapse
I did the same but it still shows about 36mb of swap after the restart. Strange. I hope there will not be the case when eg. camera app or sth else will crash because of the lack of ram
So there is still 36mb swap script somewhere.
IFLPI said:
I did the same but it still shows about 36mb of swap after the restart. Strange. I hope there will not be the case when eg. camera app or sth else will crash because of the lack of ram
So there is still 36mb swap script somewhere.
Click to expand...
Click to collapse
probably you need to add 3 # in the beginning of each line. i did it that way and now have no swap at all.
I was mistaken. It's Ok now.
So what should we, inexperienced users, do?
stefankorun said:
So what should we, inexperienced users, do?
Click to expand...
Click to collapse
Everybody can try. You need root explorer. Open /system/bin/swap_enable.sh as text edit. Then just add 1 # before each line (3 lines). Reboot and experience yourself.
You may enjoy it or not...but at least you have 1 more choice
Won't you have less free RAM by doing this?
mrbandwidth said:
Won't you have less free RAM by doing this?
Click to expand...
Click to collapse
As far as i know the physical ram amount will not bechanged. Only it will be re-emptied earlier than it is with swap, which is practically no change in total.
wow this is really quite an eye opener, to think that lg opted to use swap because they new 512mb wouldnt cut it is quite bad in my eyes. i wonder if we can increase the amount of swap and see if that makes for more free active ram? as i find games like GTA3 it bogs down as its quite a memory hungry game
it was much better if LG added 1gb of ram to our phone from the beginning thought. i decide to exchange my optimus 3d for a atrix, photon or galaxy s 2 because im a heavy multitasking user, 512mb is not enought.

2gb of ram?

Can someone explain this to me?
I don't know why, I have the same thing, but I think its related to how you would order a 16gb microsd and have, for instance 14.03 gb.
Some of it gets used by kernel space and video ram.
Think of this as a computer, a computer with a video card that doesn't have on board RAM will reserved some portion of the RAM for it's own used and will not show the full the full system RAM because of that portion being reserved. It's computer's nature.
scsa20 said:
Think of this as a computer, a computer with a video card that doesn't have on board RAM will reserved some portion of the RAM for it's own used and will not show the full the full system RAM because of that portion being reserved. It's computer's nature.
Click to expand...
Click to collapse
Great way of putting out
Sent from my SCH-I535 using xda premium
scsa20 said:
Think of this as a computer, a computer with a video card that doesn't have on board RAM will reserved some portion of the RAM for it's own used and will not show the full the full system RAM because of that portion being reserved. It's computer's nature.
Click to expand...
Click to collapse
Basically this.
If you look at any Android device, you'll notice it doesn't list the full amount of RAM that it physically has. It's just the nature of the operating system.
With 1.62GB reserved for use by applications, who can complain? That's equal to or more than pretty much any Android device in existence at the moment.
ExodusC said:
Basically this.
If you look at any Android device, you'll notice it doesn't list the full amount of RAM that it physically has. It's just the nature of the operating system.
With 1.62GB reserved for use by applications, who can complain? That's equal to or more than pretty much any Android device in existence at the moment.
Click to expand...
Click to collapse
I was pretty sure is more and ANY android phone in existance except US variants of gs3 (and Korean one too maybe?)
Sent from my Galaxy S3 using Tapatalk 2
Bloat sucks! Like others have said, roughly 380mb of ram is reserved for the system.
droidstyle said:
Bloat sucks! Like others have said, roughly 380mb of ram is reserved for the system.
Click to expand...
Click to collapse
Without that "bloat" your RAM wouldn't work at all.
Ansextra said:
Without that "bloat" your RAM wouldn't work at all.
Click to expand...
Click to collapse
Huh. Think about what you just said.
Bloat is by definition superfluous data that is not required. And the ram would still work, it just wouldn't have anything to run so it wouldn't have a function.
What you were probably trying to say was without the necessary required system files the ram would be largely useless. Of course that really isn't relevant in addressing what droidstyle said.
Sent from my htc_jewel using xda premium
Ansextra said:
Without that "bloat" your RAM wouldn't work at all.
Click to expand...
Click to collapse
derpy derp, please refer to bobloblaw's post!
can't see the attachment in the OP, but I assume based off the comments they are noticing the 1.6Gb available to user, which is as others have explained, after all the system gets it's memory and all
then out of that, at least on my CM10 JB build, with a lot of apps running, there is still 1GB of ram free, so there's 600Mb actively in use by apps and what not....
be really glad you have a full gigabyte of free ram, you could be like the Exynos guys and get a gimped 1Gb of ram and have only 100!150Mb free, and have your apps and stuff having to reload and stuff just to maintain free memory for overhead.
bobloblaw1 said:
Huh. Think about what you just said.
Bloat is by definition superfluous data that is not required. And the ram would still work, it just wouldn't have anything to run so it wouldn't have a function.
What you were probably trying to say was without the necessary required system files the ram would be largely useless. Of course that really isn't relevant in addressing what droidstyle said.
Sent from my htc_jewel using xda premium
Click to expand...
Click to collapse
Yes that is what I was trying to say. Thank you. But it is not irrelevant because by definition bloat would not be necessary files to my way of thinking. Bloat (the way I think of it) are files taking up space that are not necessary. This 380k is necessary.
the 380 is mostly necessary. you and droidstyle are both correct, no not all of that is useless stuff but honestly probably a majority of it is crap running in the background, stock apps and widgets and processes, that nobody will ever need.
Sent from my SPH-L710 using Tapatalk 2
TechSavvy2 said:
I was pretty sure is more and ANY android phone in existance except US variants of gs3 (and Korean one too maybe?)
Sent from my Galaxy S3 using Tapatalk 2
Click to expand...
Click to collapse
LG Optimus LTE II announced the same day as the Galaxy S III comes with 2 GB of RAM. Although, if I recall correctly, the usable memory is something like 1.2 GB.
Taehee. said:
LG Optimus LTE II announced the same day as the Galaxy S III comes with 2 GB of RAM. Although, if I recall correctly, the usable memory is something like 1.2 GB.
Click to expand...
Click to collapse
2GB of ram is quickly becoming the norm. It's nice after a couple days let say I have opened 60 apps, and when i go back to an app from the day before after using my phone the entire time, to be able to go back to that app and have it be right where i left it, having lost nothing......also it's nice to be able to run very involving launchers and not have to wait on it to reload from time to time......
bobloblaw1 said:
Huh. Think about what you just said.
Bloat is by definition superfluous data that is not required. And the ram would still work, it just wouldn't have anything to run so it wouldn't have a function.
What you were probably trying to say was without the necessary required system files the ram would be largely useless. Of course that really isn't relevant in addressing what droidstyle said.
Sent from my htc_jewel using xda premium
Click to expand...
Click to collapse
Your so called bloat isn't loaded into ram unless you launch it and I'm certain it isn't using the system reserved ram but would use the free ram pool. I would assume its the os and video memory that is using that space not some vzw apps you aren't using.
lol
piiman said:
Your so called bloat isn't loaded into ram unless you launch it and I'm certain it isn't using the system reserved ram but would use the free ram pool. I would assume its the os and video memory that is using that space not some vzw apps you aren't using.
Click to expand...
Click to collapse
a lot of the Samsung stuff is indeed loaded into RAM.
Sent from my SPH-L710 using Tapatalk 2
b4silver said:
Can someone explain this to me?
Click to expand...
Click to collapse
[/COLOR]Agree that it's being used by the video display. Video memory has to come from somewhere.

Leaky Ram

Hey Guys,
I am relatively new to the world of Android being an IOS man until I took the plunge and got this cracking little Nexus.
One thing I have come across is how I seem to be losing RAM over about a period of an hour or so. On a restart my RAM reads about 1.3gb free. After some time it goes to 900mb free. I have APPs like Advanced Task Manager freeing up RAM every hour but thought that someone may have come up with a software tweak or solution that may stem the flow.
I am running a rooted with standard ROM and ElementalX Kernel.
Cheers
Jason
jasonst165 said:
Hey Guys,
I am relatively new to the world of Android being an IOS man until I took the plunge and got this cracking little Nexus.
One thing I have come across is how I seem to be losing RAM over about a period of an hour or so. On a restart my RAM reads about 1.3gb free. After some time it goes to 900mb free. I have APPs like Advanced Task Manager freeing up RAM every hour but thought that someone may have come up with a software tweak or solution that may stem the flow.
I am running a rooted with standard ROM and ElementalX Kernel.
Cheers
Jason
Click to expand...
Click to collapse
using apps that use ram to then try free it up try remove these type of apps and check after a few hours
jasonst165 said:
Hey Guys,
I am relatively new to the world of Android being an IOS man until I took the plunge and got this cracking little Nexus.
One thing I have come across is how I seem to be losing RAM over about a period of an hour or so. On a restart my RAM reads about 1.3gb free. After some time it goes to 900mb free. I have APPs like Advanced Task Manager freeing up RAM every hour but thought that someone may have come up with a software tweak or solution that may stem the flow.
I am running a rooted with standard ROM and ElementalX Kernel.
Cheers
Jason
Click to expand...
Click to collapse
Thats not a issue , not in android the less free ram you have the better.. if you search google you'll know and also dont use any app killer.
There's really no need to use apps to free up ram. We got 2gb of ram
Sent from my Nexus 5 using XDA Premium 4 mobile app
Free ram is wasted ram, don't use any stupid task killers and forget about it
//Nexus 5//Nexus 4//HTC WFS//
So remove those APPs and it runs better with less RAM.
The revers of what Im used to :silly:
jasonst165 said:
So remove those APPs and it runs better with less RAM.
The revers of what Im used to :silly:
Click to expand...
Click to collapse
You could check RAM usage on iOS? (Genuine question, not a poke at Apple )
Always let android handle itself. I have used android since the HTC G1 and android keeps getting better and better managing itself. Don't use apps that help with the android system. They make it harder for the managing to do what it has to do. Let android do it.
Sent from my Nexus 5 using XDA Premium 4 mobile app
A memory leak is when a single app (or multiple apps) leak into memory. This would mean if you look in RAM, app1 is using 10MB. Then an hour later app1 is using 40MB, then an hour later, app1 is using 100MB. Its only a leak if the particular app is grabbing more memory and never releasing it.
What is described here is just RAM being used, which as already covered by everyone else, is a good thing
-----------------------
Sent via tapatalk.
I do NOT reply to support queries over PM. Please keep support queries to the Q&A section, so that others may benefit
As posted, let Android manage the RAM. It has become quite the mature operating system over the past few years. It will know when to remove an app from RAM when it needs to free some up.
As a general point of why you basically want less free RAM: RAM uses the same amount of power whether you have 2gb free or 1 byte free. The entire stick is powered on. When you cold-boot an app, it spins up the CPU to do what it needs to do to load it into memory (compile it in the case of a JIT compiler, etc). After you do what you want to do in that app, it's fine to keep in RAM. Again, that RAM is going to either be useful, or sit there empty, doing nothing. The advantage happens when/if you want to access that app in the future. If you offloaded it, the CPU has to spin up again (which uses power) and load it into memory. If it's still in memory, it just looks at the pointers in memory and addresses it. And this is where Android has matured and knows how to handle itself: when you leave all your apps open, open another one, and reach your RAM limit, Android knows which app to offload. I don't know the exact formula, but I'm betting time last accessed is a huge (heck, it could be the only; I simply don't know) factor.
And as @rootSU mentioned, this is all assuming normal behavior. If you do actually have a memory leak, that is bad, but you are describing normal RAM usage.

Help me with low memory configuration

I know I should buy better device ect. but I'm using smartphone with the 800mb of memory and 200mb of virtual I need a thread or suggestion what can I do [what will REALLY WORK] to optimize ram memory to be able to work with the apps like wattpad or excel ect. I don't want to install CM because of camera and radio, I'm using kitkat 4.4.2 I have root and CR
jaght said:
I know I should buy better device ect. but I'm using smartphone with the 800mb of memory and 200mb of virtual I need a thread or suggestion what can I do [what will REALLY WORK] to optimize ram memory to be able to work with the apps like wattpad or excel ect. I don't want to install CM because of camera and radio, I'm using kitkat 4.4.2 I have root and CR
Click to expand...
Click to collapse
With the level of today's mobile softwares, 800MB isn't enough.
There aren't enough tricks to make enough difference with 800MB to notice.
The hardware requirements of today's apps more than 800MB can handle. Your device is gonna be slow no matter you do.
Yes, you are correct, you need a better device.
I DO NOT PROVIDE HELP IN PM, KEEP IT IN THE THREADS WHERE EVERYONE CAN SHARE
Droidriven said:
With the level of today's mobile softwares, 800MB isn't enough.
There aren't enough tricks to make enough difference with 800MB to notice.
The hardware requirements of today's apps more than 800MB can handle. Your device is gonna be slow no matter you do.
Yes, you are correct, you need a better device.
I DO NOT PROVIDE HELP IN PM, KEEP IT IN THE THREADS WHERE EVERYONE CAN SHARE
Click to expand...
Click to collapse
this is not truth, I know it from own usage, but-
You are right... 2gb is easy to get today, but because I can't afford it... I need manipulate my cpu and ram to get the effects, even 300mb per app would be good to use, when I was using CM using excel or writing apps ect. seem so easy on my configuration, but I need stock rom unfortunately SO...
jaght said:
this is not truth, I know it from own usage, but-
You are right... 2gb is easy to get today, but because I can't afford it... I need manipulate my cpu and ram to get the effects, even 300mb per app would be good to use, when I was using CM using excel or writing apps ect. seem so easy on my configuration, but I need stock rom unfortunately SO...
Click to expand...
Click to collapse
I'm speaking from experience, I've had more than one device that had 800MB of RAM. They weren't the fastest then and that has been about 2 years or more. They'd be worse now.
Maybe you're just "satisfied" with its performance at that level.
I DO NOT PROVIDE HELP IN PM, KEEP IT IN THE THREADS WHERE EVERYONE CAN SHARE

Categories

Resources