Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to monitor the CPU/GPU temperature in Ubuntu Linux

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces "how to monitor the CPU/GPU temperature in Ubuntu Linux". In the daily operation, I believe that many people have doubts about how to monitor the CPU/GPU temperature in Ubuntu Linux. The editor consulted all kinds of data and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts about "how to monitor the CPU/GPU temperature in Ubuntu Linux". Next, please follow the editor to study!

Sensor

Sensor is a simple command line utility that displays the current readings of all sensor chips, including CPU. By default, it is pre-installed in some Linux distributions, such as Ubuntu, and if not, install as shown below.

Sudo apt-get install lm-sensors

You can then run the following command to detect all sensors on the system.

Sudo sensors-detect

An example of output is as follows:

Once detected, you can run the following command to check CPU temperature, GPU temperature, fan speed, voltage, etc.

Sensors# sample output: dell_smm-virtual-0Adapter: Virtual deviceProcessor Fan: 2515 RPMCPU: + 55.0C Ambient: + 38.0C SODIMM: + 42.0C coretemp-isa-0000Adapter: ISA adapterPackage id 0: + 56.0C (high = + 100.0 °C, crit = + 100.0 °C) Core 0: + 54.0C (high = + 100.0 °C, crit = + 100.0 °C) Core 1: + 52.0C (high = + 100.0 °C) Crit = + 100.0 °C) Core 2: + 56.0C (high = + 100.0 °C, crit = + 100.0 °C) Core 3: + 51.0° C (high = + 100.0 °C, crit = + 100.0 °C)

Glances

Glances is a system monitoring tool based on cross-platform curses written in Python. It uses the psutil library to retrieve information from the system.

It can accommodate a place to display the maximum information in the smallest space through a curses or Web-based interface.

This information is dynamically adjusted according to the size of the user interface.

Glances can monitor CPU usage, memory usage, swap utilization, average system load, process list, network interface, disk I / O, raid, sensor (CPU temperature), battery, file system utilization, Docker, monitor, alarm, system information, uptime, etc.

To install Glances on your system, use the following command:

Sudo apt install glances-y

After installation, start Glances and press f to view the sensor information.

Glances

Sample output:

I7z

I7z is a tool for real-time reporting on the Turbo Boost of Intel Turbo i7 CPU i5 and i3 CPU, each CPU frequency, multiplier, temperature, and time spent in C state.

You can install it on a Ubuntu system by running the following command.

Sudo apt install i7z-y

After installation, run i7z with root privileges as shown in the figure.

Sudo i7z password: i7z DEBUG: i7z version: svn-r93- (27-MAY-2013) i7z DEBUG: Found Intel Processori7z DEBUG: Stepping ai7z DEBUG: Model ei7z DEBUG: Family 6i7z DEBUG: Processor Type 0

Sample output:

At this point, the study on "how to monitor the CPU/GPU temperature in Ubuntu Linux" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report