Difference between revisions of "CPU linux"
From Teknologisk videncenter
m |
m |
||
Line 22: | Line 22: | ||
On-line CPU(s) list: 0 | On-line CPU(s) list: 0 | ||
Off-line CPU(s) list: 1-3 | Off-line CPU(s) list: 1-3 | ||
+ | </source> | ||
+ | =Temperature= | ||
+ | After installing ''sensors'' you could try ''sensors-detect'' | ||
+ | <source lang=bash> | ||
+ | heth@ub1:~$ sudo apt install lm-sensors | ||
+ | ..... | ||
+ | heth@ub1:~$ sensors | ||
+ | iwlwifi_1-virtual-0 | ||
+ | Adapter: Virtual device | ||
+ | temp1: +35.0°C | ||
+ | |||
+ | pch_wildcat_point-virtual-0 | ||
+ | Adapter: Virtual device | ||
+ | temp1: +47.0°C | ||
+ | |||
+ | BAT0-acpi-0 | ||
+ | Adapter: ACPI interface | ||
+ | in0: 12.72 V | ||
+ | |||
+ | coretemp-isa-0000 | ||
+ | Adapter: ISA adapter | ||
+ | Package id 0: +48.0°C (high = +105.0°C, crit = +105.0°C) | ||
+ | Core 0: +48.0°C (high = +105.0°C, crit = +105.0°C) | ||
+ | Core 1: +47.0°C (high = +105.0°C, crit = +105.0°C) | ||
+ | |||
+ | thinkpad-isa-0000 | ||
+ | Adapter: ISA adapter | ||
+ | fan1: 2452 RPM | ||
+ | CPU: +48.0°C | ||
+ | GPU: +0.0°C | ||
+ | temp3: +0.0°C | ||
+ | temp4: +0.0°C | ||
+ | temp5: +0.0°C | ||
+ | temp6: +0.0°C | ||
+ | temp7: +0.0°C | ||
+ | temp8: +0.0°C | ||
+ | |||
+ | BAT1-acpi-0 | ||
+ | Adapter: ACPI interface | ||
+ | in0: 10.73 V | ||
+ | |||
+ | acpitz-acpi-0 | ||
+ | Adapter: ACPI interface | ||
+ | temp1: +48.0°C (crit = +103.0°C) | ||
</source> | </source> | ||
[[Category:Linux]] | [[Category:Linux]] |
Latest revision as of 12:40, 7 April 2024
To temporarily shut down a CPU core, use the command echo 0 > /sys/bus/cpu/devices/cpu1/online. Repeat this command for each CPU, except for cpu0. Write "1" to enable the CPU again. =BeagleV-Ahead example"
root@BeagleV:/home/beagle# lscpu
Architecture: riscv64
Byte Order: Little Endian
CPU(s): 4
On-line CPU(s) list: 0-3
root@BeagleV:/home/beagle# echo "0" > /sys/bus/cpu/devices/cpu3/online
root@BeagleV:/home/beagle# lscpu
Architecture: riscv64
Byte Order: Little Endian
CPU(s): 4
On-line CPU(s) list: 0-2
Off-line CPU(s) list: 3
root@BeagleV:/home/beagle# echo "0" > /sys/bus/cpu/devices/cpu2/online
root@BeagleV:/home/beagle# echo "0" > /sys/bus/cpu/devices/cpu1/online
root@BeagleV:/home/beagle# lscpu
Architecture: riscv64
Byte Order: Little Endian
CPU(s): 4
On-line CPU(s) list: 0
Off-line CPU(s) list: 1-3
Temperature
After installing sensors you could try sensors-detect
heth@ub1:~$ sudo apt install lm-sensors
.....
heth@ub1:~$ sensors
iwlwifi_1-virtual-0
Adapter: Virtual device
temp1: +35.0°C
pch_wildcat_point-virtual-0
Adapter: Virtual device
temp1: +47.0°C
BAT0-acpi-0
Adapter: ACPI interface
in0: 12.72 V
coretemp-isa-0000
Adapter: ISA adapter
Package id 0: +48.0°C (high = +105.0°C, crit = +105.0°C)
Core 0: +48.0°C (high = +105.0°C, crit = +105.0°C)
Core 1: +47.0°C (high = +105.0°C, crit = +105.0°C)
thinkpad-isa-0000
Adapter: ISA adapter
fan1: 2452 RPM
CPU: +48.0°C
GPU: +0.0°C
temp3: +0.0°C
temp4: +0.0°C
temp5: +0.0°C
temp6: +0.0°C
temp7: +0.0°C
temp8: +0.0°C
BAT1-acpi-0
Adapter: ACPI interface
in0: 10.73 V
acpitz-acpi-0
Adapter: ACPI interface
temp1: +48.0°C (crit = +103.0°C)