Go Back   MacRumors Forums > iPhone, iPod and iPad > iPad

Reply
 
Thread Tools Search this Thread Display Modes
Old Feb 26, 2012, 07:17 PM   #1
Nokaoi
macrumors regular
 
Join Date: Feb 2009
What causes high wired memory usage?

I have an app from the app store called system status. At times when my iPad 2 16gb is running crappy I check the memory usage and the wired memory usage is very high yet nothing else is running.

I just do a hard reset and it resolves the issue. But, I'm wondering if it is a bigger problem. Is there an underlying issue causing this to happen? Should I do a restore?


Any help will be greatly appreciated.
__________________
iPhone 5s - SpaceGrey - 32GB
iPad Air - Black - 32GB WiFi
iPad mini - white - 32GB WiFi/LTE
Nokaoi is offline   0 Reply With Quote
Old Feb 27, 2012, 05:49 AM   #2
psonice
macrumors 6502a
 
Join Date: Jul 2005
There is no issue, and the memory usage is supposed to be high when the iPad is working normally. In fact you could say the issue is the system status app, it's reporting numbers that don't have a lot of meaning and failing to explain what they're supposed to be telling you.

My suggestion: delete the app as it's pretty much pointless, and stop worrying about it. If the iPad is running slow, give it a few minutes - it usually sorts itself out. If not, reboot it.

(And if you really want to know why the memory numbers are pointless: The iPad keeps apps that aren't currently active (but that you've recently used) in memory. If you go to use them again, they start instantly and continue from where you left off. That fills up the memory of course. If you open another app that needs it, the iPad wakes up those 'sleeping' apps and tells them to shut down - that lets them shut down cleanly, and frees up the memory quickly, but it can cause a little slowdown while it happens - then it should settle. This way you get good multitasking, good battery life, and apps almost always get the memory they need, the only downside is a little lag when you start a new app now and then.)
psonice is offline   4 Reply With Quote
Old Feb 29, 2012, 04:41 PM   #3
chakrava
macrumors newbie
 
Join Date: Feb 2012
There is an issue with memory eating apps like some games. Playing a game like Infinity Blade (I or II) almost always requires a hard reset to make sure enough memory is available to run the game.

For most other apps this isn't an issue and the memory allocation as described by psonice is fine. I can check e-mail, calendars, web browse, etc. with no problem, but when I want to play a better game I'm stuck having to cycle through a hard reset or purchasing a memory application to try to free it up otherwise.

But from a gamer's perspective (admittedly a niche) the iOS memory management is pretty terrible.
chakrava is offline   0 Reply With Quote
Old Feb 29, 2012, 11:34 PM   #4
Coukos34
macrumors 6502
 
Join Date: Mar 2009
Chakrava, I'd have to disagree with you there. I have owned each iPhone and iPad (other then the 1st gen iPhone), and have never (ever) had to clear memory or give the device a hard reset to run (any) game (including Infinity Blade). I honestly don't understand this behavior, as I see it mentioned in game app reviews constantly. What are you guys doing to your devices to have this happen anyways? I just don't get it...It's like people that get viruses on their computers....how do you manage this??? I'm sorry, but mem management seems to work pretty well in iOS, as it is designed to release apps from mem as needed. Thus, I'm not sure why any device would ever need a restart, when the proper mem is released automatically anyway. If an application needs all the mem available that an iOS device has, then all app data is released, and it goes on it's way.Sorry for the rant, but I'm just totally sick of listening to this drive. This crap about apps not running without a reboot is just weak
Coukos34 is offline   0 Reply With Quote
Old Mar 1, 2012, 04:25 AM   #5
psonice
macrumors 6502a
 
Join Date: Jul 2005
Agreed - I've never needed to clear memory either, and have also owned a *lot* of iOS devices back to the first iPhone (I pretty much *have* to buy every new device as a developer, for testing).

I played infinity blade a lot too, eventually completing it and beating that robot thing at the end. The only "issue" was that it'd load a bit slower if memory was low, and it'd be a little jerky initially as background apps were still shutting down. That settled fast though and didn't affect gaming - and it was still a lot more efficient than waiting for a hard reboot or manually shutting apps down!
psonice is offline   0 Reply With Quote
Old Mar 1, 2012, 08:51 AM   #6
blackNBUK
macrumors 6502a
 
Join Date: Feb 2010
Location: UK
Quote:
Originally Posted by psonice View Post
There is no issue, and the memory usage is supposed to be high when the iPad is working normally. In fact you could say the issue is the system status app, it's reporting numbers that don't have a lot of meaning and failing to explain what they're supposed to be telling you.

My suggestion: delete the app as it's pretty much pointless, and stop worrying about it. If the iPad is running slow, give it a few minutes - it usually sorts itself out. If not, reboot it.

