Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision |
student:stu:ettiquette [2019/10/29 14:26] – Limits morrispj | student:stu:ettiquette [2020/02/04 11:18] – Monitor and kill processes within top morrispj |
---|
==== top ==== | ==== top ==== |
| |
[[ http://man7.org/linux/man-pages/man1/top.1.html | top ]] provides insight into the overall load on a system and the details on running processes. By default, top sorts processes by CPU usage though you can change the sort column with the ''<'' and ''>'' keys while top is running. Top can also display only your processes with the ''-u'' command line option. | [[ http://man7.org/linux/man-pages/man1/top.1.html | top ]] provides insight into the overall load on a system and the details on running processes. By default, top sorts processes by CPU usage though you can change the sort column with the ''<'' and ''>'' keys while top is running. |
| |
| It's a good idea to monitor your processes in a separate window while working on stu. To do this, start another ssh session to stu and run ''top -u $USER''; this will display only your processes. You can press ''k'' to kill processes directly from top. This will prompt you for a pid and default to the process at the top of the list. |
| |
The load average is another useful piece of information provided by top and consists of three numbers indicating the CPU and IO load over the last one, five, and 15 minute periods. | The load average is another useful piece of information provided by top and consists of three numbers indicating the CPU and IO load over the last one, five, and 15 minute periods. |
| |
[[ https://linux.die.net/man/8/renice | renice ]] allows users to set the niceness of an already running command. | [[ https://linux.die.net/man/8/renice | renice ]] allows users to set the niceness of an already running command. |
| |
| ===== Space Consumption ===== |
| |
| Please be mindful of the disk space you consume, as it is also a shared resource. |
| |
| You can easily see how much space you are using by using du: |
| |
| du -h $HOME |
| |
| You can also use [[https://linux.die.net/man/1/ncdu | ncdu ]], which provides a more graphical representation of space consumption. |