Just What is Wired Memory Anyway?

If you've ever opened up your Activity Monitor and looked at the System Memory tab, you've no doubt seen something similar to the above. But if you're like me, you've often wondered just what the labels mean. Just what is wired memory, anyway? Well Alex at Bits about Bytes has a nice little article explaining just what those labels mean, how different applications (particularly virtualization tools) affect memory usage, and how to figure out if you need to add RAM to your system. Oh yeah, and wired memory turns out to be memory "used by the OS [which] is pretty much untouchable. Another application can't 'borrow' wired memory." Good stuff.
[Via FreeMacBlog]
Share
Categories
If you've ever opened up your Activity Monitor and looked at the System Memory tab, you've no doubt seen something similar to the above....
Add a Comment
Jeffrey, I think what you're refering to is memory protection. Mac OS X, Windows NT and later, Unix and Linux (and any other decent modern OS) all have memory protection. The "classic" Mac OS and old versions of Windows did not.
Basically memory protection puts up walls to protect areas of memory from other processes. User programs (like Safari, iTunes, etc) can't mess with each other's memory directly, nor can they mess with the operating system's memory directly.
This prevents both malicious programs from messing with things, and bugs from causing crashes in programs other than itself. Without memory protection, a program with a certain kind of bug could accidently corrupt memory anywhere in the system, which could cause the whole computer to crash. Now the worst it can do is crash itself.
What's more of interest to me is not so much the wired memory, but the inactive memory, and trying to figure out why my machine seems to freeze up every few seconds when it's running with small Free but large Inactive. Especially when using things like Aperture.
The Bits article has a comment that points to a utility iFreeMem
http://www.apple.com/downloads/macosx/system_disk_utilities/ifreemem.html
that gives potential clues: "If you are in the middle of using an application and the system becomes unresponsive for several seconds it could be the memory manager working and claiming back some of the Inactive memory for your application to use". And it sounds like this little util may help with that (freeing up inactive memory all at once). I'll have to try that out tonight.
> This isn't quite right. Wired memory is memory
> that can't be paged out to the disk, it has to
> stay in the RAM. This makes it untouchable in a
> way, but not in the "another application can't
> 'borrow' it" way.
Right. What I meant by this is that wired memory is what the OS needs to manage running applications. Application data can be swapped out, but page tables etc. are needed by the OS to handle address translation, dynamic linking and all of that other good stuff that modern OS's do.
Jeffrey: Wired memory is a concept that exists in OS X because of its UNIX underpinnings (BSD). As to Windows instability tangentially: it's a stretch to equate the two (http://en.wikipedia.org/wiki/General_Protection_Fault).
March 07 2007 at 1:33 AM Report abuse Permalink rate up rate down Reply"[Wired memory is] used by the OS [which] is pretty much untouchable. Another application can't 'borrow' wired memory"
This isn't quite right. Wired memory is memory that can't be paged out to the disk, it has to stay in the RAM. This makes it untouchable in a way, but not in the "another application can't 'borrow' it" way.
http://docs.info.apple.com/article.html?artnum=107918
nice article, i checked up on my activity monitor and killed some of the memory eating apps and processes that i didnt need and it helped a lot!
March 06 2007 at 8:22 PM Report abuse Permalink rate up rate down ReplyI am the LEAST tech savy person to ever post her (but I run circles aroun my parents)
I always thought that the fact that Apple's strict adherance to this "wired memory" that no developers could touch is why the mac platform is more stable than windows of the past. I'm not sure if it's true, but someone told me that in th past, every windows developer (not MS, just external) was using this memory, and this is why there were so many conflicts between programs storing and accessing in "protected" ares.
Is this true, or am I WAY off the boat?
Hot Apps on TUAW
Deals of the Day
more deals- Altec Lansing Octiv Duo iDock for $48 + free shipping
- Used Apple iMac 17" Core 2 Duo 1.83GHz for $430 + $28 s&h
- Lounge Deluxe Stand for iPhone / iPod touch for $28 + $8 s&h
- Brookstone Surround-Sound Earbuds for $14 + $7 s&h
- Refurbished Skullcandy Tokidoki Smokin' Buds Mic'd Headset for $5 + $2 s&h
- Stitchway Backup Battery for iPod / iPhone for $5 + free shipping
Software Updates
more updates- EFI Firmware Update brings Lion Internet Recovery to 2010-model Macs
- OS X Lion 10.7.3 released with Safari 5.1.3, Wi-Fi bug fix
- Aperture updated to 3.2.2, addresses Photo Stream issue
- Apple updates Keynote to address Lion issues
- Google Search app gets new look on iPad
- Apple releases Apple TV Software Update 4.4.3



7 Comments