I'm not subscribed to this channel so when I clicked on this video I was expecting a poor explanation that basically ended at the 9 minute mark in this video. Super surprised at how in depth this went and how bi-partisan the video was considering the channel name. I suppose the name doesn't summarize the views of the channel here.
careful there. he's right in some aspects, but wrong in others. There are contradictions within his own statements. For example he says that the amount of RAM needed by Android app is certainly not double three seconds after showing a graph stating the RUclips app consumes literally more than the double. I've watch the whole thing and honestly a bunch of red flags were raised throughout the whole video. I say be cautious.
Yes ,Android did indeed use double the ram, but for one app only. In other situations Apple used more and as Gary explained, after averaging it all out, the Android system used approx 6% more ram overall. You need to stop cherry picking information to suit your argument and see the whole picture. Please feel free to reply in your own video explaining where and why Gary is wrong. Oh, you're NOT actually a software engineer!? Oops!
@@IHateYTIdentifiers 90% of the major ones haven't got a clue what they're talking about or more specific things happening under the hood. they're not hardware knowledgeable in the slightest...except for Linus tbh(when he actually does reviews)
this is just due to downloading more things over time... android has launchers, icon packs and other fun stuff that you put on and it may slow down your phone over time. all you need to do like yung tedbounty said, just backup all the stuff and factory reset
So at a basic standpoint, iOS solves the low RAM problem through software, while Android went with the hardware approach, if I understood the details correctly.
Android uses compressed swap files in RAM. Phone manufacturers may choose to have that enabled or disabled regardless the RAM capacity. I have 1GB in one 2 in another. ZSWAP enabled on both by default. I. wish xz compression was used though. Additional space savings outweigh speed disadvantages. I used it on an athlon xp with 2GB RAM. xz beat the default handily in overall performance and stability.
@@gingerboy9170 It's too bad Apple products are engineered to break if looked at wrong and expensive to repair the way Apple approves even if there's a cheap fix.
@@jasonlisonbee dude... Honestly I'm an Android fan...😅 The only thing that makes me admire at iphones is their speed and stability of the softwares..., I hate every other aspect of the Apple.....😂
Dr Reform yeah ive used android too almost a year ago. The apps no the android still runs on the background thats why you can torrent on android. Whereas on iOS, its suspends the app on the background. And the resumes when you re-launched it.
Gary: Appreciate both operating systems and see the beauty of different technology. Android fanboy: But, but, iOS still sucks and has a shitty low resolution screen!!! Apple fanboy: Keep using your lagdroid phone then!!! This war never ends, sigh.
It's sad how you have to mention that you're not a fanboy when mentioning something positive about either sides as Gary did "I'm not an apple fan, but I have to say I'm impressed by how iOS handles low memory situations with background apps" otherwise he'd get mocked for being a fanboy
for fanboy this is war. but for me,it seems a battle that give advantages for human. i mean this war make ios and android become more mature, fast, and simple
Apple also uses compressed memory since iOS 7 so it is probably compression. Also, for iOS, it can ask apps to purge cache, etc so the app is still running but it may have to do computation again, etc. Another thing iOS can do is it can purge memory-mapped files. Any file that is copied to RAM but not changed in RAM can be evicted. If an app needs it again that part of the file is immediately loaded from flash. Keep in mind that flash memory in iOS is usually faster than flash in Android as well, so that could also make a difference. Also, part of the reason apps use less memory is that the Java runtime may use more memory though ART (Android Runtime) replaced Delvik. Another thing is that graphics in iOS can be smaller due to the limited set of iPhones (so they can be exact sizes needed). Another thing I can think of is that if an app uses web resources then webkit is used (which is more efficient than Blink in low-memory scenarios (as can be seen in Chrome vs Safari on the Desktop)).
@@stephensnell5707 Ironically, what you posted is false. Benchmarks of memory usage of apps have shown over and over. In addition, I forgot to mention that Android’s garbage collection also leads to higher memory usage (and unexpected pauses which can be mitigated) vs Automatic Reference Counting (ARC). Android does have its own equivalent of compressed memory and purging memory caches, however
@@ckingpro I know what I am on about you fathead as I happen to use an Android Smartphone and I find Android very efficient at handling the apps I use and the memory never runs out as I close apps when I am done with them,I do that to stop them running while my phone is locked(in other words to stop background usage) So stop calling me a liar and piss off
RAM is essential for the way Android works. Your Android device has the capabilties defined by the collection of apps you install. Those apps can and do run in the background to dynamically extend the native abilties of Android. iOS cannot do this to anything like the same degree.
You are right but RAM is a marketing tool, I couldn't ever imagine needing 6GB of ram on my phone at the minute. I had 3 GB on a phone running MIUI (which uses a fair bit of ram just for the UI) and never once cut into the 3rd GB, I even had 3 games running at one point. The problem is your average user either doesn't know what RAM is or thinks it makes their device faster simply by having more which simply is not the case in most circumstances, but RAM is cheap for manufactures to add more and use it as an extra selling point, much like what we've seen in the low and mid end GPU market.
Duncan Pringle the way Android divides up your RAM means that each app only gets a fraction of the available RAM so that you get multitasking without needing to swap (there is not swap on an Android phone - unless you root it and configure it). A galaxy S2 with 1G of RAM would kill an app that tried to use more than 64M. A nexus 5 with 2G would only allow 192M for an app. This limit is relaxed for apps published as requiring "large heap". iOS does not limit the memory used by apps because it actively suspends and kills background apps. This makes large RAM devices not as important on iOS.
Thanks for an unbiased video here. I just got an iPhone 7 Plus and really like it, after years of using Android. I did wonder why iOS seemed like it was faster and more capable with the same amount of RAM, and your video has helped me understand it a great deal. I appreciate your time and helpful explination.
@@cooltwittertag Yeah no, I've had phones on Android jellybean, kitkat, lollipop, marshmallows, nougat, and now my current phone is on oreo 8.0 They're no where near the optimization of IOS.
The car is too slow. Easy for engineer no. 1. Put a bigger engine in it. Another engineer (no. 2) improves the transmission, reduces the weight and improves the aeoridynamic. Engineer no. 2 still has the option to swap the engine ... So yes Android uses more RAM.
Gary used the nexus 5x wich have stock Android and it doesn't need a lot of ram like in touchwiz or MI UI or any skin on top of Android, The phone will use more Ram than a stock Android phone IMO and ios is stock so it doesn't need as much RAM as a skinned out Samsung touchwiz phone.
DT B he used the 5x because it's close to stock. stock Android vs stock iOS is the only fair way of comparing them. people would complain about the fact that he's using a device with a heavy skin on it and that it's not fair because it's not stock Android. I've had an Android phone that had a 2000mAh battery, 1gb of RAM, 480p display, plastic screen, and a Snapdragon 410 processor. that phone was better than the iPhone 5s I had
I believe its due to iOS dedicated to 1 model which is iPhone. So software optimization is pretty simple and easy to maintain. Android is an open source OS to various of OEM where google didnt care much about software optimization in the early days. Lately, it start to care much and getting better with every new release. There are some great OEM who optimize their custom UI to perform well. :)
@@pinkdude9017 Windows 10 worked flawlessly on my Nokia 640. I loved Windows and stuck with it as long as I could until the app situation got so bad I had to switch. I still miss it, wish they would bring it back.
Mr. E Who said we're better? it's not us who are better. it is the phone. Plus you're right about the cache. I'm not talking cache, im talking game performance. im talking rendering.
Hey Gary, can you please explain how a battery works? I've been wondering how a cellphone bettery works for not so long now but I can't find a real good answer. Please help
Or maybe make a series out of it called "How it works" or something along those lines where you explain every single part in a mobile phone video by video, I'd be very interested in such a thing.
Alex Bakker the batteries are the same thing as the AA nickel cadmium or nickel metal cells, except they are flat, have higher voltage and their internal chemicals are based on lithium ions.
I once enabled the swap file on iOS 3 for the original iPad which only had 256mb ram at the time via jail break. Was able to use maybe 30 tabs in safari without reloading (not heavy pages mind you). Only slow down was the initial freezing while the pagefile was being created. Turned it off after a short while though due to concerns on the longevity of the flash storage. The nvme being used in the iPhones today is ridiculously fast, something I wish Android manufacturers would adopt.
wow that was a interesting video, I'm surprised with how IOS works, imagine android having it in a phone like the OnePlus 3. Gary, if you ever get the chance, I would love to see a UFS vs NVME on mobile.
Mr. E yupp nvme is faster as it's pcie based (not in a phone but you get me) you can compare ufs 2.0 to a normal SSD and nvme to a pcie SSD both can have same raw speed but pcie has a direct connection with the CPU and thus will be faster
I'm pretty sure that UFS its just a type of flash memory, just like nand on the pc world. Therefore, comparing it to nvme its absurd... By the way, Apple its using common nand memory with nvme for its communication protocol.
Developer here for both iOS and Android. Android is so bad at memory management compared to iOS. It’s not just using more or less RAM. It’s the management. iOS wins hands down.
Doan Trinh thats why people still use iphones from 2015 because they’re still quite fast...though i wouldn’t mind buying an s9 right now as its cheap...(i own an iphone se)
Wonderful video Gary! Seems like you solved this problem for us, I was never able to understand why Apple had lower app switching times, perhaps you have to be in the OS development team for iOS to understand that. But you solved the major questions. Thanks Gary, waiting for more videos from you.
So the Android is not using more memory but Apple is managing got cleverly to put to switch back to older opened apps...? I call this better memory management, therefor android needs more ram to be equal to iPhone experience.
Oh, come on Gary... Apple solved it with software, and Android just added more RAM to conceal the underlying issue. I hate Apple for having crappy overpriced products with closed software. I've always liked Android for its openness, but while having more RAM is a great thing, that doesn't fix the underlying issue. I find it hard to believe that Android developers haven't yet figured out how to tackle this issue from a software standpoint. I would love it if my 4GB RAM Android device could also compress (or whatever iOS does) background apps. That would give me the best of both worlds. Apple on the other hand can offer the best of both worlds to their consumers, but they won't do it.
i think it is because android doesn't have so fast processors as the iphones have so compression and decompression on android could slow the system down.
Wait, the video has shown the is no real difference in Ram use over the same apps on both iOS, so saying android has just chucked RAM at an issue is incorrect. What issue? (from a long time iOS user, now swapping to android)
Samsung phones are overpriced because Samsung marks up their phones a little more than Apple just to stay competitive. So no Apple doesn’t sell overpriced products.
Yes but that's okay. Any ram that's not being used is wasted. Available is different than free ram. Available ram means that the phone is ready to dump a bunch of ram to free it up but it decided to just keep the ram used with some other apps so that if you open it it's faster, if you open a new app it immediately kills it.
Try SD Maid from the Playstore, it works well to free up some memory. Also in your phone's settings, enable Developer Options and scroll to the bottom to Background Apps - disable any that you never need in the background. If you're experiencing any lag or stutter, delete the cache partition. -(requires safe mode reboot) Lastly, for a 'feel' effect, try removing animations to see if you like it.
Please keep this up forever! Your explanations are the best balance between concise and broad. Can you explain how apps interact in a way that causes bugs and crashes in one app when you download another? Thanks
Always loves "Gary explains". I uses a Oneplus 3T and a iPhone 7, both performed good. I'm able to switch between app my iPhone faster but my Oneplus is able to run my Linux monitor and downloads in the background while iPhone can't. These phone are design for different group of people. Either you are the multitasker with 2 app running on the screen or you are those that give full concentration to one task, at a time they each have their advantage. No one is better than the other.
6 лет назад
Victor Png single tasking is always better for the human mind, at least that has been proven. But the ability to multitask is a nice feature.
I have several Android tablets and their performance with background processes is quite different. Some lag more than others so some are not managing things in the background as well. If you have an older phone or tablet or even a new one that is lagging try some of the following. 1} Turn automatic update off for the whole Google Play Store. Things updating in the background take up memory and slow your device down. 2} Go into settings and sync all your accounts especially your Google account. 3} Have preinstalled Google apps you never use? Disable them. (Don't disable Google Play Services.) 4) Go to Settings -> Storage. Press the cache Icon. Say yes if invited to clear cache. Wait a few minutes. 5) If you still are having trouble do a restart.
Hey Gary, could you discuss how Automatic Reference Counting in iOS vs Garbage Collection in Android effects memory usage? I was under the impression that the android runtime garbage collector was at fault for slow performance in high memory pressure situations.
I think it's definitely an overkill. Come on, my laptop has 8 gb of ram, and it's reeeeeally hard to occupy all of that even if you have 20 tabs in Firefox opened, several PDFs, several Word documents, and some Python script on the background 😀
@@АлексейГриднев-и7р he explained in the video that computers handle RAM differently because they have a faster and more reliable reading/writing, as it uses storage space to store the state of background apps. That's why they don't require as much RAM.
@Laxman Dhotre not sure about Windows but I was checking that on my Linux laptop. It is really hard to fill up even 8 Gb of RAM to the extend that it is forced to use swap partition.
One reason for the belief of RAM issues on android is many non-stock builds from some devices have poorly made RAM management. For example, some of the older Samsung smartphones (assuming you didn't use cyanogenmod), they would start unloading apps from memory even though there was around 500+MB of available RAM. It is still an issue today where some smartphones will have 4GB of RAM, but they will be unloading apps when there is 1GB of free memory. With a rooted device, you can often tweak when it begins purging things from RAM, and often with 4GB of RAM, you can often nearly double the number of apps that can stay in RAM. Another issue is that android has issues with freeing up RAM when you close everything. launch 20 apps and then close all of them and the available RAM will not reach the levels of a fresh boot. From companies like asus and and other brands, you can end up with 2GB of available RAM at startup, but after opening a number of apps, and then closing them all, you end up with less than 1GB of available RAM, then if you attempt to repeat a multi task test by seeing how many apps you can launch before it unloads something, all of a sudden you can only load a small number of apps. This is an area that Apple has done well in. While you can't launch as many apps before unloading starts, the amount you can load is consistent, where as on some devices you can load 15 apps after a fresh boot and have them all work and not be unloaded, but close them all, and then only to be able to load 8 or 9 when you redo the test. In those cases, all you can really see is the system all of a sudden eating up more RAM, leaving less for apps and cached data. Even with android 8, it still has this issue. Android 8 uses more RAM than the desktop version of windows 10. (an uncluttered startup with cortana and other bloat disabled, windows 10 on a system with 8-16GB of RAM, will consistently use around 800MB of RAM, while on a device with 4GB of RAM, you can see android using 1.6-2GB of RAM depending on how far away from stock the phone maker goes. Why is it that windows 10 is far more functional but manages to use less RAM than android?
15:42 it's just essentially swapping the app. Note that the Virtual size does not change. The same thing would have happened in regular desktop computers.
It's 2019 now. Hope these softwares or operating systems can handle apps and compressed them so we might not need more ram that is way too expensive nowadays...
Hi Gary, I will be frank (not cruel), just my opinion. You should not try too hard to be overly exciting in the large personality sense. I think you may not have the most charismatic personality, but you are very articulate, knowledgeable and passionate about your content. As a former present, my hat goes off to you! Many people understand their subject matter, but completely suck at explaining it to others, you do a great job of that without having to do theatrics to retain audience attention. GREAT JOB! I have since subscribed to your channel and am sure I will be watching many of your other videos going forward.
When looking at ram usage, is there a resolution diffrence between the 7 and the nexus? Just wondering what effect resolution has in games on Ram usage.
I found the video very interesting..He used the RAM Truth app which makes display showing how the RAM is apportioned. The is also Storage Truth which tells how the Flash media is apportioned. If you are a developer and your app saves any sort of data you need to protect that data when your app is pushed into the background by, for instance, writing it to a cache. Any write to internal or removable storage must not be interupted or blocks in the storage will be rendered unusable. Eventually the flash memory first becomes read only and then dies. Built-in flash memory seems to usually resist this but less so with removable storage. Care must be taken to complete all the writing operations to it. If your device kills a write in progress your SD card is damaged.
the internal memory is Random Access Memmory too, you wanted to say that you are going to talk about operating memory. every memory in PC or mobile are random access, it is big mistification that we call operating memory RAM and not the other. example of non random access memory is FIFO and LIFO (first in first out, last in first out)
I used to have a android phone before with a 4gb RAM. But it was stollen to me on a train. It can multitask with ease, no problem with that. Then I decided to buy a temporary phone which is cheap for that time and it's Iphone5s. I was amazed ! This is the firsr IOS phone that I got and it has a 1gb of RAM but it can multitask without lag or any problem. Smooth AF, apple is doing a good job with their devices.
iOS shows a screenshot of the last instance it was on and in the meantime i reloads the necessary data aslong as there is still enough available RAM. So sometimes it takes 1-2 seconds till you can continue using an App on iOS or if it has to reload the entire app even tho you see the screenshot right away and the user thinks the app in still in memory. On Android on the other hand, you see the actual running app and can continue using it relatively right away, as long it still is kept in memory.
Hold on a moment... a RUclips smartphone video that’s not a bunch of trolling and lies about the competing platform??? Thank you for producing such honest, unbiased, researched content! It’s such a breath of fresh air 😊
i heard it was being held up in Germany till may for some reason not sure about internationally. www.gsmarena.com/motorola_delays_nougat_update_in_germany-news-23150.php
Android too use the "compression" idea, it's the "zram" you saw on screen. technically it's a "compressed memory block device", everything you throw into it, the kernel compress the data, and put the compressed bits into ram, and it only occupies physical ram when there's is something inside it (a bit like a tmpfs, but compressed). this "zram" can be used as the swap partition (same idea on a desktop), so when system is running out of phys ram and user apps asking for more, it compress some of occupied rams into zram, and free up physical ram for new apps. however not every phone adopts this, tho. depends on manufacturer.
You can actually take your 32gb iphone and replace it with a 256gb internal storage after your warranty expired. Or if you're a daring enough, do it right away after you buy the phone and void the warranty. Lots of people are doing it. They even help you to port every single data over.
FUN FACT: iPHONES DO NOT MULTITASK! Explaination: As you press the switch to some app leaving the other app in the back ground, Android keep the whole app running in the RAM. While, APPLE IS SMART, iOS takes away most of the processing resources from the app as soon as you put it in the background. THE APP IS NO LONGER RUNNING AT ALL! Android keeps all the services, data and resources intact even when the app is in background. The app still gets its share of processor to complete what its doing, while iOS saves the app's state immediately and removes it from the processing queue, i.e. the app is not running in the background. PROOF: The proof of it can be found as you run an app that uses background processing on older iOS versions. For e.g.- Lets say you were running the Udemy app and click on the offline button, obviously you won't watch the screen till it completes downloading so you switch to some other app. Soon enough you'll find that the download has stopped, soon as you switch to udemy again, the downloading resumes. This is called Pseudo Multitasking. Apple later recognised this problem and allowed only certain services to be ran behind in the background. Only certain services, I repeat. That means the process that needs processing power in the background will have their share of the processor but only certain ones and not the whole apps. Smart move
Actually apps can run in the background since iOS 7 in the Background App Refresh. As for the download problem, iOS can continue the download in the background or (if it is not needed immediately), it can schedule it for the best time (for instance, when the user is connected to WiFi as to not use data or if the battery is lower or based on charging patterns it will do so when the user is plugged in). Also, apps that run in the background get a lower priority (part of GCD scheduling) than foreground apps so as to not hinder the foreground app if it needs more CPU resources. Even apps that are removed in the background, if they requested the system to download a resource the system actually will. If not, they can always use Background Refresh to do so.
iOS's design isn't smarter. Simpler, yes, smarter, no. Android tends to keep more things in the RAM that's why it is able to take more advantage of the larger amount of memory, and iOS is much more aggressive at suspending/killing background apps, so it won't really benefit from a larger memory as much. The main difference between Android's and iOS approach is mainly philosophical. Android leaves it to the app developer to decide whether they should remain running on the background or not, and implements smart heuristics to decide when to kill apps; while iOS takes a more heavy-handed approach to simply kill the app as soon as it is no longer foreground app. Android's heuristic have been improving every versions, while iOS have been adding features to allow more applications to run on the background.
Apps need libraries. That gaming app shrinking from 300mb (or whatever) to 10mb could be due to the app going to sleep or pausing, unloading the libraries that actually do the work like graphics. Apps tell the libraries what to do, like a musical sheet offering the notes to use on an instrument. The libraries do most of the actual work.
An Android version of an app could be different from its iPhone counterpart. There will be differences on how much resources they consume and how efficiently the apps and the OS themselves manage those resources.
Well Gary, if every single app is consuming more ram than apps on the iOS, imagine having multiple apps opened at the same time and the memory consumption on Android will be pretty alarming eventually. Perhaps this is why we are facing apps being terminated by Android (not after a week of course) due to low available memory? Also, I have compared the amount of available ram before on a new iPhone and Nexus. While the iPhone has ~1.6GB of available ram, the Nexus has already consumed ~1.6GB of ram upon booting up. Why is Android taking up so much memory? Is it due to its lots of background running services? Does doing swapping on flash disk will actually wear out the flash so badly? I mean, if we are using SSD now on computers, and I believe there are even much more IOs happening on a computer, I don't see SSD wearing out even after more than 2 years of usages! Furthermore, with digital cameras on the smart phones now, we are constantly taking and deleting photo files, transferring and removing music files, etc, I do not see the flash disk in my phones wearing out even after 2 years of usages as well. So, is it really so bad like you have described? Once again, nice vid there Gary. But at the end of the day, I still find my iPhone still performs much snappier and smoothly than my Android phones after using them for a long period of time. I don't even have to worry about clearing caches, killing apps from the app switcher, etc at all on my iPhone. It just work well on the iPhone - even with only 2GB of ram. "How iOS is doing that, we don't know" - this feature alone beats Android hands down because end consumers do not need to know how it is done, as long as iOS give users the better user experiences. Perhaps, iOS does make good use of memory swapping on its flash disk after all?
Android apps need a java virtual machine to run, that’s the reason why android phones seem slower. For a lot of reasons I prefer iOS and even Windows Phone (only bad thing was apps)
René Domínguez de Santos that is true but not always, because you can program software in C o C++ for Android Java is just the most popular lenguage, also if you si bechmmarks of java are milliseconds of difference sometimes wining java.
Gary, can you do a video on if Android phones become slower over time and if so, why? I personally have not experienced this phenomenon, but a lot of people claim they have. I think it's placebo personally.
Terrible, actually macOS and iOS manages ram way better than Windows and Android, they use the resources available to make the whole system faster, and if needed they would get rid of what is not necessary atm
I'm not subscribed to this channel so when I clicked on this video I was expecting a poor explanation that basically ended at the 9 minute mark in this video. Super surprised at how in depth this went and how bi-partisan the video was considering the channel name. I suppose the name doesn't summarize the views of the channel here.
keco185 you’re very right, pal. You had the exact same view I have. 👍👍👍
keco185 dude this channel is popular
keco185 they have to make a long video to make money from RUclips. A lot of it is filler.
careful there. he's right in some aspects, but wrong in others. There are contradictions within his own statements. For example he says that the amount of RAM needed by Android app is certainly not double three seconds after showing a graph stating the RUclips app consumes literally more than the double. I've watch the whole thing and honestly a bunch of red flags were raised throughout the whole video. I say be cautious.
Yes ,Android did indeed use double the ram, but for one app only. In other situations Apple used more and as Gary explained, after averaging it all out, the Android system used approx 6% more ram overall. You need to stop cherry picking information to suit your argument and see the whole picture. Please feel free to reply in your own video explaining where and why Gary is wrong. Oh, you're NOT actually a software engineer!? Oops!
one of the few guys in android journalism world who knows his shit.
Ali Alawami so true and he manages to explain it so that non-techies are able to understand
@@IHateYTIdentifiers 90% of the major ones haven't got a clue what they're talking about or more specific things happening under the hood. they're not hardware knowledgeable in the slightest...except for Linus tbh(when he actually does reviews)
gary must explain why android is slow and sluggish over time
E55 BæMG You should factory reset
E55 BæMG I agree! This is the main difference between android and IOS. Over time android starts to lag
blaskbla Actually also iOS devices become slower over time, in particular if you update them
this is just due to downloading more things over time... android has launchers, icon packs and other fun stuff that you put on and it may slow down your phone over time. all you need to do like yung tedbounty said, just backup all the stuff and factory reset
E55 BæMG it's like windows
So at a basic standpoint, iOS solves the low RAM problem through software, while Android went with the hardware approach, if I understood the details correctly.
Yeah :) That's excatly what it is.
Android uses compressed swap files in RAM. Phone manufacturers may choose to have that enabled or disabled regardless the RAM capacity. I have 1GB in one 2 in another. ZSWAP enabled on both by default. I. wish xz compression was used though. Additional space savings outweigh speed disadvantages. I used it on an athlon xp with 2GB RAM. xz beat the default handily in overall performance and stability.
In other words... Android went for more muscles to beat the guy.. while the iPhone beats him with brain...😎
@@gingerboy9170 It's too bad Apple products are engineered to break if looked at wrong and expensive to repair the way Apple approves even if there's a cheap fix.
@@jasonlisonbee dude... Honestly I'm an Android fan...😅 The only thing that makes me admire at iphones is their speed and stability of the softwares..., I hate every other aspect of the Apple.....😂
I'm a Android fan, but appreciate Apple's multitasking
Great
Adithya Bhat :)
As an iOS user, i dont mock the android like the other sheep does. I know both of these OS has their difference in ram management.
Dr Reform yeah ive used android too almost a year ago. The apps no the android still runs on the background thats why you can torrent on android. Whereas on iOS, its suspends the app on the background. And the resumes when you re-launched it.
You might not afford an iPhone
iPhones multitask ?🤣
Straddling along with my 6Gb RAM OnePlus 3... xD
XSportSeeker my s7 edge with its 4gb of ram has no issues so far , it's all about optimizations ...
Samy_06 Did you not watch the video?
A W yes I did
Samy_06 when you have a Samsung phone you don't talk about optimization okay?
I stupid but Gary make me smart.
JUMPMΔN lol cute
JUMPMΔN lul
JUMPMΔN nnnn
Touche
JUMP23MΔN oooooo
Gary is the only reason I continue to subscribe to AA.
smoothie1000 i hear ya bro
Joshua and Gary are the best
Me too.
If you already know about Android memory management and are just curious about if there are differences on iOS: skip all the way to ~ 14:50 mins.
That that the first part is rubbish??
@@xpmyt341 no. Some of us already know how android ram management works
Great explanation.
Our beloved zollo is here
zollotech YOUR BOYSS HEREEE
Gary: Appreciate both operating systems and see the beauty of different technology.
Android fanboy: But, but, iOS still sucks and has a shitty low resolution screen!!!
Apple fanboy: Keep using your lagdroid phone then!!!
This war never ends, sigh.
thesolitarycactus ikr...
thesolitarycactus I have an android but I'm not at all against ios and if I could afford it I would buy one.
thesolitarycactus true
It's sad how you have to mention that you're not a fanboy when mentioning something positive about either sides as Gary did "I'm not an apple fan, but I have to say I'm impressed by how iOS handles low memory situations with background apps" otherwise he'd get mocked for being a fanboy
for fanboy this is war. but for me,it seems a battle that give advantages for human. i mean this war make ios and android become more mature, fast, and simple
Apple also uses compressed memory since iOS 7 so it is probably compression. Also, for iOS, it can ask apps to purge cache, etc so the app is still running but it may have to do computation again, etc. Another thing iOS can do is it can purge memory-mapped files. Any file that is copied to RAM but not changed in RAM can be evicted. If an app needs it again that part of the file is immediately loaded from flash. Keep in mind that flash memory in iOS is usually faster than flash in Android as well, so that could also make a difference.
Also, part of the reason apps use less memory is that the Java runtime may use more memory though ART (Android Runtime) replaced Delvik. Another thing is that graphics in iOS can be smaller due to the limited set of iPhones (so they can be exact sizes needed). Another thing I can think of is that if an app uses web resources then webkit is used (which is more efficient than Blink in low-memory scenarios (as can be seen in Chrome vs Safari on the Desktop)).
That is false
Android is just as efficient as ios will be
@@stephensnell5707 Ironically, what you posted is false. Benchmarks of memory usage of apps have shown over and over. In addition, I forgot to mention that Android’s garbage collection also leads to higher memory usage (and unexpected pauses which can be mitigated) vs Automatic Reference Counting (ARC). Android does have its own equivalent of compressed memory and purging memory caches, however
@@ckingpro I know what I am on about you fathead as I happen to use an Android Smartphone and I find Android very efficient at handling the apps I use and the memory never runs out as I close apps when I am done with them,I do that to stop them running while my phone is locked(in other words to stop background usage)
So stop calling me a liar and piss off
RAM is also a selling point in Android
Very true.
RAM is essential for the way Android works. Your Android device has the capabilties defined by the collection of apps you install. Those apps can and do run in the background to dynamically extend the native abilties of Android. iOS cannot do this to anything like the same degree.
Dave Cole Jailbreaking is the solution
You are right but RAM is a marketing tool, I couldn't ever imagine needing 6GB of ram on my phone at the minute. I had 3 GB on a phone running MIUI (which uses a fair bit of ram just for the UI) and never once cut into the 3rd GB, I even had 3 games running at one point.
The problem is your average user either doesn't know what RAM is or thinks it makes their device faster simply by having more which simply is not the case in most circumstances, but RAM is cheap for manufactures to add more and use it as an extra selling point, much like what we've seen in the low and mid end GPU market.
Duncan Pringle the way Android divides up your RAM means that each app only gets a fraction of the available RAM so that you get multitasking without needing to swap (there is not swap on an Android phone - unless you root it and configure it). A galaxy S2 with 1G of RAM would kill an app that tried to use more than 64M. A nexus 5 with 2G would only allow 192M for an app. This limit is relaxed for apps published as requiring "large heap".
iOS does not limit the memory used by apps because it actively suspends and kills background apps. This makes large RAM devices not as important on iOS.
Thanks for an unbiased video here. I just got an iPhone 7 Plus and really like it, after years of using Android. I did wonder why iOS seemed like it was faster and more capable with the same amount of RAM, and your video has helped me understand it a great deal. I appreciate your time and helpful explination.
Its a nice phone. I gave my iPhone 7 to my daughter though and got a note 8 because I like my spen. It was a hard move though.
W J Lol I'd prefer to have a smooth experience than a "feature phone"
@@Abnarly Android has been smooth since Android KitKat, so this argument is as outdated as the hardware in the iPhone Xr.
@@cooltwittertag Yeah no, I've had phones on Android jellybean, kitkat, lollipop, marshmallows, nougat, and now my current phone is on oreo 8.0
They're no where near the optimization of IOS.
Abner Chilson i agree. Thats why i switched from android to iOS.
The car is too slow. Easy for engineer no. 1. Put a bigger engine in it.
Another engineer (no. 2) improves the transmission, reduces the weight and improves the aeoridynamic.
Engineer no. 2 still has the option to swap the engine ...
So yes Android uses more RAM.
* aerodynamic
Thats a pretty bad analogy...
It's a pretty accurate analogy, actually.
BillRey I agree with calcyss. You can get more power without swapping the engine
perfectly put.
It's ok, I downloaded more RAM on my phone so now I can have more Facebook pages open :)
Eoin Mc Namara how you do that
justin miller search for "download ram" on Google dude :P
justin miller he's joking. No one can download Ram.
Eoin Mc Namara RAM is hardware, not a software update! LMFAO
Noor Hussain THAT IS CALLED A JOOOOKE DUDE
Gary used the nexus 5x wich have stock Android and it doesn't need a lot of ram like in touchwiz or MI UI or any skin on top of Android, The phone will use more Ram than a stock Android phone IMO and ios is stock so it doesn't need as much RAM as a skinned out Samsung touchwiz phone.
DT B I can confirm that
DT B Take in note. He's comparing Android to iOS. Not Touchwiz to iOS etc. He's intending to compare the complete vanilla experience of both.
1000bassnut it's gotten better, yes. Still no where near stock android or sense though. Samsung still has RAM management issues last I heard.
DT B he used the 5x because it's close to stock. stock Android vs stock iOS is the only fair way of comparing them. people would complain about the fact that he's using a device with a heavy skin on it and that it's not fair because it's not stock Android. I've had an Android phone that had a 2000mAh battery, 1gb of RAM, 480p display, plastic screen, and a Snapdragon 410 processor. that phone was better than the iPhone 5s I had
The Doctor it's not close to stock cause it is stock
I believe its due to iOS dedicated to 1 model which is iPhone. So software optimization is pretty simple and easy to maintain. Android is an open source OS to various of OEM where google didnt care much about software optimization in the early days. Lately, it start to care much and getting better with every new release. There are some great OEM who optimize their custom UI to perform well. :)
Sumanthiran R Subramaniam I don’t think it is “simple and easy to maintain” at all.
He means in comparison
I think Google can do this starting with their Pixel and Android One devices.
R.I.P Windows Phone :(
@Kennii Kalonji That was Windows Mobile, not Windows Phone, a completely different beast.
Angelo louisjeune true
Windows phone 7.8 works flawlessly on phones with 512 mb RAM.
@@pinkdude9017 Windows 10 worked flawlessly on my Nokia 640. I loved Windows and stuck with it as long as I could until the app situation got so bad I had to switch. I still miss it, wish they would bring it back.
I might have had good grades in exams if Gary taught me
3gb of RAM? Pff us OP users know what's up
-Vance- Dun u know it. op3 for the win
youssef fakir OPO still😊
Mr. E Entitled? He literally said there is no such thing as "free RAM." It's being used, bud
Mr. E Who said we're better? it's not us who are better. it is the phone. Plus you're right about the cache. I'm not talking cache, im talking game performance. im talking rendering.
You can't even see shit with your haircut bro
I'm impressed with the amount of research you guys have done on this. Thanks for sharing.
Hey Gary, can you please explain how a battery works? I've been wondering how a cellphone bettery works for not so long now but I can't find a real good answer. Please help
Or maybe make a series out of it called "How it works" or something along those lines where you explain every single part in a mobile phone video by video, I'd be very interested in such a thing.
Alex Bakker yeah that would be cool
Alex Bakker its just a lithium battery nothing special
its just chemistry
Alex Bakker the batteries are the same thing as the AA nickel cadmium or nickel metal cells, except they are flat, have higher voltage and their internal chemicals are based on lithium ions.
I once enabled the swap file on iOS 3 for the original iPad which only had 256mb ram at the time via jail break. Was able to use maybe 30 tabs in safari without reloading (not heavy pages mind you). Only slow down was the initial freezing while the pagefile was being created. Turned it off after a short while though due to concerns on the longevity of the flash storage. The nvme being used in the iPhones today is ridiculously fast, something I wish Android manufacturers would adopt.
18:15 love how enthusiastic gary is
wow that was a interesting video, I'm surprised with how IOS works, imagine android having it in a phone like the OnePlus 3.
Gary, if you ever get the chance, I would love to see a UFS vs NVME on mobile.
Rena Chan nvme wins
Mr. E no you are wrong NVME is quite lot faster than UFS 2.0 check anandtech for comparison
HaSeeB MiR www.reddit.com/r/Android/comments/5edl2o/please_stop_asking_for_nvme_when_ufs_21_is/
Mr. E yupp nvme is faster as it's pcie based (not in a phone but you get me) you can compare ufs 2.0 to a normal SSD and nvme to a pcie SSD both can have same raw speed but pcie has a direct connection with the CPU and thus will be faster
I'm pretty sure that UFS its just a type of flash memory, just like nand on the pc world. Therefore, comparing it to nvme its absurd...
By the way, Apple its using common nand memory with nvme for its communication protocol.
well one thing's for sure : Gary loooooves Crossy roads
Michael Castillo g gg
amazing video! thank you so much! I am an a professional iOS developer myself and always wondered about this.
One handles the problem with software the other uses hardware.
That’s why I love both OS. They’re both different.
Yeah am ANDROID man but Appel are very clever in management of the software i hope in the future Android developers do that 🤞
yeah
It's spelt Apple NOT the way you spelt it
yes < we want to know about virtual RAM
Developer here for both iOS and Android. Android is so bad at memory management compared to iOS. It’s not just using more or less RAM. It’s the management. iOS wins hands down.
Doan Trinh thats why people still use iphones from 2015 because they’re still quite fast...though i wouldn’t mind buying an s9 right now as its cheap...(i own an iphone se)
@@yux.tn.3641 ok lol
Wonderful video Gary! Seems like you solved this problem for us, I was never able to understand why Apple had lower app switching times, perhaps you have to be in the OS development team for iOS to understand that. But you solved the major questions. Thanks Gary, waiting for more videos from you.
I really appreciate the respect Gary shows for both OS's.
So the Android is not using more memory but Apple is managing got cleverly to put to switch back to older opened apps...? I call this better memory management, therefor android needs more ram to be equal to iPhone experience.
Its all about optimizations
@@mtk3587
Tell that to my 12g ram note 10+ 😉
iPhones have hardware and software optimization.سليس سلطان
This is why crossy road lags on my device 😑
Mustafa Sezer maybe lags for 1 second after it was loaded from the background but not after that.
Which phone do you have
thanks Gary. I think even the casual mobile user could follow this pretty well.
Oh, come on Gary... Apple solved it with software, and Android just added more RAM to conceal the underlying issue. I hate Apple for having crappy overpriced products with closed software. I've always liked Android for its openness, but while having more RAM is a great thing, that doesn't fix the underlying issue. I find it hard to believe that Android developers haven't yet figured out how to tackle this issue from a software standpoint.
I would love it if my 4GB RAM Android device could also compress (or whatever iOS does) background apps. That would give me the best of both worlds.
Apple on the other hand can offer the best of both worlds to their consumers, but they won't do it.
i think it is because android doesn't have so fast processors as the iphones have so compression and decompression on android could slow the system down.
Android Run Time(ART) is designed exactly to do that. Newer Android devices run ART apposed to Delvik
Wait, the video has shown the is no real difference in Ram use over the same apps on both iOS, so saying android has just chucked RAM at an issue is incorrect. What issue? (from a long time iOS user, now swapping to android)
Samsung phones are overpriced because Samsung marks up their phones a little more than Apple just to stay competitive. So no Apple doesn’t sell overpriced products.
Well imagine how amazing android will be when they figure this out
Its end of 2019.
My 6gb android only have 1,5gb free ram
Yes but that's okay.
Any ram that's not being used is wasted. Available is different than free ram. Available ram means that the phone is ready to dump a bunch of ram to free it up but it decided to just keep the ram used with some other apps so that if you open it it's faster, if you open a new app it immediately kills it.
I have on Android free 1-1,7GB RAM with total of 3GB of RAM
Sorry for my English
Try SD Maid from the Playstore, it works well to free up some memory.
Also in your phone's settings, enable Developer Options and scroll to the bottom to Background Apps - disable any that you never need in the background.
If you're experiencing any lag or stutter, delete the cache partition. -(requires safe mode reboot)
Lastly, for a 'feel' effect, try removing animations to see if you like it.
My android phone having 6 gb of ram have a 3.7 ram available
@@pilotavery Android phone tend to have Bloatware inside. To many app RAM usage for nothing. All Android Brand phone tend to have that
Please keep this up forever! Your explanations are the best balance between concise and broad. Can you explain how apps interact in a way that causes bugs and crashes in one app when you download another? Thanks
amazing explanation, I'm an Android user but i appreciate what iOS does to handle multitasking 😍
This guy makes an amazing explanation. I love the bi-partisan view and just phenominal explanation. Loved it.
Always loves "Gary explains". I uses a Oneplus 3T and a iPhone 7, both performed good. I'm able to switch between app my iPhone faster but my Oneplus is able to run my Linux monitor and downloads in the background while iPhone can't. These phone are design for different group of people. Either you are the multitasker with 2 app running on the screen or you are those that give full concentration to one task, at a time they each have their advantage. No one is better than the other.
Victor Png single tasking is always better for the human mind, at least that has been proven. But the ability to multitask is a nice feature.
I have several Android tablets and their performance with background processes is quite different. Some lag more than others so some are not managing things in the background as well. If you have an older phone or tablet or even a new one that is lagging try some of the following.
1} Turn automatic update off for the whole Google Play Store. Things updating in the background take up memory and slow your device down.
2} Go into settings and sync all your accounts especially your Google account.
3} Have preinstalled Google apps you never use? Disable them. (Don't disable Google Play Services.)
4) Go to Settings -> Storage. Press the cache Icon. Say yes if invited to clear cache. Wait a few minutes.
5) If you still are having trouble do a restart.
Hey Gary, could you discuss how Automatic Reference Counting in iOS vs Garbage Collection in Android effects memory usage? I was under the impression that the android runtime garbage collector was at fault for slow performance in high memory pressure situations.
Update... 2019 - Android 12 gb ram
it would be great if android handles background apps the same as IOS, think about how many apps you could have in 12GB RAM!
I think it's definitely an overkill. Come on, my laptop has 8 gb of ram, and it's reeeeeally hard to occupy all of that even if you have 20 tabs in Firefox opened, several PDFs, several Word documents, and some Python script on the background 😀
@@АлексейГриднев-и7р he explained in the video that computers handle RAM differently because they have a faster and more reliable reading/writing, as it uses storage space to store the state of background apps. That's why they don't require as much RAM.
@Laxman Dhotre not sure about Windows but I was checking that on my Linux laptop. It is really hard to fill up even 8 Gb of RAM to the extend that it is forced to use swap partition.
Soooo ..... Apple actually needs less memory :D
You forgot you created this comment
@Ramification umm ok?? What does that mean does that mean android is bad??
great job guys !
videos like these clear a lot to misconceptions in minds of people. keep up d good work! atb!
One reason for the belief of RAM issues on android is many non-stock builds from some devices have poorly made RAM management. For example, some of the older Samsung smartphones (assuming you didn't use cyanogenmod), they would start unloading apps from memory even though there was around 500+MB of available RAM. It is still an issue today where some smartphones will have 4GB of RAM, but they will be unloading apps when there is 1GB of free memory.
With a rooted device, you can often tweak when it begins purging things from RAM, and often with 4GB of RAM, you can often nearly double the number of apps that can stay in RAM.
Another issue is that android has issues with freeing up RAM when you close everything. launch 20 apps and then close all of them and the available RAM will not reach the levels of a fresh boot. From companies like asus and and other brands, you can end up with 2GB of available RAM at startup, but after opening a number of apps, and then closing them all, you end up with less than 1GB of available RAM, then if you attempt to repeat a multi task test by seeing how many apps you can launch before it unloads something, all of a sudden you can only load a small number of apps.
This is an area that Apple has done well in. While you can't launch as many apps before unloading starts, the amount you can load is consistent, where as on some devices you can load 15 apps after a fresh boot and have them all work and not be unloaded, but close them all, and then only to be able to load 8 or 9 when you redo the test.
In those cases, all you can really see is the system all of a sudden eating up more RAM, leaving less for apps and cached data.
Even with android 8, it still has this issue. Android 8 uses more RAM than the desktop version of windows 10. (an uncluttered startup with cortana and other bloat disabled, windows 10 on a system with 8-16GB of RAM, will consistently use around 800MB of RAM, while on a device with 4GB of RAM, you can see android using 1.6-2GB of RAM depending on how far away from stock the phone maker goes. Why is it that windows 10 is far more functional but manages to use less RAM than android?
15:42 it's just essentially swapping the app. Note that the Virtual size does not change. The same thing would have happened in regular desktop computers.
There are android phones with 8gb if RAM that still get hung up while navigating the OS.
Shitty design from a shitty brand then. My 6 gb 2019 LG G8 runs smooth as butter on all processes, using a LG own custom UI
Which s#itty phone do you use?
Excellent video and very troll-free comments proof of a healthy Channel.
this is my favorite SERIES GARY EXPLAINS !! 😀😀😀🖒🖒❤💣💣💣💥💥💥
I like your even-handed approach! For an Android guy, you totally nailed it in terms of impartiality. Thank you for the detailed explanation.
Maybe that’s why iPhones don’t have split screen
Gary your videos are amazing!!! I love how educational they are. Thank you so much for your work.
am running marshmallow in 512 ram xD
ANDROID GAMER Xperia M?
Tushar Choudhary no huawei y360 with custom rom
ANDROID GAMER I'm running 7.1 on 1GB , but you beat me :)
akshay deshpande is it laggy?
Lol Just get LG v20 with 4gb on 7.0
Nice video Gary,please do a video on virtual memory
It's 2019 now. Hope these softwares or operating systems can handle apps and compressed them so we might not need more ram that is way too expensive nowadays...
Hi Gary, I will be frank (not cruel), just my opinion. You should not try too hard to be overly exciting in the large personality sense. I think you may not have the most charismatic personality, but you are very articulate, knowledgeable and passionate about your content. As a former present, my hat goes off to you! Many people understand their subject matter, but completely suck at explaining it to others, you do a great job of that without having to do theatrics to retain audience attention. GREAT JOB! I have since subscribed to your channel and am sure I will be watching many of your other videos going forward.
Pls do explain virtual memory gary sir
awesome explanation man 👌
When looking at ram usage, is there a resolution diffrence between the 7 and the nexus? Just wondering what effect resolution has in games on Ram usage.
Gary Sims wins the Internet. Brilliant explanations.
I found the video very interesting..He used the RAM Truth app which makes display showing how the RAM is apportioned.
The is also Storage Truth which tells how the Flash media is apportioned.
If you are a developer and your app saves any sort of data you need to protect that data when your app is pushed into the background by, for instance, writing it to a cache. Any write to internal or removable storage must not be interupted or blocks in the storage will be rendered unusable. Eventually the flash memory first becomes read only and then dies.
Built-in flash memory seems to usually resist this but less so with removable storage. Care must be taken to complete all the writing operations to it. If your device kills a write in progress your SD card is damaged.
Make a video on virtual memory
Nice... was interesting... do another one sometime soon.
Apple also uses really fast flash storage.
Geffá Oliveira yes. iPhones arent really made to last
Digital Realm Gaming what? Lmao
the internal memory is Random Access Memmory too, you wanted to say that you are going to talk about operating memory. every memory in PC or mobile are random access, it is big mistification that we call operating memory RAM and not the other. example of non random access memory is FIFO and LIFO (first in first out, last in first out)
This is in-depth explanation! Without prejudice. Pure and honest explanation! He’s right, he just talks about technology. Good job Mr. Gary! Tnx!
I need a video about virtual memory
so the real problem is optimization basically.
optimization for what? there is no such thing "optimization" in general
Yup thats what samsungs new phone are the best
I used to have a android phone before with a 4gb RAM. But it was stollen to me on a train. It can multitask with ease, no problem with that. Then I decided to buy a temporary phone which is cheap for that time and it's Iphone5s. I was amazed ! This is the firsr IOS phone that I got and it has a 1gb of RAM but it can multitask without lag or any problem. Smooth AF, apple is doing a good job with their devices.
I've not really been an apple fan boy but off recent ice come to acknowledge the fact that the engineers at apple are very clever...
iOS shows a screenshot of the last instance it was on and in the meantime i reloads the necessary data aslong as there is still enough available RAM. So sometimes it takes 1-2 seconds till you can continue using an App on iOS or if it has to reload the entire app even tho you see the screenshot right away and the user thinks the app in still in memory.
On Android on the other hand, you see the actual running app and can continue using it relatively right away, as long it still is kept in memory.
Gonna have to get some popcorn this this one.
*(pop*pop)* Let's go!
hehehe
All I need to know is if killing these apps is more battery friendly or let them stay cashed in the RAM Gary?
Depends. Close it if you aren't going to use it for a few days, open if.you will.
Thanks for the information! Much value
Hold on a moment... a RUclips smartphone video that’s not a bunch of trolling and lies about the competing platform??? Thank you for producing such honest, unbiased, researched content! It’s such a breath of fresh air 😊
Really good explanation! I’d love to see you explain how the major desktop OSes do this.
I wish I could up-vote this video twice. Oh wait, I can with my two accounts and I will.
Anyone know the nougat status on the moto x pure? Moto confirmed it's coming but I thought someone might know when.
Big Thick dépends if you got an international model' or usa model, the int should get it at the end of february but the usa idk, dépends on cariers :(
i heard it was being held up in Germany till may for some reason not sure about internationally.
www.gsmarena.com/motorola_delays_nougat_update_in_germany-news-23150.php
Big Thick As a Moto X Pure user, it's super sad to see what lenovo has done with the company :'(
I think Reverse engineering can reveal the secret of IOS Memory Management...
Just kidding...
Absolutely fantastic and detailed explanation. Good job, Gary.
Android too use the "compression" idea, it's the "zram" you saw on screen.
technically it's a "compressed memory block device", everything you throw into it, the kernel compress the data, and put the compressed bits into ram, and it only occupies physical ram when there's is something inside it (a bit like a tmpfs, but compressed).
this "zram" can be used as the swap partition (same idea on a desktop), so when system is running out of phys ram and user apps asking for more, it compress some of occupied rams into zram, and free up physical ram for new apps.
however not every phone adopts this, tho. depends on manufacturer.
won't it be cool if you was able to buy more ram for your smartphone like how u go to the store and buy a memory card?
oh I forgot iPhone don't use memory cards
You can actually take your 32gb iphone and replace it with a 256gb internal storage after your warranty expired. Or if you're a daring enough, do it right away after you buy the phone and void the warranty. Lots of people are doing it.
They even help you to port every single data over.
Bobby Lavinier how about 199 gb
Fez Ok that's storage but what about RAM?
FUN FACT: iPHONES DO NOT MULTITASK!
Explaination: As you press the switch to some app leaving the other app in the back ground, Android keep the whole app running in the RAM. While, APPLE IS SMART, iOS takes away most of the processing resources from the app as soon as you put it in the background. THE APP IS NO LONGER RUNNING AT ALL!
Android keeps all the services, data and resources intact even when the app is in background. The app still gets its share of processor to complete what its doing, while iOS saves the app's state immediately and removes it from the processing queue, i.e. the app is not running in the background.
PROOF: The proof of it can be found as you run an app that uses background processing on older iOS versions. For e.g.- Lets say you were running the Udemy app and click on the offline button, obviously you won't watch the screen till it completes downloading so you switch to some other app. Soon enough you'll find that the download has stopped, soon as you switch to udemy again, the downloading resumes. This is called Pseudo Multitasking.
Apple later recognised this problem and allowed only certain services to be ran behind in the background. Only certain services, I repeat. That means the process that needs processing power in the background will have their share of the processor but only certain ones and not the whole apps. Smart move
Actually apps can run in the background since iOS 7 in the Background App Refresh. As for the download problem, iOS can continue the download in the background or (if it is not needed immediately), it can schedule it for the best time (for instance, when the user is connected to WiFi as to not use data or if the battery is lower or based on charging patterns it will do so when the user is plugged in). Also, apps that run in the background get a lower priority (part of GCD scheduling) than foreground apps so as to not hinder the foreground app if it needs more CPU resources.
Even apps that are removed in the background, if they requested the system to download a resource the system actually will. If not, they can always use Background Refresh to do so.
So it's already fixed? Ok
Dude mine doesn't keep the danm apps in the background. I came with 2 GB and I cried so bad
iOS's design isn't smarter. Simpler, yes, smarter, no.
Android tends to keep more things in the RAM that's why it is able to take more advantage of the larger amount of memory, and iOS is much more aggressive at suspending/killing background apps, so it won't really benefit from a larger memory as much.
The main difference between Android's and iOS approach is mainly philosophical. Android leaves it to the app developer to decide whether they should remain running on the background or not, and implements smart heuristics to decide when to kill apps; while iOS takes a more heavy-handed approach to simply kill the app as soon as it is no longer foreground app. Android's heuristic have been improving every versions, while iOS have been adding features to allow more applications to run on the background.
**starts a flame war**
Apps need libraries. That gaming app shrinking from 300mb (or whatever) to 10mb could be due to the app going to sleep or pausing, unloading the libraries that actually do the work like graphics. Apps tell the libraries what to do, like a musical sheet offering the notes to use on an instrument. The libraries do most of the actual work.
An Android version of an app could be different from its iPhone counterpart. There will be differences on how much resources they consume and how efficiently the apps and the OS themselves manage those resources.
super like! very interesting! thank you for this research :)
Android phones need more ram because it needs more power to match iphones.
Definatly!!!
Well Gary, if every single app is consuming more ram than apps on the iOS, imagine having multiple apps opened at the same time and the memory consumption on Android will be pretty alarming eventually. Perhaps this is why we are facing apps being terminated by Android (not after a week of course) due to low available memory?
Also, I have compared the amount of available ram before on a new iPhone and Nexus. While the iPhone has ~1.6GB of available ram, the Nexus has already consumed ~1.6GB of ram upon booting up. Why is Android taking up so much memory? Is it due to its lots of background running services?
Does doing swapping on flash disk will actually wear out the flash so badly? I mean, if we are using SSD now on computers, and I believe there are even much more IOs happening on a computer, I don't see SSD wearing out even after more than 2 years of usages! Furthermore, with digital cameras on the smart phones now, we are constantly taking and deleting photo files, transferring and removing music files, etc, I do not see the flash disk in my phones wearing out even after 2 years of usages as well. So, is it really so bad like you have described?
Once again, nice vid there Gary. But at the end of the day, I still find my iPhone still performs much snappier and smoothly than my Android phones after using them for a long period of time. I don't even have to worry about clearing caches, killing apps from the app switcher, etc at all on my iPhone. It just work well on the iPhone - even with only 2GB of ram. "How iOS is doing that, we don't know" - this feature alone beats Android hands down because end consumers do not need to know how it is done, as long as iOS give users the better user experiences. Perhaps, iOS does make good use of memory swapping on its flash disk after all?
swapping uses a lot of battery as well pretty much a much as launching it
Android apps need a java virtual machine to run, that’s the reason why android phones seem slower. For a lot of reasons I prefer iOS and even Windows Phone (only bad thing was apps)
I agree my older i phone is much faster than the new android phone i got
René Domínguez de Santos that is true but not always, because you can program software in C o C++ for Android Java is just the most popular lenguage, also if you si bechmmarks of java are milliseconds of difference sometimes wining java.
Great explained I am a BSc student and learn so much from this video about how the memory is managed. Thanks!
Could the 6% increase be due to running apps, games and media at a larger resolution?
16:04 rip chicken
i got flip phone. :0
Yeah I'd get a iPhone but I just dont pay close too 1k for a phone lol
MrMister1227 But Android phones are expensive too -_-
Or you could get last gen iPhones for cheaper.
Your logic makes sense, kappa.
Haxor inator have you ever seen any lower end phones? There's some lower end androids and I'm pretty sure they meant those
Only reason people get stuck using android phone is because cell companies give em away for free.
They are throw away junk
+MrMister1227 All iPhones don't even cost near $1k. Only some
buddy, keep it for 4 years and its not a big deal, it will last and won't break
Gary, can you do a video on if Android phones become slower over time and if so, why? I personally have not experienced this phenomenon, but a lot of people claim they have. I think it's placebo personally.
Terrible, actually macOS and iOS manages ram way better than Windows and Android, they use the resources available to make the whole system faster, and if needed they would get rid of what is not necessary atm
Urban myth which we can't get rid off, sadly.