This article is a mirror article of machine translation, please click here to jump to the original article.

View: 2838|Reply: 0

[linux] View CPU temperature and frequency on Linux systems

[Copy link]
Posted on 9/18/2024 8:43:30 PM | | | |
Requirements: One of the most important monitoring in Linux server operation and maintenance is server internal temperature monitoring. When the internal temperature of the server is too high, such as a fan failure, it will cause the CPU to slow down due to excessive temperature, or even freeze or other data abnormalities.

In Linux, the software package lm_sensors (i.e. Linux-monitoring sensors) provides basic tools and drivers to monitor CPU temperature, voltage, humidity, and fans. It also provides motherboard intrusion detection (unauthorized opening of the chassis). Through this tool combined with monitoring software, it can be used to detect hardware anomalies and replace damaged parts in a timely manner.

lm_sensors installing Rocky Linux version 9, the command is as follows:

Check the CPU temperature with the following command:



How can I check the temperature of my CPU without installing a package? The command is as follows:

The value output of this line of command is the current CPU temperature (in degrees Celsius) multiplied by 1000. Remove the last three zeros to get the temperature value we are familiar with. You can use the following command to perform division operations directly in Bash:

If you want to continuously monitor CPU frequency and temperatureCan be run using the watch toolIt.

To read the frequency of each thread of the CPU, the command is as follows:

(End)





Previous:【Continuous Updates】Discuz X3.4 program optimization and cleaning
Next:SQL Server Restore Database Exception (The system cannot find the file specified)
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com