Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[gelöst] Neuer Prozessor zeigt nicht alle Kerne
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
soundrolf
Tux's lil' helper
Tux's lil' helper


Joined: 08 Sep 2016
Posts: 140
Location: Cologne / Germany

PostPosted: Thu Mar 06, 2025 4:52 pm    Post subject: [gelöst] Neuer Prozessor zeigt nicht alle Kerne Reply with quote

Ich habe mir einen AMD Ryzen 9 5900X 12-Core Processor AM4 gekauft.
Mit nproc zeigt er mir 16 Kerne. Im CPU-X zeigt er 12 Kerne und 16 Threads
Alles läuft so wie vorher. Seltsam
Könnte der Prozessor defekt sein oder ein Fake ? China Prozessor

Quote:

OS: Gentoo Linux on TUX
DISTRO Gentoo Linux : Gentoo Base System release 2.17
CPU: AMD Ryzen 9 5900X 12-Core Processor 4951 MHz
GPU: AMD Navi 24 [Radeon RX 6400/6500 XT/6500M] driver: amdgpu
MOTHERBOARD: ASUS PRIME B550M-K BIOS 3802 01/14/2025
KERNEL: Linux 6.12.16-gentoo-x86_64
MEMORY: 84G
DESKTOP: xfce4-session 4.20.0 (Xfce 4.20)
NETWORK: Interface: enp9s0 Network: LAN


Ich habe kein Uefi sondern Bios

Was tun ?
_________________
Regards
soundrolf

MOBO: ASUS PRIME B550M-K BIOS 3802 01/14/2025
CPU: AMD Ryzen 9 5900X 12-Core Processor (24) @ 3800 MHz
GPU: AMD Navi 24 [Radeon RX 6400/6500 XT/6500M] driver: amdgpu
RAM: 80GB crucial DDR4 3200 MHz 2x8GB 2x32GB


Last edited by soundrolf on Fri Mar 07, 2025 11:02 am; edited 1 time in total
Back to top
View user's profile Send private message
Banana
Moderator
Moderator


Joined: 21 May 2004
Posts: 1928
Location: Germany

PostPosted: Thu Mar 06, 2025 7:22 pm    Post subject: Reply with quote

Was ist die Ausgabe von cat /proc/cpuinfo?
_________________
Forum Guidelines

PFL - Portage file list - find which package a file or command belongs to.
My delta-labs.org snippets do expire
Back to top
View user's profile Send private message
soundrolf
Tux's lil' helper
Tux's lil' helper


Joined: 08 Sep 2016
Posts: 140
Location: Cologne / Germany

PostPosted: Fri Mar 07, 2025 10:24 am    Post subject: Reply with quote

processor : 0
vendor_id : AuthenticAMD
cpu family : 25
model : 33
model name : AMD Ryzen 9 5900X 12-Core Processor
stepping : 2
microcode : 0xa201213
cpu MHz : 4931.941
cache size : 512 KB
physical id : 0
siblings : 16
core id : 0
cpu cores : 12
apicid : 0
initial apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 16
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl xtopology nonstop_tsc cpuid extd_apicid aperfmperf rapl pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legacy extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt tce topoext perfctr_core perfctr_nb bpext perfctr_llc mwaitx cpb cat_l3 cdp_l3 hw_pstate ssbd mba ibrs ibpb stibp vmmcall fsgsbase bmi1 avx2 smep bmi2 erms invpcid cqm rdt_a rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local clzero irperf xsaveerptr rdpru wbnoinvd arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold avic v_vmsave_vmload vgif v_spec_ctrl umip pku ospke vaes vpclmulqdq rdpid overflow_recov succor smca fsrm debug_swap
bugs : sysret_ss_attrs spectre_v1 spectre_v2 spec_store_bypass srso ibpb_no_ret
bogomips : 7386.78
TLB size : 2560 4K pages
clflush size : 64
cache_alignment : 64
address sizes : 48 bits physical, 48 bits virtual
power management: ts ttp tm hwpstate cpb eff_freq_ro [13] [14]
_________________
Regards
soundrolf

MOBO: ASUS PRIME B550M-K BIOS 3802 01/14/2025
CPU: AMD Ryzen 9 5900X 12-Core Processor (24) @ 3800 MHz
GPU: AMD Navi 24 [Radeon RX 6400/6500 XT/6500M] driver: amdgpu
RAM: 80GB crucial DDR4 3200 MHz 2x8GB 2x32GB
Back to top
View user's profile Send private message
mvaterlaus
Apprentice
Apprentice


Joined: 01 Oct 2010
Posts: 238
Location: Switzerland

PostPosted: Fri Mar 07, 2025 10:45 am    Post subject: Reply with quote

Hi soundrolf,
möglicherweise hast du im BIOS Hyperthreading nicht aktiviert. Dann siehst du nur die physischen Cores. Jedoch reicht es nicht, Hyperthreading im BIOS zu aktivieren. Um es tatsächlich benutzen zu können, musst du im Kernel ebenfalls SMT[1] aktiveren.

