Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
student:stu:ettiquette [2019/10/29 09:47] – created lam2mo | student:stu:ettiquette [2023/09/14 14:35] (current) – Note about link to fs and large output files mckeanbs | ||
---|---|---|---|
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:// | ||
+ | |||
+ | 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. |