Forum

Disable tailspind and spindump to Speed Up your Mac  

Page 1 / 2 Next
  RSS

Dave Hamilton
(@davehamilton)
Admin
Joined: 20 years ago
Posts: 275
December 27, 2017 1:33 EST PM  

Apple's macOS High Sierra introduced enough performance enhancements that my dual-core, 2011 MacBook Air felt like it had new life breathed into it. Occasionally, though – and more and more frequently recently – events would cascade such that my CPU would run at full tilt for 5-10 minutes before finally settling in. When that was happening, Activity Monitor and/or iStat Menus would show two system processes chewing up CPU: tailspind and spindump. Time to figure out how to stop that!

Research led me to these two very loosely-defined scenarios where tailspind and spindump would decide to run1:

  1. An application asks tailspind and spindump to take a snapshot of the state of that application and write it out to disk, or;
  2. Some application or process would consume maximum CPU for some period of time (30 seconds seems to be the general consensus), and then tailspind and spindump would fire up to take a snapshot of what was going on for future debugging purposes.

tailspind and spindump processes running full CPU on MacIt's this second case that kept happening to me, and possibly to you. The problem is that it would create a cascading scenario of constrained CPU resources where one app would run, then spindump/tailspind would run, consuming CPU of its own, causing other apps to run for too long, causing spindump/tailspind to fire up again ... and so on and so forth. This would go on until finally everything had finished. In the interim it would be tailspind and spindump consuming a majority of the CPU while the processes you actually want to run tried to squeak by.

I looked at the logfiles created by spindump/tailspind and they (basically) told me what I already knew: some process needed a significant amount of work done and my 6-year-old CPU took longer than some pre-set limit to do it.

I certainly don't need extra CPU resources dedicated to telling me that something I've decided to run is using the CPU. I know that already. I run Activity Monitor and can see it. And, generally-speaking, the "why?" behind the extra CPU usage is already known, too.

Given this, I set about disabling spindump and tailspind, and my life has been blissful ever since. My MacBook Air wakes up quickly and is immediately responsive. Reboots are no longer something I dread, battery life is much better, and, quite frankly, my machine is fully usable again. It feels like I rewound 4 years in terms of general usability.

Disabling tailspind and spindump on macOS High Sierra

macOS High Sierra2 includes System Integrity Protection, which means that certain files are untouchable and uneditable. This has the benefit of helping keep your system files pure and malware-free, with the cost of flexibility.

To disable tailspind and spindump we need that flexibility, and that means temporarily disabling System Integrity Protection (SIP). To disable SIP:

  1. Boot your Mac into Recovery Mode by restarting with Command-R held down until the Apple logo appears.
  2. Once your Mac is in Recovery Mode, go to Utilities > Terminal.
  3. In the Recovery Mode Terminal, issue csrutil disable and press return.
  4. Reboot your Mac.

Once SIP is disabled, the steps to disable tailspind and spindump are pretty straightforward3. Launch Terminal and type/paste the following  four commands. The first two turn off and render spindump useless, and then the second two do the same for tailspind:

  1. sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.spindump.plist
  2. sudo mv /System/Library/LaunchDaemons/com.apple.spindump.plist /System/Library/LaunchDaemons/com.apple.spindump.plist.bak
  3. sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.tailspind.plist
  4. sudo mv /System/Library/LaunchDaemons/com.apple.tailspind.plist /System/Library/LaunchDaemons/com.apple.tailspind.plist.bak

Make sure to re-enable SIP when you're finished by performing the steps to disable SIP (in Recovery Mode again), and issuing csrutil enable as step #3.

That's it. From this point forward, tailspind and spindump will be disabled and will not run on your Mac4. It's advisable to check these after macOS upgrades as it's entirely possible that an upgrade could re-enable these processes without any warning.


  1. Apologies to those who are more technically-minded about the functions of tailspind and spindump–I'm playing fast and loose just to make a point.
  2. I've only tested this on macOS High Sierra, but macOS Sierra also contains these same processes.
  3. I borrowed the concept from pwnsdx's disable.sh over on GitHub if you want to look at disabling more than just these two.
  4. Developers may want tailspind and spindump running, so be aware of the consequences.

ReplyQuote
John Kheit
(@john-kheit)
Active Member
Joined: 2 years ago
Posts: 14
December 27, 2017 3:18 EST PM  

