CacheDelete is a subsystem within macOS that cleans up disk space in response to high-level demand for that space. It’s the back end to the very-rarely-used
CSDiskSpaceStartRecovery
API. CacheDelete has a plug-in mechanism whereby various system components can plug in to recover disk space associated with that component. It looks like Xcode ships with an app extension that implements such a plug-in:
$ find /Applications/Xcode.app -name IDECacheDeleteAppExtension.appex
/Applications/Xcode.app/Contents/PlugIns/IDECacheDeleteAppExtension.appex
IMPORTANT While
CSDiskSpaceStartRecovery
is public API, this plug-in mechanism is not.
I don’t know why this plug-in would be burning through CPU but the general strategy for things like this is:
file a bug containing a
sysdiagnose
logrun
sample
and fs_usage
against the offending process to see if you can spot any obvious cause
Please post your bug number here, just for the record.
Share and Enjoy
—
Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
let myEmail = "eskimo" + "1" + "@apple.com"