Kernel_task going crazy, battery level related issue.
First off, I shoud say that I'm fairly new to the MacOS enviroment. I haven't been a Mac guy for the most parts and only joined the club after a guy passed me his old MBP, early 2011. It is running on Sierra 10.12.4 now and I'm having issues with the kernal_task taking up excessive, crippling CPU resources. I notice that this almost always happens when the battery % gets close to 100% and there are a few ways to temporary get it to calm its tits, but it will go crazy again after some time.
The first way to calm it is to have it connected to the charger, and letting it go to sleep and wake it after a minute. This is the less effective solution of the 2 as the calming effect doesn't stay for as long. And as soon as I take it off the charger the kernel goes crazy again. The other method is the do the standard SMC reset and NVRAM reset with the macbook off and charging. This way, the system stays good for longer but is also goes to siht as soon as the battery gets full. It seems the only steady state is when the battery is going up. If its full or going down (not charging), siht happens.
Is this a good question?