2

Last week I switched from my old Macbook 15" 2014 16Gb to Macbook 16" 64Gb. With my old Mac, I was quite comfortable running Chrome, Lightroom, VSCode, and even VM at the same time.

A 2-day fresh Mac right after system restart consumes ~16Gb of RAM... It's not a file cache, it's app memory which reserved and not available to other apps. No software installed, no apps in autorun, only Apple services.

Here is the list of processes right after a system restart.

Why opendirectoryd is using 800Mb? I'm not even using Open Directory functionality. Why does loginwindow require 800Mb of memory? A corebrightnessd responsible for Night Shift functionality — 420Mb?

What the hell is going on? Why a fresh system is wasting 16Gb(!!!) of RAM just for nothing? This RAM is enough to run several ram-hungry apps.

Can we control that somehow using internal settings like sysctl?

0

3 Answers 3

2

No - there’s not a sysctl to change this on macOS that I’m aware of. The first accommodation for server workloads is to enable more processes, but that won’t affect vm allocation or recompiling the frameworks.

If for some reason you are running more server workload and want to sacrifice a little single threaded performance to let lots of daemons run well - try enaBling performance mode for server and get Apple’s tuning for that workload.

I see this as efficient use of the RAM as there’s a long history of caching aggressively and loading frameworks off disk when referenced, then balancing later on macos:

To convince yourself this is as designed, you could make a new user account, disable auto log in for any migrated accounts and get a clean restart. Per my comments, nothing looks to be drastically out of the design intent of macOS. If you wanted to dig deeper into your exact memory allocation:

  1. Grab a sysdiagnose from the brand new account
  2. Grab a sysdiagnose from your account now and in a couple days once all the third party apps you have installed are updated / stable.
  3. Push the kernel and virtual memory subsystem a bit with actual apps running - the system is going to throw RAM at anything since you have so much. I see this more froM the viewpoint that it’s wasteful to power 64 GB of RAM and not allocate it.

The system doesn’t need free RAM for anything except a new allocation.

There’s zero chance your Mac can’t allocate a ridiculous amount of RAM instantly in the above snapshot with >32 GB still free.

There a long history of expectations about memory management from perspectives of other OS / other kernels / and legitimate learning curves on macOS so I don’t doubt you’re worried a little, but we may need to get into an actual problem.

2

If you have 64 GB RAM, and only 16 GB are used. there is zero reason to keep memory usage low. Until the point where all 64 GB are used, MacOS doesn't worry about RAM usage. When you exceed 64 GB that's when it starts saving memory.

0
1

This really isn't anything to worry about. I'm using an M2 Max 14-inch MacBook Pro with 32GB of memory. I don't spend a lot of time looking at my memory usage, but when I do, I frequently see about half of my memory in use.

macOS will keep memory in reserve after an app has been recently used. This is why if you launch something big like Photoshop, quit it, and then launch it again, it will launch faster than before. Do this with any app that you haven't opened for a day or so and you will notice that the app launches faster soon after you have closed it.

Memory pressure shows how efficiently your Mac is using memory. If it's low, you're all good. macOS will figure out on its own how much memory is needed for apps and system tasks. Most Macs with 16GB and above will not run into memory issues. For me, 32GB has worked well. I often run VMs in Parallels. I configure my VMs to use 8GB of memory. Sometimes I run two VMs at the same time, and then open Photoshop or some other app that also tends to use a lot of memory. My MacBook Pro just keeps working without any slow downs.

It was the same with the 8-core i9 15-inch MacBook Pro I was using before. It also had 32GB of memory. Apple's OS's are very good at managing memory. This is why iPhones have had less RAM than most Android phones. I don't think you have anything to worry about.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .