All Posts by Date or last 15, 30, 90 or 180 days.
also by Lloyd: diglloyd.com photography and WindInMyFace.com
Thank you for purchasing through links and ads on this site.
OWC / MacSales.com...
diglloyd Deal Finder...
Buy other stuff at Amazon.com...
Upgrade the memory of your 2019 iMac up to 128GB
877-865-7002
Today’s Deal Zone Items... Handpicked deals...
$140 $60
SAVE $80

$1499 $899
SAVE $600

$799 $529
SAVE $270

$1180 $1050
SAVE $130

$150 $80
SAVE $70

$2399 $2159
SAVE $240

$447 $250
SAVE $197

$100 $65
SAVE $35

$1999 $1799
SAVE $200

$1099 $899
SAVE $200

$259 $209
SAVE $50

$1199 $1079
SAVE $120

$239 $239
SAVE $0

$599 $199
SAVE $400

$819 $649
SAVE $170

$348 $298
SAVE $50

$2799 $2149
SAVE $650

$750 $450
SAVE $300

$300 $170
SAVE $130

$1099 $899
SAVE $200

$280 $220
SAVE $60

$1299 $1169
SAVE $130

$998 $498
SAVE $500

$4499 $4499
SAVE $0

How to get a Better Idea of Memory Usage: Purge the OS X File System Buffer Cache

It can be confusing to evaluate available memory, because OS X can use many gigabytes for the file system cache. Thus, it can be useful to purge the OS X file system buffer cache for that reason, and another:

  • Before performing or repeating a performance test, for consistent results.
  • To assess system memory usage without a bloated disk cache.

In Terminal, use sudo purge:

diglloydMP:MPG lloyd$ sudo purge

Use of 'sudo purge' is harmless; it simply empties file system caches. The 'man' page states:

Purge can be used to approximate initial boot conditions with a cold disk buffer cache for performance analysis. It does not affect anonymous memory that has been allocated through malloc, vm_allocate, etc.

The results can be seen in Activity Monitor under memory usage. The cache will not go to zero because the system keeps some important file system structures cached.

15.6GB of cache used before sudo purge, 1.09GB after (toggle to compare).

Cached files before and after

Save the tax, we pay you back, instantly!
View all handpicked deals...

Sony Alpha a6500 Mirrorless Digital Camera with 16-50mm Lens and Free Accessory Kit
$1499 $899
SAVE $600

diglloyd.com | Terms of Use | PRIVACY POLICY
Contact | About Lloyd Chambers | Consulting | Photo Tours
Mailing Lists | RSS Feeds | Twitter
Copyright © 2020 diglloyd Inc, all rights reserved.
Display info: __RETINA_INFO_STATUS__