Why is there so much wired memory used on my Macbook Pro?

Hi everybody,


I just installed 8GB of kingston ram on my macbook pro 13 inch 2009 today 😀


I finished installing it, and logged back to my computer. For some reason, it says that 5.32 GB of it is wired, which i read online, is unusable.


This is really weird, because when i had 4 gb of ram, much less was wired. how can i fix this?


thanks a lot!

Mac OS X (10.7.2), 8GB Ram, 2.26 GHz

Posted on May 11, 2012 11:50 AM

Reply
17 replies

Apr 14, 2017 1:25 PM in response to wmwu64

There is nothing wrong with "Wired Memory".

From: https://developer.apple.com/library/content/documentation/Performance/Conceptual /ManagingMemory/Articles/AboutMemory.htm…

"Wired Memory

Wired memory (also called resident memory) stores kernel code and data structures that must never be paged out to disk. Applications, frameworks, and other user-level software cannot allocate wired memory. However, they can affect how much wired memory exists at any time. For example, an application that creates threads and ports implicitly allocates wired memory for the required kernel resources that are associated with them.

Table 2 lists some of the wired-memory costs for application-generated entities.

Resource

Wired Memory Used by Kernel

Process

16 kilobytes

Thread

blocked in a continuation—5 kilobytes; blocked—21 kilobytes

Mach port

116 bytes

Mapping

32 bytes

Library

2 kilobytes plus 200 bytes for each task that uses it

Memory region

160 bytes

As you can see, every thread, process, and library contributes to the resident footprint of the system. In addition to your application using wired memory, however, the kernel itself requires wired memory for the following entities:

  • VM objects
  • the virtual memory buffer cache
  • I/O buffer caches
  • drivers

Wired data structures are also associated with the physical page and map tables used to store virtual-memory mapping information, Both of these entities scale with the amount of available physical memory. Consequently, when you add memory to a system, the amount of wired memory increases even if nothing else changes. When a computer is first booted into the Finder, with no other applications running, wired memory can consume approximately 14 megabytes of a 64 megabyte system and 17 megabytes of a 128 megabyte system.

Wired memory pages are not immediately moved back to the free list when they become invalid. Instead they are “garbage collected” when the free-page count falls below the threshold that triggers page out events."


If you are experiencing problems, start a new thread and provide details of your issue and your equipment.

Apr 14, 2017 12:37 PM in response to ericrootbeer

I too have this problem. I'm using osx 10.7.5. I've noticed that this occurs if I'm doing a lot of streaming such as on Youtube. I have a feeling it is related to FLASH. This usually gets fixed if I reboot a couple of times. However, I get the spinning wheel when this happens. It spins for quite a while (several minutes), but then the problem is fixed. Any idea what the OS is doing to fix this? Even though it fixes the problem, it's a pain to have to wait so long to use my Mac.


Any way of freeing up the wired RAM without rebooting?

May 11, 2012 11:59 AM in response to ericrootbeer

Also:


Select All Processes from the Processes dropdown menu. Click twice on the CPU% column header to display in descending order. If you find a process using a large amount of CPU time, then select the process and click on the Quit icon in the toolbar. Click on the Force Quit button to kill the process. See if that helps. Be sure to note the name of the runaway process so you can track down the cause of the problem.

May 11, 2012 12:01 PM in response to ericrootbeer

Wired memory is not unusable. It is memory that is both being used and marked as not swappable back to disk by the Virtual Memory Manager.


Now, 5.32 GB of wired memory does seem high, generally speaking, but since I don't know what applications you have running I can't say anything about whether it really is high in your specific case. For example, VMWare and Parallels both cause the memory assigned to virtual machines as RAM to be wired (or at least a good chunk of it) for performance reasons. Do you use any VMs? It's entirely possible that professional music and video editing applications could do similar things (although I can't say because I don't use any).


You can look at Activity Monitor and try to find processes whose Real Memory is >= their Virtual Memory; these would tend to be the ones with wired memory. Processes where the Virtual Memory is larger than the Real Memory are definitely eligible for paging in and out.

Jun 14, 2012 10:30 PM in response to ericrootbeer

Hi,


Restart is not a sustainable solution because after restart wired memory counts up again until all 8 GB are consumed. I have a similar problem with my Macbook Pro 2011, 8GB. Wired memory counts up to 100% over a period of 4-5 regular usage days. The more I use the macbook, the more wired memory grows until I have to restart again, otherwise the machine becomes slow because it uses the harddrive for memory. This is not normal!


Attached is a screenshot of the activity monitor. I'm not able to identify the process which leaks the wired memory.


But once I had an eyeopening experience: I was about to restart my totally wired memory overloaded macbook but canceled the shutdown because of some reason. Some of the processes and programmes were already terminated and SURPRISE, the wired memory was down to 10%! The 8 Gb were mostly shared by active and inactive memory, as it should be! So some process was terminated during shutdown which caused the leak and even freed all of the wired memory. I did work with the macbook for 2 more days without any memory problem. Once I restarted, the leaking problem went on again.


My gut-feeling says the hole problem started when I installed VM ware fusion a while ago. But I did a clean uninstall.


The solution could be to identify the leaking process, but how should I do this? It is not clear to me wether wired memory is real, virtual, private or shared memory. Is there any tool which identify memory leaks?


According to g_wolfman, the only process with a hugh difference between real and virtual memory is the kernel_task and the many Chrome Renderer processes. Have always 30 tabs open in chrome plus Safari (Flash disabled). I'm not able to terminate the kernel_task of course.


Is there any way to isolate the troublesome process? There is no save start mode like in Microsoft Windows possible? This would be the first think I would do, checking if the problem persists in save mode.


Disabled every start login objects btw.

User uploaded file

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Why is there so much wired memory used on my Macbook Pro?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.