For the layman?
Please explain how it can help my phone, or if its worth it. Thanks.
http://lmgtfy.com/?q=android+compcache
-BMFC
Search dude.
sjbayer3 said:
For the layman?
Please explain how it can help my phone, or if its worth it. Thanks.
Click to expand...
Click to collapse
SEARCH. Come on man, you were smart enough to get to XDA, you should be smart enough to find out about Compcache.
http://forum.xda-developers.com/showthread.php?t=558614
Thanks for the technical information, but as I stated, I am much more interested in layman understanding.
What will it do for my G1?
How layman can you get?
Very roughly you have a finite amount of memory (RAM). When memory is accessed it is virtual addressing, so an application is given a piece of memory, but this isn't real RAM, the operating system manages this and maps it to where the data really is. Because of this system, the OS can give out more memory than is actually available. It can then store some of this memory on a storage medium and "swap" it with some other programmes memory when one is needed and the other isn't. This is how swap works.
With compcache, instead of storing the dormant memory on a hard disk it is compressed and stored in the RAM itself on a virtual disk. This takes up some RAM, but because it is compressed then more RAM is spare than if the data were left in memory as it is. Again this has the effect that more memory space can be handed out than the RAM that is really there.
Because Android manages applications so that when memory runs out it just closes applications running in the background, more applications can reside in the larger virtual memory space than before, making multi-tasking more pleasant and responsive.
"How laymen can you get? Blah blah blah virtual addressing blah blah blah dormant memory blah blah blah"
Come on man. He wants to know if it'll make his phone faster, but if there are any noticeable downsides too. I'd also like to know the answer to that.
Wow, you just learned how not to get help on XDA. Congratulations!
Konklone said:
"How laymen can you get? Blah blah blah virtual addressing blah blah blah dormant memory blah blah blah"
Come on man. He wants to know if it'll make his phone faster, but if there are any noticeable downsides too. I'd also like to know the answer to that.
Click to expand...
Click to collapse
If you don't want to take the effort to understand what the technology does...you dont need it
Konklone said:
"How laymen can you get? Blah blah blah virtual addressing blah blah blah dormant memory blah blah blah"
Come on man. He wants to know if it'll make his phone faster, but if there are any noticeable downsides too. I'd also like to know the answer to that.
Click to expand...
Click to collapse
RAM have stuff. More RAM make phone faster. Squish stuff in RAM. RAM have more free space. Phone go faster.
AdrianK said:
RAM have stuff. More RAM make phone faster. Squish stuff in RAM. RAM have more free space. Phone go faster.
Click to expand...
Click to collapse
As about as "Layman" as it gets!
compcache is a long lost Native American tribe that Android was able to discover and has brought to the forefront of Android users minds!
Layman's terms: compcache is the fastest of all the solutions used to increase "available" memory for our phones active processes, but is the most limited in actually expanding that limit. linux-swap on the SD card is the best solution for MASSIVE expansion needed to run things like Hero ROMs that are larger than the physical memory of our devices.
compache= compressed cache, btw
pjcforpres said:
compache= compressed cache, btw
Click to expand...
Click to collapse
noo compACHE is what you get after reading posts like that
AdrianK said:
RAM have stuff. More RAM make phone faster. Squish stuff in RAM. RAM have more free space. Phone go faster.
Click to expand...
Click to collapse
dope lol I love doing that
B-man007 said:
noo compACHE is what you get after reading posts like that
Click to expand...
Click to collapse
LOL! Ouch! It aches! It aches! I guess that is what I get for typing on my G1.
AdrianK said:
RAM have stuff. More RAM make phone faster. Squish stuff in RAM. RAM have more free space. Phone go faster.
Click to expand...
Click to collapse
best explanation EVER
here's my 2 cents...
take your closet, fill it with clothes... thats ram being filled
put clothes into airlock bag and suck air out, then put in closet, MORE SPACE!! thats compcache
Space is after all, the final frontier...
AdrianK said:
RAM have stuff. More RAM make phone faster. Squish stuff in RAM. RAM have more free space. Phone go faster.
Click to expand...
Click to collapse
Well, I understand it now.
AdamPI said:
How layman can you get?
Very roughly you have a finite amount of memory (RAM). When memory is accessed it is virtual addressing, so an application is given a piece of memory, but this isn't real RAM, the operating system manages this and maps it to where the data really is. Because of this system, the OS can give out more memory than is actually available. It can then store some of this memory on a storage medium and "swap" it with some other programmes memory when one is needed and the other isn't. This is how swap works.
With compcache, instead of storing the dormant memory on a hard disk it is compressed and stored in the RAM itself on a virtual disk. This takes up some RAM, but because it is compressed then more RAM is spare than if the data were left in memory as it is. Again this has the effect that more memory space can be handed out than the RAM that is really there.
Because Android manages applications so that when memory runs out it just closes applications running in the background, more applications can reside in the larger virtual memory space than before, making multi-tasking more pleasant and responsive.
Click to expand...
Click to collapse
Well said my friend
adriank said:
ram have stuff. More ram make phone faster. Squish stuff in ram. Ram have more free space. Phone go faster.
Click to expand...
Click to collapse
lmfao.... Epic win!!!!
senaia said:
best explanation EVER
here's my 2 cents...
take your closet, fill it with clothes... thats ram being filled
put clothes into airlock bag and suck air out, then put in closet, MORE SPACE!! thats compcache
Click to expand...
Click to collapse
Brilliant analogy!
Related
The specs in the HTC Dream list 192MB of ram and 256MB of rom. I have about 30MB of free ram..
So is android 2.1 really using the entire 162MB of ram?
Thanks
I don't know whether to laugh, cry or take the piss
shadowch31 said:
I don't know whether to laugh, cry or take the piss
Click to expand...
Click to collapse
lol ^^
ps i think g1 only has like 70mb (user available) the most i ever had free was between 50-60mb not sure what the limit is though... im sure its on here somewhere..
most of the time i only have 10mb free ram
This question is lame.
First off, with the right radio/spl combination, there is over 100 MB of RAM available for Android/Linux. The balance is allocated to the GPU/media, and RADIO PROCESSOR.
Free memory on Android is MEANINGLESS. It has an intelligent process killer. Based on process priorities, when there is insufficient RAM to run the software you are trying to run, it will kill off low priority processes to free up what you need. The correct behavior is for Android to keep everything running/loaded until the memory is needed for other processes, at which point it will kill low priority ones to make room.
As I previously read, out of the 512 MB of our O2X's, some 128-140 MB are reserved for the Tegra chip-set, and the rest of 380 MB are available to Android and applications.
With Froyo, there were usually 180-200 MB of memory free after booting/killing all apps, and like 90-130 MB free after normal usage. I'm not sure, but if I remember correctly, in the running apps screen, the sum of the used/available memory summed up to about the previous stated 380 MB.
After applying the GB update, after booting/killing all apps there are only 140 MB free and about 60 MB after some usage. If I go to Manage Apps -> Running apps, the sum of the used and available memory is around 310-320.
My question is: why is there less memory available in GB? Has LG increased the graphics memory from 128 MB to 192 MB? If yes, is it possible to change this allocation? Or is there a ROM that uses less graphics memory?
Maybe GB reports available memory differently, but it's definitely noticeable that there's less RAM available. If switching from browser to another app, with Froyo the page loaded was kept in memory, however with GB the page always has to be reloaded even if the switch lasted like 20-30 seconds.
Edit: I'd like to use less graphics memory and have more RAM so my apps run faster.
No the Vram is the same. The phone still has 380 mb ram to use for the OS and apps. Also free ram is wasted ram since apps are not cached so they will not launch faster.
taxas said:
No the Vram is the same. The phone still has 380 mb ram to use for the OS and apps. Also free ram is wasted ram since apps are not cached in for they will launch faster.
Click to expand...
Click to collapse
And therefore taskplanners are also not needed ;-)
KillerbeeNL said:
And therefore taskplanners are also not needed ;-)
Click to expand...
Click to collapse
Not completely true. Android kills automatically unneeded processes, that's true, but sometimes it happens that an app remains in background and uses the 100% of the CPU, so i use the task killers to terminate it.
Try Super charger, very efficient and not as resources consuming than apps. Search the dedicated thread.
And I don't think there is a way to free graphical memory. I don't think it's software driven but physical...
The only thing that had been made is to free the reserved memory for OTA LG service, that leaves you some more memory, but only available in some roms.
Striatum_bdr said:
Try Super charger, very efficient and not as resources consuming than apps. Search the dedicated thread.
And I don't think there is a way to free graphical memory. I don't think it's software driven but physical...
The only thing that had been made is to free the reserved memory for OTA LG service, that leaves you some more memory, but only available in some roms.
Click to expand...
Click to collapse
Its possible to give the GPU less memory, different defs have done it (i.e benee). But as far as i know most of them removed that tweak since it was causing alot of bugs.
And yes, free ram are most likely wasted ram.
Sent from my Optimus 2X using Tapatalk
If ya want to change vram look at this: https://raw.github.com/gist/1170959/73e5f41b1ad8b3bb65c8bd22d422a4fd877204a3/CarveoutMemory
It contains a little info about the things you need to change. Some skills required though
kiljacken said:
If ya want to change vram look at this: https://raw.github.com/gist/1170959/73e5f41b1ad8b3bb65c8bd22d422a4fd877204a3/CarveoutMemory
It contains a little info about the things you need to change. Some skills required though
Click to expand...
Click to collapse
Hi kiljacken !
I remember that you've made some times ago a kernel with 64mb more of ram...
Also for the stock rom...
butI can't find it anymore...
Any help?
Thanks for the replies guys!
It seems like if possible, it's very complicated to change the video memory allocation, so I'll leave it like that.
hey all!
i have question like that! im working on electronic factory and have no problems with solder out and in BGA chips even the smallest ones! now the question! if i will solder out the ram chip and solder back in 1GB ram chip of the same tipe and company(i have acces to all the part available on the market)?
oleg1981 said:
hey all!
i have question like that! im working on electronic factory and have no problems with solder out and in BGA chips even the smallest ones! now the question! if i will solder out the ram chip and solder back in 1GB ram chip of the same tipe and company(i have acces to all the part available on the market)?
Click to expand...
Click to collapse
How small is the solder required? Would be amazing if we could upgrade.
Sent from my LG-P990 using Tapatalk
oleg1981 said:
hey all!
i have question like that! im working on electronic factory and have no problems with solder out and in BGA chips even the smallest ones! now the question! if i will solder out the ram chip and solder back in 1GB ram chip of the same tipe and company(i have acces to all the part available on the market)?
Click to expand...
Click to collapse
I'm very unsure. I am sure though, that both kernel and boot image changes would be needed to run with the added memory
i think it's impposible to change the graphic memory size, maybe RAM hack? if you want to free RAM just use supercharger, i already used that and my free ram about 117-130 MB
It's completely possible, it's something that's controlled by the kernel.
Such kernels already were in the spring which reduced video memory by 64 Mb
Rusty! said:
It's completely possible, it's something that's controlled by the kernel.
Click to expand...
Click to collapse
so if I'm understanding correct if i will solder in new memory chip all i will need is to find how to change the ram value from 372 to 872?
oleg1981 said:
so if I'm understanding correct if i will solder in new memory chip all i will need is to find how to change the ram value from 372 to 872?
Click to expand...
Click to collapse
I suppose if LG's programmers were careful enough not to hard-code any values, the phone should detect the memory like a computer detects new RAM. However ROMs which target multiple devices with different RAM, like CM, shouldn't have such issues...
I would LOVE 1GB ram! What would such ram cost?
Guys, RAM amounts are hardcoded into the kernel, so a custom kernel would be needed to use the ram. IF it's even possible to use such amounts of RAM. There migth be limitations in the bootloader, which will cause problems, but kernel changes should be enough. If you try it on your device I would be glad to provide a kernel that supports that amount of RAM, but I don't think it's doable. AFAIK the RAM is tightly packed in the device with many other components. It might even be built into the SoC making it impossible to change. But IDK, feel free to try what you want, but remember it's your device that gets destroyed if something goes wrong.
Do it OP!
Sent from my Optimus 2X using Tapatalk
I know there are 512MB RAM in Droid 3, in addition to 16G internal storage. However, I don't know what go to the RAM. Are the bloatware going to take part of it, or they are simply stored in the 16G internal storage? What about the OS?
Hope I can get some insights on this. Thanks.
i dont understand. your post sounds as if you think programs are installed on the RAM. they arent. RAM is random access memory, programs arent stored on here, they use RAM to run commands. The 16gb is what your programs will be installed to
Not all 512MB will show as total memory its around 370-380 I think that is because the graphics use some of the RAM. Some bloatware will preload into the RAM as well as some of your apps. But when RAM is needed for the program you are currently running lower priority apps preloaded will close. So even if you see bloatware running in the background it cannot take away RAM when you need it.
The 16GB is flash memory for installing programs, etc. Android is not like older versions of Windows Mobile where apps were installed directly to the RAM so the 16GB of memory and the 512MB of RAM are for two totally different tasks.
Thank you.
After I posted the question, I did some research on google. Basically your replies are pretty in line with what other say. The 512MB RAM is used when running program, and OS too. Motorola says there is a 1.5 secured storage space in the phone. I guess that is where the app are stored physically. When being run, the app will be loaded into RAM.
Yes, the sum of used RAM and free is less than 512MB. I guess the difference goes to the OS and graphics. That's what I learn after posting the question. If there is anything you think might help understand these terms, please share.
Thanks for all the feedbacks.
newshook said:
Thank you.
After I posted the question, I did some research on google. Basically your replies are pretty in line with what other say. The 512MB RAM is used when running program, and OS too. Motorola says there is a 1.5 secured storage space in the phone. I guess that is where the app are stored physically. When being run, the app will be loaded into RAM.
Yes, the sum of used RAM and free is less than 512MB. I guess the difference goes to the OS and graphics. That's what I learn after posting the question. If there is anything you think might help understand these terms, please share.
Thanks for all the feedbacks.
Click to expand...
Click to collapse
The ram is memory, the internal storage (both the 16gig and the secured partition/the 1.5 gig) are hard drives
Hi,
I'm a bit surprised that if I add free memory and used memory from the Settings app the total is about 1.7 gb. Ain't we supposed to get 2gb? I hope sony didn't do the hdd trick (see wikipedia page on Kibibyte, I cannot post link as a junior member) and even so 2000000/1048576 = 1.907 ... where's my ram?
Under CPU-Z that show : 1.732Mb.
Your OS doesn't need RAM to function right?
Dsteppa said:
Your OS doesn't need RAM to function right?
Click to expand...
Click to collapse
yes it does but I thought it will be included in the "used memory"... if the OS takes 300 mb that's ok but why I only got 900 mb free when I kill all apps? I used to have a nexus 4 and with the same amount of memory on chip there was a *LOT* more available in the settings menu.
Geolm said:
yes it does but I thought it will be included in the "used memory"... if the OS takes 300 mb that's ok but why I only got 900 mb free when I kill all apps? I used to have a nexus 4 and with the same amount of memory on chip there was a *LOT* more available in the settings menu.
Click to expand...
Click to collapse
That 900MB figure is about the same I normally have free. Various apps and services take up about 800MB on my phone, which seems excessive but I've turned off all background stuff that I can (some Google and Xperia services just won't go away, however). The only good news is that Android will free up memory if it's needed so that 900MB is not a finite figure (at least that's what I assume).
Hmm. I generally have no more than about 300 mb free memory at any given moment. Even just a few minutes after reboot. No weird apps or excessive widgets. Do you guys really have 900 mb free? You can check your memory on the fly using Cool Tool from Google Play.
The Z3C has 2GB of RAM, don't worry. What you are missing is used by shared graphics memory. BTW: This is exactly the reason why the Z3 has 3GB of memory (instead of 2GB) for its screen resolution is full HD opposed to "only" HD on the Z3C.
Anyhow, is it really necessary to start another thread on the same topic if there already is one?
http://forum.xda-developers.com/z3-compact/general/ram-2gb-1-69gb-t2941487
sxtester said:
The Z3C has 2GB of RAM, don't worry. What you are missing is used by shared graphics memory. BTW: This is exactly the reason why the Z3 has 3GB of memory (instead of 2GB) for its screen resolution is full HD opposed to "only" HD on the Z3C.
Anyhow, is it really necessary to start another thread on the same topic if there already is one?
http://forum.xda-developers.com/z3-compact/general/ram-2gb-1-69gb-t2941487
Click to expand...
Click to collapse
I have never had any doubts about the two gigs. But how much free memory do you have on your Z3C after a reboot and after a few hours of typical usage? My other phones with this much ram have generally had a lot more memory available at any given moment. Not that *free* memory is of any particular use in android, but I'm still curious to see whether your Z3C's are the same.
Fruktsallad said:
I have never had any doubts about the two gigs. But how much free memory do you have on your Z3C after a reboot and after a few hours of typical usage? My other phones with this much ram have generally had a lot more memory available at any given moment. Not that *free* memory is of any particular use in android, but I'm still curious to see whether your Z3C's are the same.
Click to expand...
Click to collapse
When I boot up the phone and immediatly check it shows some 800MB of free memory. About 500 to 600MB after a couple of days, fluctuating though. However, don't think these numbers have any meaning for Android keeps as much in memory as possible in order to increase responsiveness. It also depends on the Apps installed and the bloat disabled/blocked. Further, comparing it to other phones you had earlier might also be misleading since the version of Android could be a different one, hence comparing apples to apples would just not be possible.
When I reboot the tablet and look the free ram memory only have 1,5 ram free, is it the normal when this tab has 3 gb ram? I have thunderrom and skyhigh kernel installed.
Yep. It's for most of the android processes and important things that need to run. I also get that much too.
Sent from SMT800 using Tapatalk.
-Helper around Tab S forums√
Active Everyday√
yeiyei0891 said:
When I reboot the tablet and look the free ram memory only have 1,5 ram free, is it the normal when this tab has 3 gb ram? I have thunderrom and skyhigh kernel installed.
Click to expand...
Click to collapse
Yup that's totally normal I'm running cm12 and it's using 1.5GB.
I'm on stock, non rooted and using ES Explorers task killer i can still have about 1.4GB free.
Ok, then 3gb RAM but really you can use less that half of it.
Yep. But hey at least we got 3 GB of ram instead of 2 GB!
Sent from SMT800 using Tapatalk.
-Helper around Tab S forums√
Active Everyday√
DUHAsianSKILLZ said:
Yep. But hey at least we got 3 GB of ram instead of 2 GB!
Sent from SMT800 using Tapatalk.
-Helper around Tab S forums√
Active Everyday√
Click to expand...
Click to collapse
Yeah i get 2GB to use because my system uses 1GB
yeiyei0891 said:
Ok, then 3gb RAM but really you can use less that half of it.
Click to expand...
Click to collapse
I do wish people would actually learn about RAM and why free RAM is actually wasted RAM.
A good summary can be found here: http://m.androidcentral.com/ram-what-it-how-its-used-and-why-you-shouldnt-care
foxmeister said:
I do wish people would actually learn about RAM and why free RAM is actually wasted RAM.
A good summary can be found here: http://m.androidcentral.com/ram-what-it-how-its-used-and-why-you-shouldnt-care
Click to expand...
Click to collapse
Yeah but otoh caching boat load of stuff into ram that won't be used is a waste of battery.
I look at the list of running processes with a system monitor and I have to say WTF does it just load every thing or what. It's running apps I don't even use any more but haven't uninstalled just in case. So if I don't want them running I have to freeze them. And that does not include all the system processes whose purpose I can't even tell. It's kind of nuts.
foxmeister said:
I do wish people would actually learn about RAM and why free RAM is actually wasted RAM.
A good summary can be found here: http://m.androidcentral.com/ram-what-it-how-its-used-and-why-you-shouldnt-care
Click to expand...
Click to collapse
Sorry but you should start to learn yourself. The RAM displayed as free is actually used as a file cache. Besides, Android killing apps in the background means that it takes longer to start a new app in a low RAM situation (because the new app needs to wait until the LMK cleared enough space) and of course you lose the context of the closed app (it needs to reload data from the internal storage or even worse from the web when you restart it).
TheGoD said:
Sorry but you should start to learn yourself. The RAM displayed as free is actually used as a file cache. Besides, Android killing apps in the background means that it takes longer to start a new app in a low RAM situation (because the new app needs to wait until the LMK cleared enough space) and of course you lose the context of the closed app (it needs to reload data from the internal storage or even worse from the web when you restart it).
Click to expand...
Click to collapse
Are you in a low RAM situation when you have 1GB free out of 3GB? NO! 0.5GB out of 3GB? NO!
Does it take a significant amount if time to reclaim resources when android does require additional RAM, because it genuinely is in a low RAM situation? No, because it unceremoniously terminates unused processes, releasing resources to the kernel almost immediately. This is very different from garbage collection to release unused memory from active processes.
Don't just believe me though - take it from the people who actually wrote the OS - http://android-developers.blogspot.de/2010/04/multitasking-android-way.html?m=1
It's also worth saying that you've also validated my statement "Free RAM is wasted RAM" by saying that the OS "uses" free RAM as a file cache.
All that being said, the context of this entire thread is why the OS is "using" 1.5GB out of 3GB pretty much at boot. All I've said is why this is perfectly normal, and in the general usage case, actually not undesirable.
Of couse there will be specific usage cases, where this is not going to be the optimum approach, but this is only going to affect a very small minority of users, with extremely memory demanding applications.
barth2 said:
Yeah but otoh caching boat load of stuff into ram that won't be used is a waste of battery.
Click to expand...
Click to collapse
No. RAM impact on battery life is, for all practical purposes, insensitive to the amount of RAM being used. When sections of RAM are clear, the locations are not zeroed out or anything. Instead the space is just added to a free space table. Stuff in RAM not being used does not waste battery. The exception to this is if that RAM is being occupied by a misbehaving program that is driving CPU usage.
foxmeister said:
Are you in a low RAM situation when you have 1GB free out of 3GB? NO! 0.5GB out of 3GB? NO!
Click to expand...
Click to collapse
Foxmeister is exactly right. In nearly all real world cases, higher RAM usage leads to faster performance and better battery life.
GeorgeP said:
No. RAM impact on battery life is, for all practical purposes, insensitive to the amount of RAM being used. When sections of RAM are clear, the locations are not zeroed out or anything. Instead the space is just added to a free space table. Stuff in RAM not being used does not waste battery. The exception to this is if that RAM is being occupied by a misbehaving program that is driving CPU usage.
Foxmeister is exactly right. In nearly all real world cases, higher RAM usage leads to faster performance and better battery life.
Click to expand...
Click to collapse
No, but you still have to get the data into RAM. That takes power, which it is wasted if the data is never used.
barth2 said:
No, but you still have to get the data into RAM. That takes power, which it is wasted if the data is never used.
Click to expand...
Click to collapse
It's a trade off - preload the processes and data so that they can be accessed far more quickly (less lag) if and when required. Once in memory, if they are not being used the battery drain is negligible.
The reduction in perceived lag is *far* greater than any battery drain.
Regards,
Dave
barth2 said:
No, but you still have to get the data into RAM. That takes power, which it is wasted if the data is never used.
Click to expand...
Click to collapse
LOL! Now are in angels dancing on a the head of a pin territory:laugh:
GeorgeP said:
LOL! Now are in angels dancing on a the head of a pin territory:laugh:
Click to expand...
Click to collapse
Lag is mostly a function of user expectation.
When you open a new app that is not running, you expect a delay. So as long as it's not excessively long, you don't feel lag. unnecessary preloading then just increases bootup time and long boot up time DOES bother people.
Now it makes sense to preload frequently used apps and some system apps that have high probability of being needed. But what I was talking about is seeing apps I used once once weeks ago still get loaded, while some apps I use every session, like my browser, not loaded on start up. The algorithm needs tweaking.
(Large apps like games have long load time, but you are not going to cache those so they are not in the conversation.)
Most lags people experience is in app lag. It's mostly due to loading graphics onto the screen, screen painting, and garbage collection.
What baffles me is I have an iPad 3 (there have been 4 generations of iPads since then) , which on paper is like a Toyota Camry compared to the Tab S BMW 300. And yet on many same apps the iPad feels smoother, scrolling around is less jerky. The only place where the Tab S is superior is 3d games like asphalt with high details and because it has 3x memory, apps need reloading less.
barth2 said:
Lag is mostly a function of user expectation.
When you open a new app that is not running, you expect a delay. So as long as it's not excessively long, you don't feel lag. unnecessary preloading then just increases bootup time and long boot up time DOES bother people.
Click to expand...
Click to collapse
The vast majority of users (i.e. the sort of user who doesn't frequent sites like XDA) probably don't reboot their tablets/phones very often at all, so most people probably aren't that bothered.
I rather suspect that the engineers at Google have experimented with an awful lot of different strategies, before settling on what we have now.
Is it perfect? No. Like everything software related, it could do with improvement but this is always a continuous, on going process
Regards,
Dave