AMD protsessor

Allikas: Imre kasutab arvutit
Redaktsioon seisuga 11. oktoober 2025, kell 17:49 kasutajalt Imre (arutelu | kaastöö) (→‎Kiirus (sagedus))
Mine navigeerimisribaleMine otsikasti

Sissejuhatus

TODO

Mõisted

TODO

AMD protsessorid

TODO

Süsteemi protsessori omaduste muutmine

Protsessorite arv

root@pwrk-02:~# lscpu
Architecture:             x86_64
  CPU op-mode(s):         32-bit, 64-bit
  Address sizes:          52 bits physical, 57 bits virtual
  Byte Order:             Little Endian
CPU(s):                   4
  On-line CPU(s) list:    0,1
  Off-line CPU(s) list:   2,3
Vendor ID:                AuthenticAMD
  BIOS Vendor ID:         QEMU
  Model name:             AMD Ryzen Threadripper PRO 7965WX 24-Cores
    BIOS Model name:      pc-q35-10.0  CPU @ 2.0GHz
    BIOS CPU family:      1
    CPU family:           25
    Model:                24
...

kus

  • On-line CPU(s) list: 0,1
  • Off-line CPU(s) list: 2,3

muudatuse tegemiseks sobib öelda

root@pwrk-02:~# echo 0 > /sys/devices/system/cpu/cpu3/online
root@pwrk-02:~# echo 0 > /sys/devices/system/cpu/cpu2/online

# dmesg -T
...

[Sat Oct 11 14:39:56 2025] smpboot: CPU 3 is now offline
[Sat Oct 11 14:40:00 2025] smpboot: CPU 2 is now offline

Tagasi lülitamiseks

root@pwrk-02:~# echo 1 > /sys/devices/system/cpu/cpu2/online
root@pwrk-02:~# echo 1 > /sys/devices/system/cpu/cpu3/online

# dmesg -T
...

[Sat Oct 11 14:42:33 2025] smpboot: Booting Node 0 Processor 2 APIC 0x2
[Sat Oct 11 14:42:39 2025] smpboot: Booting Node 0 Processor 3 APIC 0x3

Muudatus kajastub samuti nt systool väljundis

root@pwrk-02:~# systool -b cpu -v | grep -v ^MODA
Bus = "cpu"

  Device = "cpu0"
  Device path = "/sys/devices/system/cpu/cpu0"
    crash_notes_size    = "368"
    crash_notes         = "277c3e400"
    uevent              = "DRIVER=processor
"

  Device = "cpu1"
  Device path = "/sys/devices/system/cpu/cpu1"
    crash_notes_size    = "368"
    crash_notes         = "277cbe400"
    online              = "1"
    uevent              = "DRIVER=processor
"

  Device = "cpu2"
  Device path = "/sys/devices/system/cpu/cpu2"
    crash_notes_size    = "368"
    crash_notes         = "277d3e400"
    online              = "1"
    uevent              = "DRIVER=processor
"

  Device = "cpu3"
  Device path = "/sys/devices/system/cpu/cpu3"
    crash_notes_size    = "368"
    crash_notes         = "277dbe400"
    online              = "1"
    uevent              = "DRIVER=processor
"

Kiirus (sagedus)

Protsessori omaduste vaatlemine

root@pve-svc-02:~# turbostat
turbostat version 2022.10.04 - Len Brown <lenb@kernel.org>
Kernel command line: initrd=\EFI\proxmox\6.8.12-11-pve\initrd.img-6.8.12-11-pve root=ZFS=rpool/ROOT/pve-1 boot=zfs
CPUID(0): AuthenticAMD 0x10 CPUID levels
CPUID(1): family:model:stepping 0x19:50:0 (25:80:0) microcode 0x0
CPUID(0x80000000): max_extended_levels: 0x80000023
CPUID(1): SSE3 MONITOR - - - TSC MSR - HT -
CPUID(6): APERF, No-TURBO, No-DTS, No-PTM, No-HWP, No-HWPnotify, No-HWPwindow, No-HWPepp, No-HWPpkg, No-EPB
CPUID(7): No-SGX No-Hybrid
RAPL: 234 sec. Joule Counter Range, at 280 Watts
/dev/cpu_dma_latency: 2000000000 usec (default)
current_driver: acpi_idle
current_governor: menu
current_governor_ro: menu
cpu9: POLL: CPUIDLE CORE POLL IDLE
cpu9: C1: ACPI FFH MWAIT 0x0
cpu9: C2: ACPI IOPORT 0x414
cpu9: C3: ACPI IOPORT 0x415
cpu9: cpufreq driver: amd-pstate-epp
cpu9: cpufreq governor: powersave
cpu0: MSR_RAPL_PWR_UNIT: 0x000a1003 (0.125000 Watts, 0.000015 Joules, 0.000977 sec.)
Core	CPU	Avg_MHz	Busy%	Bzy_MHz	TSC_MHz	IPC	IRQ	POLL	C1	C2	C3	POLL%	C1%	C2%	C3%	CorWatt	PkgWatt
-	-	10	0.35	2944	3593	0.71	2318	0	248	494	1334	0.00	0.13	0.66	98.87	0.12	4.66
0	0	35	1.18	2944	3593	0.81	417	0	34	136	202	0.00	0.21	1.70	96.95	0.04	4.66
0	6	8	0.27	2944	3593	0.36	217	0	12	31	149	0.00	0.17	0.28	99.30
1	1	5	0.18	2944	3593	0.46	173	0	1	17	137	0.00	0.02	0.24	99.57	0.02
1	7	11	0.37	2944	3593	0.83	214	0	89	55	50	0.00	0.13	0.43	99.08
2	2	20	0.69	2944	3593	0.72	251	0	17	53	155	0.00	0.16	0.69	98.45	0.03
2	8	6	0.19	2944	3593	0.34	199	0	28	22	136	0.00	0.48	0.25	99.10
3	3	14	0.47	2944	3593	0.90	170	0	1	46	90	0.00	0.00	3.25	96.29	0.01
3	9	5	0.18	2944	3593	0.34	176	0	34	24	106	0.00	0.03	0.30	99.51
4	4	9	0.32	2944	3593	0.85	193	0	11	28	119	0.00	0.16	0.24	99.30	0.01
4	10	1	0.04	2943	3593	0.34	97	0	6	60	28	0.00	0.10	0.37	99.49
5	5	8	0.28	2944	3593	0.77	158	0	15	19	114	0.00	0.05	0.20	99.49	0.01
5	11	2	0.06	2944	3593	0.60	53	0	0	3	48	0.00	0.00	0.01	99.94

..

kus

  • TODO

ning

root@pve-svc-02:~# cpupower frequency-info
analyzing CPU 0:
  driver: amd-pstate-epp
  CPUs which run at the same hardware frequency: 0
  CPUs which need to have their frequency coordinated by software: 0
  maximum transition latency:  Cannot determine or is not supported.
  hardware limits: 400 MHz - 4.27 GHz
  available cpufreq governors: performance powersave
  current policy: frequency should be within 400 MHz and 3.00 GHz.
                  The governor "powersave" may decide which speed to use
                  within this range.
  current CPU frequency: Unable to call hardware
  current CPU frequency: 2.94 GHz (asserted by call to kernel)
  boost state support:
    Supported: yes
    Active: yes
    Boost States: 0
    Total States: 3
    Pstate-P0:  3600MHz
    Pstate-P1:  1700MHz
    Pstate-P2:  1400MHz

Kasulikud materjalid