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...
Capacities up to 56TB and speeds up to 1527MB/s
Handpicked deals...
$1599 $1199
SAVE $400

$1599 $1199
SAVE $400

$1480 $1230
SAVE $250

$3999 $2499
SAVE $1500

$1498 $1098
SAVE $400

$2897 $1797
SAVE $1100

$399 $349
SAVE $50

$899 $699
SAVE $200

$3297 $1897
SAVE $1400

$749 $499
SAVE $250

$799 $567
SAVE $232

$870 $749
SAVE $121

$3599 $2199
SAVE $1400

$3899 $2299
SAVE $1600

$4499 $2650
SAVE $1849

$748 $598
SAVE $150

$899 $699
SAVE $200

$729 $729
SAVE $0

$3899 $2299
SAVE $1600

$3599 $2199
SAVE $1400

$4499 $2650
SAVE $1849

$1997 $897
SAVE $1100

$3099 $2499
SAVE $600

$2799 $2199
SAVE $600

$4999 $4599
SAVE $400

$4499 $2650
SAVE $1849

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

Deals Updated Daily at B&H Photo
View all handpicked deals...

Sigma 14mm f/1.8 DG HSM Art Lens for Nikon F
$1599 $1199
SAVE $400

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