Questions tagged [virtual-memory]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
51
votes
13answers
57k views

Why would I disable swap file in Mac OS X?

I came across a thread about installing an SSD drive in MacBook Pro. Someone in the comments also recommended to disable the swap file but didn't say why: sudo launchctl unload -w /System/Library/...
21
votes
5answers
16k views

What does it mean if I have lots of “Inactive” memory at the end of a work day?

After a day's of work at my MacBook Pro running Mac OS X 10.6.5, Activity Monitor shows that the majority of my computer's 8 GB of memory is "Inactive", and only a tiny sliver of the pie chart is "...
8
votes
2answers
1k views

Trouble Understanding Inactive Memory in MacOSX

I thought that I understood how MacOSX manages memory, but recently I’ve become baffled by its performance. Here is the situation: I have a brand new Core i7 system with 8GB of physical memory ...
16
votes
2answers
13k views

vm_compressor_mode (vm.compressor_mode) values for enabled compressed memory in OS X

Background In Super user, with an accepted answer: Disable compressed memory in Mac OS 10.9 Mavericks? Also in Super User: how to get memory compress back in Mac OS 10.9 Mavericks? – and from ...
8
votes
1answer
5k views

Why is it that my Mac would rather swap than clear inactive memory?

Why is it that my Mac (running 10.8 Mountain Lion) would rather swap than clear inactive memory? I know people say that the Mac OS manages itself and whatever, but there is a serious performance dip ...
80
votes
6answers
146k views

What I can delete from /private/var/vm?

What is this folder? It's huge and I can use the extra room. I've read sleepimage isn't necessary—is this true? Should I just deal with it? Is the "private" folder emptied automatically, or would I ...
33
votes
3answers
36k views

How can I move virtual memory swap files to a different drive or partition?

note: This is a question that I asked on SuperUser a while ago. I'm re-posting it here because I think it belongs here. By default, Mac OS X stores its swap files in /private/var/vm/. I would like to ...
5
votes
1answer
6k views

Mac virtual memory: how to make OS X create swap (page) files as freely with a normal boot as it does with a safe boot (swapfile1 etc)

Background When my MacBookPro5,2 with 8 GB memory boots in safe mode I see that the operating system causes dynamic_pager(8) to create swap files in a way that's relatively unrestrained. In the file ...
11
votes
2answers
2k views

vm_compressor=VM_PAGER_DEFAULT in Yosemite caused freeze when physical memory was full

The memory compression caused frequently lag so I tried turning it off by using the command sudo nvram boot-args="vm_compressor=1" The lag was gone but I got crashing freeze when I opened some ...
12
votes
3answers
18k views

How does memory management work in Mac OS X?

I am a university student who has been trying to write a compare and contrast paper between how Windows, Linux, and Mac OS X manage memory. For instance, with Windows, it's physical memory (RAM) and ...
18
votes
2answers
9k views

What is memory pressure, and how do I relieve it?

I have had my machine for more than a year now, and I'm looking at Memory Pressure in the Activity Monitor. What is this memory pressure and How do I "relieve" this memory pressure from my system? ...
8
votes
1answer
15k views

Is there a way to limit the size of the disk swap file in Mac OS X?

It seems to be that in OS X, whenever you are out of ram the system happily swaps to disk. This easily becomes an disaster due to the fact that the swapped out memory eventually fills my drive. On my ...
5
votes
2answers
1k views

Inspecting kernel_task

I have two MacBooks, one with a fresh OS X install and one with an older install. The older one has a kernel_task taking 1.52 GB of RAM. The newer one—416 MB. These aren't identical machines or ...
9
votes
2answers
3k views

How can virtual memory be greater than the total available space?

Why does my MBP sometimes report VM Size: 300+ GB in Activity Monitor under System Memory tab, when my hard disk size is only 250 GB (total) and RAM is 4GB? I know it can't magically get that extra ...
7
votes
2answers
5k views

Disable inactive memory swapping

Background: OSX keeps some information in RAM that is no longer used, but was recently used. This is called inactive memory, and is intended to improve user experience by speeding up some actions: ...
12
votes
4answers
21k views

Safari is using too much RAM. How can I reduce its memory footprint?

I'm finding Safari (Latest - v5.0.2) to be even more of a memory hog than usual. (Currently using 465mb of RAM with only this tab open, but having been running for a while) Closing it and ...
4
votes
1answer
2k views

find what's producing inactive memory

First of all i'd like to ask politely for all of those who feel the need to explain it to me how perfect apple's memory management is to ignore this thread. A little background: The theory goes that ...
4
votes
1answer
416 views

In Activity Monitor, how can Swap Used be more than Page Outs?

I am trying to understand the relationship between Page Outs and Swap Used as displayed in Activity Monitor. Currently, Activity Monitor shows: Page outs: 1.6 MB Swap used: 8.1 MB How can there ...
24
votes
3answers
66k views

What are the “sleepimage” and “swapfile” documents?

I was using Disk Inventory X and found a file called sleepimage in /private/var/vm/ It takes up 4 GB! I also found numerous other files in the same folder called swapfile0 swapfile1, etc. What are ...
7
votes
2answers
786 views

How can I diagnose really poor performance of my 13" MBP 2011 on 10.6?

The specs are: 2011 MBP 13" Core i7 4Gb RAM 320Gb HDD (not SSD) I use the system for work everyday, I almost always run the following: Mail.app Chrome (7-10 tabs) Terminal (2-3 sessions) Skype ...
7
votes
4answers
25k views

Startup disk has no more space available for application memory?

I purchased a new Macbook Pro (8,3) last April, and have been using it heavily for xcode development, and little else. This morning a message popped up: "Your Mac OS X startup disk has no more space ...
6
votes
2answers
5k views

what do App Memory, Wired Memory, and Compressed mean?

In Activity monitor, what do App Memory, Wired Memory, and Compressed mean? For example, I am used to the columns in the output of free from procps-ng under Linux. By the way, how can I install ...
4
votes
2answers
949 views

Why is my memory still inactive after purging?

I'm trying to understand how memory is allocated on my machine. I have read, and believe I understand, these posts and associated links: Trouble Understanding Inactive Memory in MacOSX, Inactive ...
5
votes
1answer
532 views

Activity Monitor show no processes

With 10.13. I using Item2 to compile golang (src/all.bash). When cpu is get 100% The Item2 can't response. I have already open Activity Monitor. But I can't force quit the Item2. Then I quit ...
4
votes
1answer
739 views

OS X: Memory usage freaking me out

I know, OS X 10.10 memory management knows what it does, it is good, you shouldn't question it. But this, I do not understand. I have 16 GB of RAM, 6 GB used, plus 2.5 GB app-cache, 1 GB file-cache ...