Im Output von /proc/cpuinfo kannst du nach processor greppen, dann siehst du alle Cores. Bei mir sieht die Ausgabe dann so aus:

Code:

grep processor /proc/cpuinfo
processor   : 0
processor   : 1
processor   : 2
processor   : 3
processor   : 4
processor   : 5
processor   : 6
processor   : 7
processor   : 8
processor   : 9
processor   : 10
processor   : 11
processor   : 12
processor   : 13
processor   : 14
processor   : 15
processor   : 16
processor   : 17
processor   : 18
processor   : 19


[1]
Code:
grep SCHED_SMT /usr/src/linux/.config

_________________
For calming down your eyes or clearing your mind: www.patrickwehli.ch
Back to top
View user's profile Send private message
soundrolf
Tux's lil' helper
Tux's lil' helper


Joined: 08 Sep 2016
Posts: 140
Location: Cologne / Germany

PostPosted: Fri Mar 07, 2025 11:01 am    Post subject: Reply with quote

CONFIG_NR_CPUS=16 war das Problem

Ich habe den Kernel neu Kopiliert mit CONFIG_NR_CPUS=24

Alles gut.Jetzt zeigt auch nproc 24
_________________
Regards
soundrolf

MOBO: ASUS PRIME B550M-K BIOS 3802 01/14/2025
CPU: AMD Ryzen 9 5900X 12-Core Processor (24) @ 3800 MHz
GPU: AMD Navi 24 [Radeon RX 6400/6500 XT/6500M] driver: amdgpu
RAM: 80GB crucial DDR4 3200 MHz 2x8GB 2x32GB
Back to top
View user's profile Send private message
Banana
Moderator
Moderator


Joined: 21 May 2004
Posts: 1928
Location: Germany

PostPosted: Fri Mar 07, 2025 1:43 pm    Post subject: Reply with quote

Oh, wieder was gelernt.

Die Frage ist nur warum dieser Wert überhaupt angepasst wurde. Default solle 8192 sein. Anpassungen haben auch keine so richtigen Auswirkungen https://lwn.net/Articles/2057/
_________________
Forum Guidelines

PFL - Portage file list - find which package a file or command belongs to.
My delta-labs.org snippets do expire
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5488
Location: Bavaria

PostPosted: Fri Mar 07, 2025 2:18 pm    Post subject: Reply with quote

Na ja, eine Reduzierung des Wertes spart ein bischen Hauptspeicher.

Ich empfehle allen AMD Nutzern nach einer Änderung dieser Kernel Option das Systemlog mit "dmesg" zu überprüfen, weil einige AMD CPUs ein seltsames Verhalten haben können:

Beschrieben am Ende dieses Kapitels unter Nummer 2:
https://wiki.gentoo.org/wiki/User:Pietinger/Tutorials/Manual_Configuring_Kernel_Version_6.12#Processor_type_and_features

(Ja, ich weiss wirklich nicht warum einige AMD CPUs das bewirken; man sollte dann aber wirklich den Wert auf den "gewünschten" Wert erhöhen)
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
firefly
Watchman
Watchman


Joined: 31 Oct 2002
Posts: 5335

PostPosted: Fri Mar 07, 2025 5:33 pm    Post subject: Reply with quote

pietinger wrote:
Na ja, eine Reduzierung des Wertes spart ein bischen Hauptspeicher.

Ich persönlich würde das für ein Desktop System, das üblicherweise mehrere GB RAM hat, eher als vernachlässigbar ansehen.
Laut dem Hilfetext für die entsprechende kconfig option wird pro CPU kern ca. 8KB benötigt.

Bei 8192 (welche nur genutzt werden wenn bestimmte andere Optionen aktiv sind) wären dass 72MB (8192*8KB)
Wobei die 8192 nicht der generelle default sind sondern der maximale wert. Ohne die Option "CPUMASK_OFFSTACK" ist der Wert maximal 512.
Und der default wert ist 64 (oder älter 32)
Bei dem default (für x86_64) mit 64 sind es 512KB

pietinger wrote:
(Ja, ich weiss wirklich nicht warum einige AMD CPUs das bewirken; man sollte dann aber wirklich den Wert auf den "gewünschten" Wert erhöhen)

Die "kleineren" Versionen einer CPU generation werden oft nicht dediziert produziert sondern es werden teil defekte chips, des voll Ausbaus, genutzt.
Gut möglich dass dadurch irgendeine Kennung, welche genutzt wird um folgende Meldung auszugeben
Quote:
smpboot: 32 Processors exceeds NR_CPUS limit of 16

bei solchen CPUs einen anderen Wert liefert als dann beim initialisieren der CPU Kerne dann wirklich verfügbar sind.
_________________
Ein Ring, sie zu knechten, sie alle zu finden,
Ins Dunkel zu treiben und ewig zu binden
Im Lande Mordor, wo die Schatten drohn.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum