I push my Mac real hard at times. When the disk is thrashing hard, I’ve noticed a program called spindump that’s running. Here’s what the man page says:
spindump is a tool used by various system components to create hang reports and notify the user of application hangs. … For normal application crashes spindump will display a dialog to alert the console user to the crash and offer the choice to view more details about the crash and/or report the crash to Apple.
On Yan Pritzker’s blog I found some great tips. Patrick suggested the following. (Please ensure it’s all on one line.)
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.spindump.plist
After running this, I don’t see spindump, and the disk isn’t thrashing as hard. Yeah, I’m running two heavy virtual machines that are hammering their virtual disks, but it appears that I’ve gained something.
Thanks, guys!
2009-03-27 Update: Fixed typo. A huge thanks to Rob for catching that.
2011-02-23 Update: It was suggested that I also mention how to reverse this. Use load instead of unload.
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.spindump.plist
Hi James,
I’m glad I could help you.
In my opinion, spindump is one of the most useless tools Apple installs on Macs, besides I never sent them those rather lenghty email because normally it’s not an Apple application which crashes but some third-party app.
Greetings and happy “pushing”
Patrick
Wow, you’re just saving me hours of work 🙂 i had this stupid spindump problem for months now and was so frustrated because itunes kept distorting audio output when spindump was active.. today i almost wanted to reinstall my entire system because of spindump. thanks god i found your blog!
funny though: the file wasn’t com.apple.spindump.plist but simply spindump … don’t know if this was the problem, either way my troubles are gone now! thx a lot!!!!
hi again! i just found out, that this terminal workaround only works until the next restart of the system. is there an easy way to implement it forever? how would you do that?
Hi Martin,
Thanks for stopping by.
That’s interesting that your spindump came back. Mine is gone forever. You can see in my Activity Monitor.
(2009-03-27 Edit: I fixed the typo here. Cut and paste copies errors, too. 🙁 )
Some notes:
well, i moved the spindump file out of the LaunchDaemons directory and now it stopped loading at system start. don’t know why launchctl unload was not enough… besides my spindump file wasn’t com.apple.spindump.plist but simply spindump .. i’m using 10.5.6 .. but as the problem is solved now everythings’s fine.. thanks for you help!
Sounds like you moved the executable itself to a location that launchd couldn’t locate. The plist file is used to control the dæmon.
If you’re happy with how your machine is behaving, who am I to pick nits? 🙂
Best wishes.
You need to use the “-w” flag to “write” the changes to survive a restart:
$ sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.spindump.plist
@Rob: A huge thank you for catching that typo. Yes, that’s why mine worked and Martin’s didn’t. (When you stare at something long enough you cease to see the obvious.)
@Martin: I’m sorry I didn’t see that error.
thanks for this
Yep – a big thanks from me as well! Works a treat – when I have lots of apps open; much less spinning of yea olde wheel!
Thanks very much!
Many thanks James & Rob – spindump messes with iTunes playback in a horrible way. I am very happy to have it disabled!
Wow, James and Rob, the nightmare is over.
My 4GB Macbook will start running faster than a G3 iBook again.
Always wondered if I needed Spindump or not.
Thanks for the feedback! Glad it was helpful.
This is a godsend, thank you so much.
Just for the sake of Google, the reason this was slowing me down was with slowdowns in debugging Flex and AIR applications, which OSX thought were crashed while they were actually just paused by the debugger. Spindump of course then used up a chunk of CPU logging these artificial “crashes” causing audio jitter problems and slowdowns when debugging Flex apps.
Disabling spindump fixes everything, and I can’t imagine ever missing it. Thanks for the tip!
Woah… mistaking breakpoints for crashes? Now that’s nasty.Thanks for sharing that information. Hopefully somebody else will benefit from your insight.
Pingback: Del.icio.us-linkit 22.05.2009 – 28.05.2009 at A Heartbreaking Blog of Staggering Genius
Wow! Thanks very much, I had been having performance issues as well. I this morning noticed that it was spindump. I am a bit new to the terminal side of things. I am assuming by super user you mean logging in as root?
Thanks again, George
George,
I’m glad this helped.
You’re on the right train of thought about the superuser. The term “superuser” is a synonym for “root”.
There’s a general rule that one should never actually log in as root unless it’s absolutely necessary, and then only the minimum amount of time that’s necessary. That’s because the normal checks against operator stupidity do not exist when running as root. Every seasoned Un*x administrator has one or more personal horror stories about that slip of the finger and… something bad.
If you are logged into an account that is an administrator for the computer, you do not need to actually log in as root. The “sudo” command runs a single command as if you were logged in as root. It’s an acronym for “Switch User then DO (run command)”.
sudo allows one to do most routine maintenance (for example, disabling spindump) without the need to log in as root.
I hope that helps.
Pingback: links for 2010-04-08 « Bloggitation
I really apologise for ignorance but I’m a regular user (non-programmer) who would love to disable spindump for all the reasons discussed above.
However I do not know how to implement these commands on my Mac.
Do I just open Terminal and paste “sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.spindump.plist”? Or is there more to it than that?
I’m nervous about giving the wrong command, understandably 🙂
That’s a good thing actually. 🙂 There’s reason for caution when you’re messing with system configurations, of course.
However, yes, a copy/paste would work (without the quotation marks). This depends on your account being setup to use the sudo command. You cold try it and see whether it works.
HOWEVER: (!!!) I would ensure you have done a full backup before messing with it. I’ll put a plug in for the program SuperDuper, or something equivalent, that will allow you to boot from your backup and restore your machine if something did go horribly wrong. It’s not likely, but a little prevention prevents even greater headaches.
Best wishes.
(I don’t get anything from plugging SuperDuper; it’s just a fabulous backup program that I use.)
Thanks so much James. I tried it – and as far as I can tell, no spindump & all’s well.
Thanks for the SuperDuper tip too. I’m currently using BackBlaze, which I find pretty good too. I’m freqently recommending backup to friends so I’ll mention both from now on.
Happy New Year btw
Mark
This is an efficient method to improve Mac performance.
Thanks for this great information. Really helped my enhancing my system speed.
Thanks again
Hi,
Thanks for this tip 🙂
For the sake of completeness, could you post how to reverse the effects of ‘sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.spindump.plist’
Is it just ‘sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.spindump.plist’?
Thanks 🙂
S
That’s a good idea. I believe that you are correct to use “load” instead of “unload”.
James,
Thanks… 🙂
This seems to be a relatively old thread, is it still relevant to Snow Leopard?
S
Off hand, I don’t know if spindump is still the little monster that it was under Leopard.
Normally I leave things alone unless there’s a problem because mucking with system configurations without cause tends to cause headaches. However, looking at my Activity Monitor, I see that spindump is not running. That would suggest either I disabled the little monster because it was causing trouble, or Apple changed spindump’s behaviour. I unfortunately don’t remember off the top of my head.
I just had spindump hammering IO on snow leopard when safari crashed, great post.
Still relevant IMO
Rob
Thanks for letting us know, Rob.
Great post, my old powerbook 12″ Leopard is very grateful!
Nando
Thank you! I have been trying to figure out why I was constantly having audio hiccups in video and sound playback on my 4yo macbook. This seems to have helped significantly. I realize my computer is a dinosaur these days, but I was sure I wasn’t the only one having this issue. Found this page via a google search. Very much appreciated!
It looks like there might be another related launchd process that should be disabled:
/System/Library/LaunchDaemons/com.apple.spindump_symbolicator.plist
$ man spindump_symbolicator
spindump_symbolicator(8) BSD System Manager’s Manual spindump_symbolicator(8)
NAME
spindump_symbolicator — helper process for spindump(8)
Pingback: pinboard July 31, 2011 — arghh.net
i use LINGON (http://sourceforge.net/donate/index.php?group_id=151459)
and look under the SYSTEM DAEMONS
then you can disable it there.
What about:
com.apple.metadata.mds.spindump
com.apple.metadata.spindump_symbolicator
Daemons, should these also be unloaded?
there’s also a com.apple.spindump_agent
I take a light touch approach and change only what is needed to fix the problem.
I also don’t have enough knowledge about what each of thesee daemons do to give any advice.
May 1, 2015 – 6 years after this was originally posted. Using Yosemite OS on Macbook Pro 15″ with Retina – same problem: stuttering audio played from every app (Including iTunes, Chrome, Youtube, etc. etc.)
Entered the sudo code in the “Terminal” and viola! I have non-studdering sound again! Yahoo! Thanks!
Last night, I ran as one line in 10.10.3’s Terminal: sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.spindump.plist
And entered the root pass and hit enter, and it seemed to accept the command.
Tonight, spindump came back at the same time it always does, 00:17, expanding to fill every bit of remaining physical memory and grinding everything to a halt. Force quit after it relaunching instantly after force quit after it relaunching instantly after force quit after it relaunching instantly after force quit, and I guess it finished whatever the fuck it does daily.
10.10.3 apparently needs a new sudo command to drive a stake in and dust spindump once and for all. If developers are going to let the same problems I’ve reported ad infinitum et nauseam go on for over a year of updates without fixing them, I’m not reporting anymore.
P.S. The “last night” in my previous comment was meant to imply I shut down/power off every night.
hi thats great disabling of spindump. What if I decide I need to re-enable for some reason? Could you let me know the command?
Thanks
Help! I think I should do this but how do I start? From system preferences? Then where? Need reallly basic here! Thanks!
Hey im new to all these terminal commands and im very scared of losing all my files if i used the sudo incorrectly. When the terminal asks for my pasword is it asking for my normal user pasword that i use everytime i want to log into my computer as the primcipal user or is there anotherone i domt know about?
Catalina, sudo uses your normal password.
Joan, if you look in your “Applications” folder you’ll see a folder named “Utilities”. Inside of of the Utilities folder, you’ll find a program called “Terminal”.
Hi, I am getting the following error in the Terminal: Operation not permitted while System Integrity Protection is engaged
That’s something I haven’t seen before, Saumil. What version of OS X are you running?
@Saumil Shah This is a new feature of OS X el capitan or macOS sierra. The system integrity protection or SIP prevents root access to avoid malicious manipulation. You can disable it by booting into recovery mode (Hold cmd+r while restarting) then click on utilities on the top bar and finally terminal. Punch in this without quotes: “csrutil disable” finally reboot you mac. Then everything else is normal. Though once you are done I would reccommend you to re-enable SIP by typing “csrutil enable” in recovery mode. Damn! So many years later still this post is helpful in solving macOS sierra beta problems!
‘Mac OS X 10.11 El Capitan protects system files and processes with a new feature named System Integrity Protection. SIP is a kernel-level feature that limits what the “root” account can do.
This is a great security feature, and almost everyone — even “power users” and developers — should leave it enabled. But, if you really do need to modify system files, you can bypass it.’
The System Integrity Protection setting isn’t stored in Mac OS X itself. Instead, it’s stored in NVRAM on each individual Mac. It can only be modified from the recovery environment.
To disable System Integrity Protection, run the following command:
csrutil disable
If you decide you want to enable SIP later, return to the recovery environment and run the following command:
csrutil enable
http://www.howtogeek.com/230424/how-to-disable-system-integrity-protection-on-a-mac-and-why-you-shouldnt/