Is there a way to programatically clear the buffer cache on the Mac, preferrably in C?
Basically, I\'m looking for the equivalent of the source of 10.5 (and greater)
It seems that:
You can use usr/bin/purge (type purge in the terminal) to flush the disk cache (inactive memory), or you can do many random reads from the hard disk to do the same thing.
Taken from a comment from user guns.