In GNU/Linux there's a way to
drop_caches is the command that would flush caches from the main memory.
I don't have such a command in macOS.
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.Sign up to join this community
From the post echo 3 > /proc/sys/vm/drop_caches on Mac OSX:
On OSX there is a
purgecommand for that:
sync && sudo purge
sync- force completion of pending disk writes (flush cache)
purge- force disk cache to be purged (flushed and emptied)