(And if you really want to know why the memory numbers are pointless: The iPad keeps apps that aren't currently active (but that you've recently used) in memory. If you go to use them again, they start instantly and continue from where you left off. That fills up the memory of course. If you open another app that needs it, the iPad wakes up those 'sleeping' apps and tells them to shut down - that lets them shut down cleanly, and frees up the memory quickly, but it can cause a little slowdown while it happens - then it should settle. This way you get good multitasking, good battery life, and apps almost always get the memory they need, the only downside is a little lag when you start a new app now and then.)
Normally I would completely agree with you but the OP did specifically mention that wired memory usage was high. On OSX at least this refers to memory that is in use by the kernel/OS and can't be swapped out to disk. I don't know for certain but I would be somewhat surprised if this memory could be reclaimed in the same way as the memory used by normal apps. Maybe the OP is hitting a bug in iOS that is causing the kernel to grab wired memory and not give it back. Over time that could reduce the memory available to apps so much that the iPad starts running badly.
blackNBUK is offline   0 Reply With Quote
Old Mar 1, 2012, 09:56 AM   #7
psonice
macrumors 6502a
 
Join Date: Jul 2005
Quote:
Originally Posted by blackNBUK View Post
Normally I would completely agree with you but the OP did specifically mention that wired memory usage was high. On OSX at least this refers to memory that is in use by the kernel/OS and can't be swapped out to disk. I don't know for certain but I would be somewhat surprised if this memory could be reclaimed in the same way as the memory used by normal apps. Maybe the OP is hitting a bug in iOS that is causing the kernel to grab wired memory and not give it back. Over time that could reduce the memory available to apps so much that the iPad starts running badly.
iOS doesn't manage memory the same as OS X. It doesn't use virtual memory and swap out to disk at all. In this case, as it's low on memory, it would work like this:

1. He opens infinity blade, which asks for a whole load of RAM.
2. The OS checks, and sees that it wants 10x more RAM than is available.
3. It checks which apps are currently open in the background, picks the one that hasn't been used for the longest, and tells it to quit.
4. That background app 'wakes up', saves its state (so if you were in the middle of a game it resumes where you left off), and quits.
5. The OS passes the freed up RAM to infinity blade.
6. If there's still not enough free, go back to 3 and repeat.

So basically it keeps killing old apps until there's enough memory left. If you watched it, you'd probably see the wired memory stay at 90%+ the whole time, yet a large game can still load into memory.

The only real downside is that the game might run poorly to begin with, because it's still loading bits into memory and other apps are silently shutting down in the background. Give it a little time though and it's back to normal.
psonice is offline   1 Reply With Quote
Old Mar 2, 2012, 10:50 PM   #8
blackNBUK
macrumors 6502a
 
Join Date: Feb 2010
Location: UK
Quote:
Originally Posted by psonice View Post
iOS doesn't manage memory the same as OS X. It doesn't use virtual memory and swap out to disk at all. In this case, as it's low on memory, it would work like this:

1. He opens infinity blade, which asks for a whole load of RAM.
2. The OS checks, and sees that it wants 10x more RAM than is available.
3. It checks which apps are currently open in the background, picks the one that hasn't been used for the longest, and tells it to quit.
4. That background app 'wakes up', saves its state (so if you were in the middle of a game it resumes where you left off), and quits.
5. The OS passes the freed up RAM to infinity blade.
6. If there's still not enough free, go back to 3 and repeat.

So basically it keeps killing old apps until there's enough memory left. If you watched it, you'd probably see the wired memory stay at 90%+ the whole time, yet a large game can still load into memory.

The only real downside is that the game might run poorly to begin with, because it's still loading bits into memory and other apps are silently shutting down in the background. Give it a little time though and it's back to normal.
I thought iOS still separated memory into 4 separate pools as OSX does:

Wired - Used by the OS/kernel internally.
Active - Used by applications (both built-in and third-party)
Free - Empty memory ready to be used.
Inactive - Recently used memory that is now unused. Can either be reused if the data is needed again or freed.

I agree that iOS doesn't use swap space and will quit apps to build up enough free memory for a new app to run. However I would have thought quitting apps would only move memory from the active to the free pools. If the OS grabs memory for it's own internal use and (because of a bug) doesn't give it back then I would have also thought that the wired usage would increase and therefore reduce the amount of memory available for apps. Quitting apps wouldn't help in this situation because the memory isn't actually being used by an app.

Of course this theory surposes that there is a bug in the OS that causes wired memory to not be freed properly. I've never seen anything like that in my use of iOS but it would provide an explanation for what the OP appears to be seeing.
blackNBUK is offline   0 Reply With Quote

Reply
MacRumors Forums > iPhone, iPod and iPad > iPad

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
high cpu usage pieuk MacBook Air 3 Jun 19, 2013 07:05 PM
1GB of Wired Memory? ali815 Mac Basics and Help 4 Jun 9, 2013 01:10 AM
high fan usage bellesouth MacBook Pro 2 Feb 3, 2013 10:58 AM
Crazy High usage swaskowiak iOS 6 1 Sep 29, 2012 02:49 PM
rMBP High memory usage at idle mikemullinax MacBook Pro 2 Aug 20, 2012 07:42 PM

Forum Jump

All times are GMT -5. The time now is 12:19 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC