MacBook – kernel_task reading and writing

activity-monitordisk-spacekernelmacbook pro

On my machine, kernel_task has a very large number of reads and writes compared to my usage. I spend almost all my time online on google chrome.

Over the past month, Activity Monitor shows kernel_task having written over 300 GB, launchd having written 30 GB with Chrome 10 GB. kernel_task dominates my total disk i/o. And every day it seems to be writing something. About 20 GB or so every day I estimate.

What is it writing? Is there some way I can check and maybe disable some option? Time Machine is disabled on my machine so its not that. My total disk space is not increasing so it seems to be temporary writes which makes it worse. Some sort of log?

Thanks

Best Answer

As the name suggests, kernel_task is like a task master and does a lot of system tasks for the macOS kernel.

Reading and writing to disks is one of the tasks it performs, so a lot of system data or app data may be read and written through kernel_task. So obviously it will show a high count. One thing to particular check is RAM usage - if you don't have enough RAM for some task, macOS will create swap memory on your disks and that also will count towards the high read and write in disk activity for kernel_tasks. This can explain what you are experiencing - swap memory read / write are temporary writes and so don't show up as using your disk space.

Chrome is known to be both a CPU and memory hog. Dump it and switch to Safari or Firefox which use less resource.

Note that kernel_task also plays a role in managing the CPU temperature, which may show it as using high CPU in Activity Manager. So if it is showing as using a high percentage of CPU, you can temporarily kill other apps or processes using most of the CPU as they are the cause why kernel_task kicks in (higher CPU usage = higher CPU temperature).