I am using the htop
command to get a list of all processes running on my raspberry pi 4 and I was curious if there exists a list of all processes that are required for the pi to continue running. I want to kill any process that is not required for proper operation.
E.g I notice things like snapd
, python3
, and gmain
show up multiple times and was wondering if I could kill these processes while still having the raspberry pi operational. I read that snapd
manages and maintains snap packages automatically, but do I actually need this running while I am not installing any packages.
I am looking for a list (or documentation) for said required processes.
I am asking this primarily because I think there are processes not necessary to running the Pi that are running and taking resources away from my programs and causing issues.
Edit - Define Proper Operation:
If I kill a process that does not cause the Pi to shut down, brick, require a restart, damage the Pi's hardware, permanently change any software, or permanently change the raspbian OS I would like to kill that process.
If killing a process would require a fresh OS install to get the Pi working again I consider that a required process.
If killing a process means requiring a reboot to restart the process I consider that a required process.
If killing a process only requires manually restarting the process I do not consider that a required process.