How to drop memory caches in macOS?

0

1

In GNU/Linux there's a way to drop_caches.

drop_caches is the command that would flush caches from the main memory.

I don't have such a command in macOS.

How to..?

174140

Posted 2019-10-17T09:19:28.000

Reputation: 859

Answers

2

From the post echo 3 > /proc/sys/vm/drop_caches on Mac OSX:

On OSX there is a purge command for that:

sync && sudo purge

sync - force completion of pending disk writes (flush cache)

purge - force disk cache to be purged (flushed and emptied)

harrymc

Posted 2019-10-17T09:19:28.000

Reputation: 306 093