OSX : When OSX f***’ed my daily work because of systemstatsd

1st of all, a lottle bit of history: On june 2012, I bought a MacMini, then I upgraded it to 16 Gb RAM. Until couple of weeks ago, my MacMini was running quite fast for my day-to-day (development mainly) work. Then… I don’t know what happens, but suddenly, it has become slower and slower, and the HD was always on.

So, I tried couple of things : reboot, reboot and erase plist, … and so on. My HD was quite full; thus, I tried to remove a LOT of things (maily my virtual machines)

Finally, as I noticed in ‘top’ that a lot of data were constantly written, I used ‘sudo fs_usage’ and I discovered the “systemstatsd” process… This process is painful! Constantly writing, so slowing down the entire system!

I stopped it definitevely and the miracle happens ! My MacMini is back to normal ! Alleluiah!

So, couple of commands:

To STOP the systemstatsd:

sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.systemstatsd.plist
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.systemstats.daily.plist
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.systemstats.analysis.plist

To START it again:

sudo launchctl load -F /System/Library/LaunchDaemons/com.apple.systemstatsd.plist
sudo launchctl load -F /System/Library/LaunchDaemons/com.apple.systemstats.daily.plist
sudo launchctl load -F /System/Library/LaunchDaemons/com.apple.systemstats.analysis.plist

And that’s it !!!