Questions tagged [virtual-memory]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
5
votes
8answers
6k views

Mac OS X is not creating a swap file

I recently started running into a lot of memory issues on my mac running High Sierra. Rather than the force quit window coming up, my system would freeze completely and the only way to recover is to ...
1
vote
0answers
31 views

How to tell a process not to use swap and virtual memory on mac?

I would like to run a specific program and tell it not to use swap or virtual memory. I'm ok with having the OS kill the process when it is OOM. I don't want to change the machines general ...
6
votes
1answer
260 views

What is the difference between “/private/var/vm” and “/vm”?

I’m wondering why my Mac (running macOS High Sierra 10.13.6) has both /private/var/vm and /vm: $ ls -l /private/var/vm /vm /private/var/vm: total 4194304 -rw------T 1 root wheel 1073741824 May 17 ...
16
votes
2answers
8k 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? ...
3
votes
0answers
75 views

Why does backupd cause excessive (tens of GB) swap memory usage when doing a Time Machine backup?

My MBP has only 8GB RAM, and whenever it does an hourly Time Machine backup it starts to crawl. This causes the backup to take a very long time for not much data. At this point, Swap Memory usage is ...
12
votes
1answer
5k views

How to free up a swap space manually without restart?

I'm on High Sierra on MacBook Pro with 16GB of RAM with SSD. Got 15G of swap files, is there any method of freeing swap space/files without restart? $ sysctl -a | grep swap vm.swapusage: total = ...
7
votes
3answers
3k views

Tell macOS to only use swap and compressed memory when really needed (macOS 10.14 Mojave)

As disabling swap and/or compressing memory is not recommended and also not a stable option after 10.9 Mavericks (despite the vm setting exists), I'm doomed after few days of running my Mac with my ...
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 ...
1
vote
1answer
467 views

30GB out of 32GB being used for wired memory?

I have 32GB of memory and am downloading stuff over FTP using FileZilla. My memory usage is 31GB with 30GB of that being allocated for wired memory. Is this normal when downloading stuff over FTP? ...
2
votes
2answers
15k views

Is it safe to remove /vm/swapfile0?

I found a file of size 1 GB in /vm/swapfile0, that has not been accessed in a long time, according to last access date value in ls -l. My assumption is, that this file is left over from an older ...
5
votes
1answer
497 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
58 views

KEUbvKya proccess

KEUbvKya process run in my macbook and using 99% cpu and 4gb memory .I Cannot End prccess Plz see the picture
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 ...
1
vote
1answer
369 views

OS will not mount the VM partition. Virtual memory must be forced to work

Virtual memory was broken on my Mac (cMP 5.1) for several months, with Sierra, High Sierra, and Mojave. Apple support was useless. I finally figured out that I was missing all the invisible ...
1
vote
4answers
16k views

I run out of RAM on a 8GB MacBook Pro 15"

I'm a designer using Snow Leopard on a MacBook Pro 15" (i7) with 8GB Ram, 500GB (180GB free) (2010 model). I usually use Chrome (4/5 tabs), Firefox (1/2 tabs), Skype, VM Ware Fusion (with Win XP, ...
11
votes
2answers
2k views

How to access /dev/mem in OSX?

How I can access /dev/mem (or /dev/kmem, /dev/pmap) equivalent device in OSX? As far as I know it was removed in some point. Can I create this node manually somehow or any other way of dumping the ...
4
votes
1answer
5k views

MacOS uses virtual-memory / swap a lot

I have a MacBook Pro at work and I think it uses too much swap instead of RAM. Model Name: MacBook Pro Model Identifier: MacBookPro13,1 Processor Name: Intel Core i5 Processor Speed: 2 GHz ...
1
vote
1answer
28 views

What could cause swapping when there is no memory spike?

I had a performance issue recently, which I was able to capture in the Monitor. It looks like there was plenty of free memory, but then suddenly the graph goes red, with no real spiking. Could this ...
2
votes
0answers
67 views

Swap is filling up and shutting down applications, but most of my RAM is free [duplicate]

I have a mac pro with 64 GB of RAM and a 14 GB swap file. I'm running a Jupyter notebook that eats up a lot of memory, so much that the OS is telling me it's out of memory and I need to close ...
2
votes
1answer
2k views

Why is memory management in macOS more efficient than in Linux?

I have been a Linux user for four years. Recently, I have been using macOS and I see it has very efficient memory management compared to Linux. For example, here is a description of the documents/...
3
votes
0answers
581 views

Why is Activity Monitor showing two different memory values for the same process?

In Activity Monitor, I am getting two different values for the same process, mds_stores. The usage was around 4 GB an hour ago in the list and the window. It was high because I was reindexing my ...
41
votes
1answer
2k views

How is the Y value for the Memory Pressure graph in Activity Monitor calculated?

How is vm.memory_pressure's value bounded / calculated on OS X 10.10.2 - Yosemite? I've researched several answers to this question and am trying a few things on the command line to get exact values ...
0
votes
1answer
444 views

Why does my macOS always swap while sleeping?

