@cryptotaxi247 / infra-1 / commits / a1af0ec7

macs: regularly kill fseventsd to reclaim memory/swap

This process is out of control.

Martin Weinelt committed May 14, 2026 at 02:35 UTC a1af0ec7b13afb82a88fc49a993f390b8a04ef4e
1 file changed +8
macs/minimal.nix
+8
@@ -104,4 +104,12 @@ in
104 serviceConfig.StandardErrorPath = "/var/log/uuidtext-gc.log";
105 serviceConfig.StandardOutPath = "/var/log/uuidtext-gc.log";
106 };
107 +
108 + # Regularly kill fseventsd to reclaim excessively leaked memory/swap
109 + launchd.daemons.fseventsd-reclaim = {
110 + script = ''
111 + killall -9 fseventsd
112 + '';
113 + serviceConfig.StartInterval = 3600;
114 + };
115 }