Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionLast revisionBoth sides next revision | ||
student:stu:ettiquette [2019/10/29 09:47] – created lam2mo | student:stu:ettiquette [2020/02/04 11:18] – Monitor and kill processes within top morrispj | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | 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. | + | ===== 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. | ||
+ | |||
+ | ===== Monitoring ===== | ||
+ | ==== top ==== | ||
+ | |||
+ | [[ 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. | ||
+ | |||
+ | ==== pidstat ==== | ||
+ | |||
+ | Disk IO is usually the culprit when top indicates a high load average combined with low CPU usage. [[ https:// | ||
+ | |||
+ | 11:26:00 AM | ||
+ | 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:// |