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 11:59] – Monitoring tools morrispj | student:stu:ettiquette [2020/02/04 11:18] – Monitor and kill processes within top morrispj | ||
---|---|---|---|
Line 1: | Line 1: | ||
===== Etiquette ===== | ===== Etiquette ===== | ||
- | The student server is a shared resource, and as with any shared resource it is important to be considerate of others who are using the resource. Please make sure the machine remains responsive by closely monitoring any processes that you have running and terminating them if they are using an abnormal amount of CPU time, memory, or I/O bandwidth. This article describes tools that can be useful for monitoring resource-intensive processes that are running on the system. | + | The student server is a shared resource, and as with any shared resource it is important to be considerate of others who are using the resource. Please make sure the machine remains responsive by closely monitoring any processes that you have running and terminating them if they are using an abnormal amount of CPU time, memory, or I/O bandwidth. This article describes tools that can be useful for monitoring |
===== Monitoring ===== | ===== Monitoring ===== | ||
==== top ==== | ==== top ==== | ||
- | [[ http:// | + | [[ http:// |
+ | |||
+ | It's a good idea to monitor | ||
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. | ||
Line 18: | Line 20: | ||
11:26:01 AM 2069 | 11:26:01 AM 2069 | ||
+ | ===== Limits ===== | ||
+ | |||
+ | ==== cpulimit ==== | ||
+ | |||
+ | [[ https:// | ||
+ | |||
+ | cpulimit -p 1234 -l 25 | ||
+ | |||
+ | ==== nice ==== | ||
+ | |||
+ | By default, Linux considers all processes equally important and allots them equal CPU time. The [[ https:// | ||
+ | |||
+ | nice -n 19 ./ | ||
+ | |||
+ | [[ https:// | ||
+ | |||
+ | ===== 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:// |