Questions tagged [virtual-memory]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
0 answers
71 views

Why is my system running out of application memory when there is plenty of free disk space to swap?

I am running some extremely memory intensive calculations that can balloon to use a great deal of memory for a process (a java program). I have increased the maximum java heap size to 64 GB to allow ...
user avatar
-1 votes
2 answers
224 views

16GB M1 Mac running slow after couple days of usage

After a fresh restart, everything is smooth. During the next couple of days of regular usage of the system, a problem of responsiveness gradually increases, until you can count a full second between ...
user avatar
  • 393
2 votes
1 answer
41 views

Why is __PAGEZERO missing from vmmap output at Darwin 21.2.0

when I run vmmap for a process the regions start with the __TEXT entry rather than __PAGEZERO as in sample output at documentation otool -l also shows Load command 0 cmd LC_SEGMENT_64 cmdsize ...
user avatar
  • 121
1 vote
0 answers
40 views

Custom Docker resource limits

I'm using Docker desktop on Monterey, on an M1 Mac. Some commands in an Ubuntu-based container are running out of memory and getting killed by the system. I opened a second terminal window and ...
user avatar
1 vote
1 answer
52 views

Why is sleepimage and swapfile filled with zeros?

If I look at the contents of either sleepimage or swapfile in /var/vm, I find that it's just 1.07G of null bytes. I'd expect them to contain actual data, or if they're not being used to be a 0B file. ...
user avatar
-1 votes
1 answer
294 views

How can I delete the files in /System/Volumes/VM?

Just as an experiment/exercise, I tried deleting the swap files in /System/Volumes/VM but no matter what I did, it was prevented. sudo rm - operation not permitted sudo xattr - didn't return anything ...
user avatar
  • 347
2 votes
1 answer
79 views

Where are the swap files stored?

The swap files used to be stored at /var/vm but when I look there on Catalina, the only thing I find is a sleepimage of approximately 1 GB. Where is the swap stored? Want to know how much of the disk ...
user avatar
  • 696
0 votes
1 answer
116 views

Is it safe to encrypt the VM Volume on recent macOS versions?

Background info: I need my McBook to satisfy a newly-rolled-out policy of having "full disk encryption". The relevant software checks this by seeing if all user-mountable volumes/partitions ...
user avatar
  • 62
1 vote
1 answer
2k views

Docker Abusing Swap on macOS Monterey

On macOS Monterey, the Docker process is using many GB of swap (virtual memory). So much swap, in fact, that my SSD filled up and caused file corruption. Here are some things I've done to try to limit ...
user avatar
  • 226
0 votes
1 answer
74 views

How do you delete the swap space?

My 2015 Mac Book pro is running low on memory, and so it has switched to using the swap space. Though now the swap space is taking up all the computer's virtual memory. Is there any way to delete the ...
user avatar
3 votes
1 answer
958 views

Is there a command line tool that accurately describes the amount of used memory?

By "accurately describes the amount of used memory", I mean does it report (or can it be calculated) the same amount of memory use as described in Activity Monitor? My intent is to find a ...
user avatar
1 vote
1 answer
83 views

After using my MacBook Pro for a while, it becomes very laggy (Swap usage high)

I have a decent spec MacBook Pro: The MBP has 64GB of RAM. This is the output of htop command after 6 days uptime: As you can see, the Swp usage is quite high. Note: I do have Docker and JetBrains ...
user avatar
0 votes
0 answers
288 views

How to change swap location on macOS versions like Mojave with SIP?

I am using Mobile simulator and virtual machines which memory intensive. There are a few posts on internet about how to change the location of Swap files on macOS versions with System Integrity ...
user avatar
  • 1
1 vote
2 answers
297 views

Will an iPad with more RAM experience fewer app suspensions? [closed]

My workflow requires me to frequently switch back and forth between Google Docs and other apps and this leads to my Google doc being repeatedly closed. My understanding is that the cause is “app ...
user avatar
  • 777
1 vote
2 answers
682 views

macOS Catalina RAM usage - 2GB at boot?

I am trying to understand why my almost factory settings 13-inch MacBook Air 2017 with 8GB RAM available takes 2.3GB to just boot. The result is that if I start having Chrome+Dropbox+something to ...
user avatar
  • 119
0 votes
1 answer
166 views

Figure out used swap from command line?

When looking at the Activity Monitor it says that I am using 459.5MB of swap. I would like to figure this number out from the command line. I have been able to duplicate all the other memory numbers ...
user avatar
2 votes
0 answers
122 views

MacBook Pro 15 uses 60+ GB of swap memory

So, today something quite weird happened. I was watching a video on my MacBook Pro, and I noticed the fans started to ramp up quite a bit. I didn't think too much of it at first, since it often ...
user avatar
0 votes
1 answer
14k views