Firstly, I had disabled swapping and hibernatemode is set to 0 sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.dynamic_pager.plist sudo pmset -a hibernatemode 0 (macOS SIP was ...
3
votes
3answers
425 views

How to get the amount of 'Compressed Memory', per process (from Terminal)?

How can I use ps, or some variation thereof... to get a value that roughly corresponds to the "Compressed Memory" value Apple reports in Activity Monitor.app? username 52036 100.1 24.1 8026832 ...
14
votes
4answers
14k views

When will Finder use large amount of memory?

Sometimes I see the iMac with 4GB of RAM having a few MB of swap file only, and after I left for a few hours and come back, the swap file is 2.7GB. Looking into the Activities Monitor, the Finder is ...
2
votes
0answers
38 views

Shrinking VMWare flat esxi images

I've been following Moving Fusion VMs to ESXi on moving VMWare Fusion images into VSphere Cloud/ESXi, and am unsure of something that comes out of this. When running the following command: /...
79
votes
6answers
144k 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 ...
-1
votes
1answer
151 views

Falsy estimates of RAM usage with command line tools

I am trying to measure the RAM usage of MyProcess args GNU time Following this post gtime -v ./MyProcess args [..] Maximum resident set size (kbytes): 303316992 # (303 GB) [..] I clearly don't ...
2
votes
3answers
3k views

Swapfile and sleepimage file creation?

I recently installed an SDD into my MacPro, and was paying attention to the storage used, both to be comfortable the SSD size was going to be enough, and also that the TM backup hard drive wouldn't ...
0
votes
1answer
4k views

What does “Failed to open swapfile” mean and is it a problem?

A couple of times a day my fans start spinning, ready for take off. The activity manager shows that Mail is eating up my CPU, 250% and more. The console shows the following lines: 13-09-16 10:46:46,...
10
votes
2answers
9k views

Is there a way to reduce the swappiness of OS X 10.6 Snow Leopard?

I have 6GB on my old Macbook, with an SSD. I would like to avoid writing to the swap file as much as possible. Ever since my upgrade, I have always had at least 1 to 1.5GB memory "free". Yet, I ...
0
votes
0answers
459 views

Poor performance on high-end iMac 5K Retina (October 2015 model)

I've got an iMac that is performing quite poorly. The specs: OS X El Capitan 4.0 GHz quad-core (i7) 16 GB RAM I've tried everything possible to figure out what's going on, to no avail. Typically the ...
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 ...
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 ...
1
vote
2answers
152 views

iMac (Late 2015) using swap when there's still plenty of RAM left

My wife's new iMac is behaving rather oddly. Despite being a pretty powerful machine, it's rather slow and laggy. I looked into it, and it seems her swap memory is maxing out, even though there's ...
5
votes
0answers
2k views

How to increase swap memory in OS X?

I think my swap memory is hitting its fullest and would like to know how to increase it. I very often hit my 8GB RAM limits and my memory pressure (as seen in Active Monitor) goes red quite often. ...
7
votes
1answer
3k views

How can I increase the maximum allowed swap space?

When I try to do a calculation that needs to allocate and use 128 GB of memory (it is a command line program written in C), the kernel kills my process with extreme prejudice. This console log entry ...
11
votes
1answer
948 views

Why does Dashlane use so many ports?

I use Dashlane to store passwords, and I like it, but there's one problem I've had with it. I use Activity Monitor to see what's going on, and something strange has been happening with Dashlane lately....
4
votes
1answer
8k views

How do I diagnose my Python program being killed due to an out-of-memory error?

I've been building a Neural Network that analyzes large amounts of data (40G), and my iMac kills the process after it's been running for about a day. In the past, on Linux, I've created a large swap ...
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/...
33
votes
3answers
35k 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 ...
4
votes
1answer
734 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 ...
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 ...
0
votes
1answer
3k views

Should I disable Virtual Memory on SSD in OS X Yosemite?

Should I, or do I need to, disable memory swapping when my OS is installed on an SSD? I run OSX 10.10.2 with 16GB of memory. Currently, Activity Monitor reports I have 16GB of virtual memory allocated,...
0
votes
1answer
130 views

Is it possible to reserve exact amount of space for the indexing and virtual memory?

Is it possible to reserve exact amount of space for the indexing and virtual memory? I have Macbook Air with 128 GB SDD (with OS X Yosemite). When I run out of memory (free space less than 1 GB) the ...
0
votes
1answer
39 views

Retrieve Memos off ipod

I have recorded a memo and while I was recording it. The iPod died. When I turned it on it show I taped something by show 0 minutes. I try to share and it says file is 2.7mb but won't let me share and ...
1
vote
1answer
570 views

Is it possible/a good idea to use an ExpressCard SSD for swap?

I have a 48GB WinTec filemate ExpressCard SSD which I'm not currently using for anything. My idea was that I would re-partition it with a 16GB partition for swap and virtual memory (I have 8GB of RAM)...
4
votes
1answer
4k views

What is the OS X equivalent to the free command to show buffer and cache memory?

The free command displays the buffer and cache memory on Linux. What is the command to show the equivalent information for an OS X machine?
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 ...
3
votes
2answers
2k views

Delete swap partition

I made a swap partition to install Ubuntu on my MacBook Air 2011, but now I want to clean all the partitions up. However, I can't delete the "swap partition" in Disk Utility. Can anyone help me?