Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more
20 votes

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

This wonderful Apple Support article says it all: https://support.apple.com/en-us/HT201464#memory I'll give the short version here: There are three different types of memory, as you have noticed - ...
perhapsmaybeharry's user avatar
19 votes

How to free up a swap space manually without restart?

As for the workaround, restarting/killing WindowServer process temporarily helped: # sudo pkill -HUP -u _windowserver However, this will kill all processes, logs you out and re-open all windows ...
kenorb's user avatar
  • 12.7k
17 votes

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

Here's what Apple says the graph means: https://support.apple.com/en-us/HT201464 Memory Pressure: The Memory Pressure graph helps illustrate the availability of memory resources. The graph ...
Symmetric's user avatar
  • 281
14 votes
Accepted

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

The strict (rather trite) answer to the question is that the amount of memory being used is equal the amount physical memory. But let's be more helpful and get some answers as to how that physical ...
Gilby's user avatar
  • 11.1k
13 votes
Accepted

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

I have the same issue and completely sympathise. Unnecessary swapping in the face of other options (e.g. shrinking the cached files area) has been a problem for years. It's made even worse under ...
Andrew Hodgkinson's user avatar
11 votes
Accepted

Is it safe to remove /vm/swapfile0?

Boot up in Recovery mode and use the Terminal to remove the swapfile0 file. That is fully safe to do.
jksoegaard's user avatar
  • 78.1k
10 votes
Accepted

MacOS uses virtual-memory / swap a lot

First - yes, the OS in general will use RAM before swap. There's no loss of computational power involved in that. You seem to have jumped to the conclusion that macOS is using swap, when it could as ...
jksoegaard's user avatar
  • 78.1k
9 votes

Mac OS X is not creating a swap file

I had the same problem when I installed High Sierra on external SSD. Volume disk3s4 647DA4A9-7E85-4523-A4D2-F0392D3789D4 --------------------------------------------------- APFS ...
Michael Golban's user avatar
9 votes

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

I say this with kindness, but no, no, no. Don’t change the fundamental design and process of virtual memory management of macOS because you have a system or workload that leaks so badly that you have ...
bmike's user avatar
  • 237k
8 votes
Accepted

Mac OS X is not creating a swap file

I have had the same problem running High Sierra (and Mojave since) off an external SSD. I haven't tried Glorfindel♦'s suggestion to wipe the disk to Sierra on HFS+ before restoring to High Sierra, ...
lint's user avatar
  • 96
8 votes
Accepted

How can I increase the maximum allowed swap space?

Well, it's been 7 years after this question was asked, but I just spent quite some time on this question, and at least as of Jun 2021 (macOS Monterey, commit 2ff845c2), the swap size limit is ...
wizzard0's user avatar
  • 196
8 votes

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

First and best line of defence would be to kill processes or services not needed. Then you might control the vm compression: $ sysctl -a vm.compressor_mode vm.compressor_mode: 4 Set these ...
LаngLаngС's user avatar
  • 8,339
7 votes
Accepted

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

This happens because of a change that happened within the High Sierra versions. It is unknown whether this is a bug, or simply a change of hearts at Apple, but with High Sierra the location of the ...
jksoegaard's user avatar
  • 78.1k
7 votes
Accepted

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

The short answer, is you do nothing. The system decides what memory gets swapped to disk and allocates space as needed. The system allocates virtual memory addresses up to ~18 exabytes so that it can ...
bmike's user avatar
  • 237k
6 votes
Accepted

Figure out used swap from command line?

You can get the current swap usage on the command line by running the following command: sysctl vm.swapusage It will output something similar to: vm.swapusage: total = 4096.00M used = 2743.50M free ...
jksoegaard's user avatar
  • 78.1k
6 votes

Will an iPad with more RAM experience fewer app suspensions?

Blame the apps, not the hardware is my overall message. The icons for some apps are larger in code size than the first version of Adobe Illustrator and the Google model of web apps and complicated iOS ...
bmike's user avatar
  • 237k
5 votes

Is it safe to remove /vm/swapfile0?

The system reserves that file and cleans excess on restart. I'd leave it alone whether it's safe or not to prune (or attempt to prune). The system compresses memory and needs to have this space to ...
bmike's user avatar
  • 237k
5 votes

Can I upgrade the memory in a MacBook Pro 2019?

The memory in the 2019 MBP (two Thunderbolt 3 ports) is soldered to the motherboard, and is not user-upgradeable.
DavidRecallsMonica's user avatar
5 votes
Accepted

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

Chrome has a task manager that will be handy in case you have too many tabs to close them and manually note what memory gets reclaimed. https://support.google.com/chrome/answer/1385029 On your ...
bmike's user avatar
  • 237k
5 votes

Will an iPad with more RAM experience fewer app suspensions?

It's more complicated than just "more RAM = less app suspension". For instance, flagship Android phones today can have 3-4 times the RAM that iPhones have, but because of software ...
aequinox's user avatar
4 votes

How to access /dev/mem in OSX?

I think I got it to work on macOS Sierra! I downloaded comex's project: Kmem Project I compiled the kext, fixed the permissions and then loaded it! Using terminal I went into /dev and ls showed both ...
Nickolas Pylarinos's user avatar
4 votes

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

There's nothing magic about compressed memory. It's something that was added to 10.9 as one last step before the system swaps RAM out to storage. According to John Siracusa, this serves three major ...
bmike's user avatar
  • 237k
4 votes

Mac OS X is not creating a swap file

The dedicated VM APFS volume is not mounted properly: +-> Volume disk4s4 5DE0EA6B-CA57-4226-B038-2E256FCC5B98 --------------------------------------------------- APFS Volume Disk (Role): ...
klanomath's user avatar
  • 66.5k
4 votes
Accepted

Falsy estimates of RAM usage with command line tools

First OS X is not Linux so don't assume that Linux doxumentation works. I think you have actually got the correct answer in the output of time - the maximum resident set size is 73MB. (This code ...
mmmmmm's user avatar
  • 30.3k
4 votes
Accepted

Where are the swap files stored?

See this thread: https://discussions.apple.com/thread/252816786 They likely changed that with Big Sur. I think it was mounted to /private/var/vm/ in Catalina. Mounting it to /System/Volumes parallels ...
anonymousaga's user avatar
  • 1,401
3 votes

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

Most of the efficiency comes from large blocks of read-only memory being shared between applications. Most graphical Mac applications use common frameworks. Where possible macOS only loads one ...
Graham Miln's user avatar
3 votes

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

Regarding procps-ng - it doesn't make sense to install it on OS X. The utilities in procps-ng are specifically made to parse, interpret and display information from the /proc file system on Linux ...
jksoegaard's user avatar
  • 78.1k
3 votes

Disable inactive memory swapping

Update 2020 This question was asked in 2012 and this answer was written in 2020, and some things have changed in the interim, but a lot has remained the same. I believe most of this question, the ...
Old Pro's user avatar
  • 6,132
3 votes

When will Finder use large amount of memory?

Removing 1k screenshots and images from the desktop reduced Finder's RAM usage from 1.5G+ to 220 MB instantly without relaunch.
Wumms's user avatar
  • 130
3 votes
Accepted

KEUbvKya proccess

Open the Terminal app in the Utility folder. Type kill -9 2746 that is sending the kill command (9) to the Process ID 2746 which is your (KEUbvKya process). If it reincarnates (comes back to life) ...
Ruskes's user avatar
  • 48.2k

Only top scored, non community-wiki answers of a minimum length are eligible