Skip to content

Commit

Permalink
Add task and update structure
Browse files Browse the repository at this point in the history
  • Loading branch information
dariavladykina committed Aug 8, 2023
1 parent f6ab239 commit 512e4c4
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 51 deletions.
56 changes: 56 additions & 0 deletions tasks/cpu-temp-check-realtime.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- This file originates from the project https://github.com/openSUSE/doc-kit -->
<!-- This file can be edited downstream. -->

<?xml-stylesheet href="urn:x-suse:xslt:profiling:docbook51-profile.xsl"
type="text/xml"
title="Profiling step"?>
<!DOCTYPE article
[
<!ENTITY % entities SYSTEM "../common/generic-entities.ent">
%entities;
]>


<article xml:id="task-check-cpu-temperature-realtime" xml:lang="en"
role="task"
xmlns="http://docbook.org/ns/docbook" version="5.1"
xmlns:its="http://www.w3.org/2005/11/its"
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:xlink="http://www.w3.org/1999/xlink">

<section>
<title>Getting real-time temperature data</title>
<para>
To obtain a snapshot of the current temperature, run the following command:
</para>
<screen>&prompt.user;<command>sensors</command>
[...]
Adapter: ACPI device
temp1: +16.8°C (crit = +18.8°C)
temp2: +27.8°C (crit = +119.0°C)
temp3: +29.8°C (crit = +119.0°C)

nvme-pci-0700
Adapter: PCI adapter
Composite: +36.9°C (low = -273.1°C, high = +83.8°C)
(crit = +83.8°C)
Sensor 1: +36.9°C (low = -273.1°C, high = +65261.8°C)
Sensor 2: +43.9°C (low = -273.1°C, high = +65261.8°C)

coretemp-isa-0000
Adapter: ISA adapter
Package id 0: +43.0°C (high = +82.0°C, crit = +100.0°C)
Core 0: +41.0°C (high = +82.0°C, crit = +100.0°C)
Core 1: +41.0°C (high = +82.0°C, crit = +100.0°C)
Core 2: +43.0°C (high = +82.0°C, crit = +100.0°C)
Core 3: +41.0°C (high = +82.0°C, crit = +100.0°C)
Core 4: +41.0°C (high = +82.0°C, crit = +100.0°C)
Core 5: +40.0°C (high = +82.0°C, crit = +100.0°C)</screen>
<para>
Run the command below to monitor temperature in real time:
</para>
<screen>&prompt.user;<command>watch</command> sensors</screen>
</section>

</article>
56 changes: 5 additions & 51 deletions tasks/cpu-temp-check.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,54 +19,7 @@
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:xlink="http://www.w3.org/1999/xlink">

<!--
How do I access these sensor systems, how do I monitor them?
Where is info on these?
-You want to reduce your electricity bill and make sure that the hardware runs optimally.
-Goal:
-Put in place a mechanism for checking and monitoring CPU temperature.
-EFFORT:
-20 minutes to install and configure the required tool.-->

<!-- <section xml:id="introduction-check-cpu-temperature">
<title>Introduction</title>
<para>
Checking and monitoring CPU temperature has several benefits.
</para>
<itemizedlist>
<listitem>
<para>Energy savings and cost reduction. When a CPU runs at full
speed, it consumes more energy than when it is idling. Also, running
CPUs cool is a critical cost factor, especially in data centers.
</para>
</listitem>
<listitem>
<para>
Identifying processes that consume too much CPU power. Doing that can help to free your CPU resources and increase the CPU's responsiveness.
</para>
</listitem>
<listitem>
<para>Easier detection of cooling issues. If the CPU temperature reaches 80°C or higher, it indicates that there is a problem with the cooling system or the fan, or that the thermal paste was not applied correctly.
</para>
</listitem>
<listitem>
<para>
A long-term reduction of the carbon footprint can be achieved by adjusting the cooling parameters.
</para>
</listitem>
</itemizedlist>-->
<!--<para>
</para>
<remark>toms 2021-09-10: not sure what this is</remark>
<screen>cat /sys/class/thermal/thermal_zone*/temp
# temperature interpreted in mili Celsius, 49000 means 49°C
</screen>
</section>-->

<section xml:id="prepare-hardware-sensors">
<section xml:id="prepare-hardware-sensors">
<title>Working with hardware sensors</title>
<para>
To measure the CPU temperature, install and configure the <package>sensors</package> tool that can access and read the hardware sensors.
Expand All @@ -76,15 +29,16 @@ Where is info on these?
<para>
Install the required package:
</para>
<screen>&prompt.sudo;<command>install sensors</command></screen>
<screen>&prompt.sudo;<command>zypper install sensors</command></screen>
</step>
<step>
<para>
To detect all the sensors in the system, run the following command as &rootuser;:
</para>
<screen>&prompt.sudo;<command>sensors-detect</command></screen>
<screen>&prompt.sudo;<command>sensors-detect --auto</command></screen>
<para>
When prompted to detect specific hardware monitoring chips, accept the default answer YES by pressing <keycap function="return"/>. When finished, the script shows a summary of what chips were detected:
The <option>--auto</option> allows checking for all hardware monitoring chips at once
without probing them one by one. When finished, the script shows a summary of what chips were detected:
</para>
<screen>Now follows a summary of the probes I have just done.

Expand Down

0 comments on commit 512e4c4

Please sign in to comment.