Wow really cool. I won’t be doing it but but this is a really good thing to store away in the minds utility chest. Thanks Dave.


ReplyQuote
Alex Santos
(@alex-santos)
Moderator
Joined: 4 years ago
Posts: 77
December 27, 2017 5:42 EST PM  

Fantastic write up! Thank you for posting this on the facebook group. I am going to issue those commands even though after a referral to the console logs I don't see telltale signs but I had total crashes recently. I mean total, beachball stopped animating and clock time separators stopped blinking — damn those logs are not what they use to be huh?

Thanks again Dave, great investigative work!


ReplyQuote
furbies
(@furbies)
New Member
Joined: 2 years ago
Posts: 4
December 27, 2017 9:16 EST PM  

Dave, during your researches did you happen across anywhere that describes tailspind and spindump in more detail ?


ReplyQuote
Dave Hamilton
(@davehamilton)
Admin
Joined: 20 years ago
Posts: 275
December 27, 2017 9:20 EST PM  

Check the links inside footnote number 4 - those should help explain.


ReplyQuote
furbies
(@furbies)
New Member
Joined: 2 years ago
Posts: 4
December 27, 2017 9:27 EST PM  

(more detail than a Man page that is)


ReplyQuote
furbies
(@furbies)
New Member
Joined: 2 years ago
Posts: 4
December 27, 2017 11:25 EST PM  

Thanks Dave


ReplyQuote
Steven De Schamphelaere
(@steven-de-schamphelaere)
New Member
Joined: 11 months ago
Posts: 1
December 28, 2017 5:04 EST AM  

Possibly very helpfull, but before I try: how can you enable both processes again in case some critical applications rely on it?


ReplyQuote
mmsfo
(@mmsfo)
New Member
Joined: 2 years ago
Posts: 1
December 28, 2017 5:16 EST AM  

great tip ... makes my 2008 MacBook Pro run like new ... thank you!


ReplyQuote
dmontopoli
(@dmontopoli)
New Member
Joined: 2 years ago
Posts: 1
January 3, 2018 12:58 EST PM  

Thank you for this tip. I followed the steps in the article for my 2011 iMac running Sierra, and the result was a dramatic increase in speed.

My soon-to-be-seven year old computer actually feels snappy now.

Thank you!


ReplyQuote
BruceL
(@infowarrior)
New Member
Joined: 2 years ago
Posts: 2
January 18, 2018 1:27 EST PM  

Dave first of all thank you for this tip. I have been wanting to implement it but not sure how to reverse if I have issues after doing it. So it might be helpful if you could update the article with reversal instructions which I guess would be just to go into Terminal and type: csrutil enable.


ReplyQuote
tdearborn@district106.net
(@tdearborndistrict106-net)
New Member
Joined: 9 months ago
Posts: 2
February 27, 2018 12:35 EST PM  

@BruceL - Simply typing csrutil enable will NOT reverse the change. You must reverse the 4 steps that you did to disable the processes. Note that SIP must be disabled in order to do these.

sudo mv /System/Library/LaunchDaemons/com.apple.tailspind.plist.bak /System/Library/LaunchDaemons/com.apple.tailspind.plist
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.tailspind.plist
sudo mv /System/Library/LaunchDaemons/com.apple.spindump.plist.bak /System/Library/LaunchDaemons/com.apple.spindump.plist
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.spindump.plist

General Disclaimer: I am not responsible if you screw up your machine by doing the above.


ReplyQuote
munwetsa
(@munwetsa)
New Member
Joined: 9 months ago
Posts: 1
February 27, 2018 4:51 EST PM  

Thanks for this. I use a lot of processor-intensive photo software and my MacBook performance has been awful since upgrading to High Sierra. Applied the fix and it is now working like a charm again.


ReplyQuote
Sww83
(@sww83)
New Member
Joined: 3 months ago
Posts: 2
August 27, 2018 7:41 EST PM  

Hey guys, I'm having troubles completing this process and wonder if I can get some help please. When I put the commands into Terminal it keeps coming up saying 'Password' Not sure what the deal is?? Help


ReplyQuote
Sww83
(@sww83)
New Member
Joined: 3 months ago
Posts: 2
August 27, 2018 7:43 EST PM  

Hey guys, I’m having troubles completing this process and wonder if I can get some help please. When I put the commands into Terminal it keeps coming up saying ‘Password’ Not sure what the deal is?? Help


ReplyQuote
Page 1 / 2 Next
Share: