SSD Writing and Memory Swapping Issues

kernel_task is not an actual process like the others you see in Activity Monitor, it is a kind of “virtual process” that actually represents the kernel itself.

This means that it is not kernel_task itself that performs some job and in the process writes to disk, rather the kernel is continually (many, many times per second often) asked by your running programs to do stuff on their behalf.

You won’t find any “template” or “fixed model” for how kernel_task behaves, as that depends on whatever the rest of the programs on your computer is doing.

You also write about swapping. This is done when the amount of free RAM is not sufficient to cover the requests from running programs. These requests are dependent on whatever you’re doing with your computer. For example if you’re running a web browser, some sites might require almost no RAM to display - and others might require lots and lots of RAM.

As for why it tends to be more after running your computer for a long time - that is actually quite logical. Over time you have probably run more and more different programs, have more things loaded in (open documents, web site tabs, etc), and even more that contribute to your total RAM Usage than when you just booted the computer.

Some programs might also leak memory due to bugs This means that long running programs request some memory, and then forget about it, never giving it back to the operating system, even though they’re no longer using it. The longer you keep programs running, the more leaks you’ll eventually have. You can reclaim the leaked memory by closing the program - or by rebooting the computer.