MacOS – Why is the accountsd process eating so much CPU

cpuicloudmacos

Why are the accountsd and securityd processes using so much CPU on OS X 10.10.3?
I am on a Early 2011 Macbook Pro.

What are these processes for? Is it safe to kill them? The machine has only been up 4 hours so has been rebooted recently.

enter image description here

Best Answer

In Mail.app's application's preferences, I deselected "Accounts > Advanced > Automatically Detect and Maintain Account Settings" on two Google accounts, and CPU usage returned to normal.