How to Kill/Stop Processes

This video is focused on the single command needed to kill processes. You must have the process ID (PID) in order to use this command. You may know the PID from some other operation that you have done.

But it also may be that you are monitoring your processes, looking for processes (possibly as part of slurm jobs) that are not running efficiently, and want stop them. Videos on how to (1) identify and (2) inspect processes on each of login and compute nodes are given here:

  1. login nodes

  2. compute nodes, particularly videos 5 and 6.

These other videos can be used to find PIDs of processes that you want to terminate.

Also note that you do not have to terminate processes this way. For example, if you are running VS Code on a compute node, you can simply stop the VS Code app. Or if you are running python code on a login node, and you need to stop running the code—and you do need to stop running the code—simply type cntrl-c in the terminal window where the python code is running. The video here is to stop processes that are not easily stopped by other methods; but the method in the video can be used in all cases.

Video Number

Video Name and Link

Description

1

How to kill processes

How to kill processes, most often on login nodes, but also on compute nodes (for interactive jobs).