Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
student:stu:ettiquette [2019/10/29 11:59] – Monitoring tools morrispj | student:stu:ettiquette [2023/09/14 14:35] (current) – Note about link to fs and large output files mckeanbs | ||
---|---|---|---|
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:// | ||
+ | |||
+ | Stu has a 10Gbps link to fs, the server on which your data is stored. This helps with performance but a side effect is that runaway processes writing data can consume large amounts of disk space very quickly. Please make sure your software isn't creating large files like this, and please clean it up if it does. |