How do I increase size of Virtual Memory in Mac OS Catalina?

I am running Mac OS Catalina 10.15.6 with APFS formatted disk on an unsupported MAC using dosdude1 guide. My experience from windows is I had to make careful calculations on pagefile.sys and run into ...
user avatar
0 votes
0 answers
17 views

What is Catalina (and no other OSX) doing with/to the disk? [duplicate]

My question is at Mysterious disappearance of disk space on Catalina (and not any other OSX) Tetsujin closed it pointing to How can I figure out what's slowly eating my HD space? but just look at ...
user avatar
  • 21
0 votes
0 answers
113 views

iMovie pinwheels (spins) constantly on a brand new MacBook Pro with 16GB RAM

MacBook Pro (13-inch, 2020, Four Thunderbolt 3 ports) 2.3 GHz Quad-Core Intel Core i7, 16 GB 3733 MHz LPDDR4 macos 10.15.5 (19F101) YouTube video that demonstrates the problem: https://www.youtube.com/...
user avatar
  • 344
0 votes
1 answer
132 views

Swp memory no longer being used Macbook Pro Mid 2015

Does anyone know why my macbook pro 15in mid 2015 is no longer using swap memory. I can tell via htop in terminal. That is the HTOP of my machine. swp is saying 0k/0k. Not sure what to make of it or ...
user avatar
  • 101
2 votes
3 answers
189 views

How to hunt down which tab or webpage (on Google Chrome) used a lot of memory?

I already know Google Chrome was using a lot of memory for a badly behaving webpage. The issue was I don't know which webpage was doing that. Sometimes after a day or two, possibly some webpage on ...
user avatar
  • 9,180
1 vote
1 answer
431 views

How large is my 2012 MacBook Air's L1 cache? Are they larger now?

Discussion in comments below this answer to improving speed of this numpy-based diffraction calculator suggest that the reason the script in the answer runs slow for me but fast for others (even on ...
user avatar
  • 1,330
2 votes
0 answers
95 views

64GB MacBook Pro using Swap space

Any idea why my computer is using swap?
user avatar
2 votes
3 answers
995 views

Use APFS VM Volume From Another Disk

Due to the sad demise of my main machine, I'm booting a much less capable system from an external drive to keep myself going while I await a replacement. The machine itself has its own internal drive. ...
user avatar
  • 1,197
0 votes
1 answer
8k views

Can I upgrade the memory in a MacBook Pro 2019?

my Mac is a MacBook Pro 2019 I do not have any information about Mac or cp. I am using R and I am running a heavy model, but I can not get a result because of lack of memory. Is there any way to fix ...
user avatar
  • 261
8 votes
1 answer
1k 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 ...
user avatar
  • 3,631
3 votes
0 answers
1k 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 ...
user avatar
  • 4,610
2 votes
1 answer
3k 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? ...
user avatar
  • 121
4 votes
1 answer
78 views

KEUbvKya proccess

KEUbvKya process run in my macbook and using 99% cpu and 4gb memory .I Cannot End prccess Plz see the picture
user avatar
  • 43
17 votes
3 answers
14k 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 ...
user avatar
  • 434
1 vote
2 answers
1k 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 ...
user avatar
  • 21
10 votes
2 answers
46k 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 ...
user avatar
30 votes
1 answer
30k 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 = ...
user avatar
  • 11.9k
14 votes
12 answers
17k 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 ...
user avatar
  • 243
9 votes
1 answer
14k 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 ...
user avatar
  • 211
1 vote
1 answer
43 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 ...
user avatar
3 votes
0 answers
413 views

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

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 ...
user avatar
  • 237
3 votes
1 answer
5k 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/...
user avatar
3 votes
0 answers
599 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 ...
user avatar
  • 31
5 votes
1 answer
687 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 ...
user avatar
  • 151
0 votes
1 answer
874 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 ...
user avatar
  • 59
2 votes
0 answers
76 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: /...
user avatar
  • 283
-1 votes
1 answer
288 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 ...
user avatar
  • 721
4 votes
3 answers
635 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 ...
user avatar
  • 945
0 votes
1 answer
8k 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,...
user avatar
0 votes
0 answers
474 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 ...
user avatar
  • 254
14 votes
2 answers
13k 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 ...
user avatar
  • 535
1 vote
2 answers
167 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 ...
user avatar
  • 254
3 votes
2 answers
193 views

OS X swapping with free memory available?

I've noticed my machine keeps swapping memory even though there is (at this moment) around 7 GB of RAM still free; does anyone have any insights on why this is happening, if I should care, and if so, ...
user avatar