Details
-
Technical task
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
N/A
-
None
-
Sprint 1 (13.01.2025)
Description
Alerting for macos-bbw2 worker is constantly reporting > 90 % disk usage on FS /System/Volumes/Data/
After some research I've found that a possible culprit is Spotlight.
SpotLight is building an INDEX for every file written on the FS, under normal operation it should reclaim space when the file is deleted. Spotlight indexing is usually used for Finder or other utilities that need to "find" very fast a file on the drive.
It seems that the nature of Buildbot of writing tons of small files under longer periods is not letting Spotlight clear it's index properly.
Attachments
Issue Links
- relates to
-
MDBF-922 Disable MacOS spotlight indexer in ansible
-
- Closed
-
For the moment it looks like:
sudo mdutil -X /System/Volumes/Data
-X volume-path Remove the Spotlight index directory on the specified volume. Does not disable indexing.
Spotlight will reevaluate volume when it is unmounted and remounted, the
is doing the right job.
after just ~1h, a lot of space was reclaimed.
I paused bbw2-mac worker until the command finish.