1 |
On Fri, Mar 27, 2020 at 10:58 PM <tuxic@××××××.de> wrote: |
2 |
> |
3 |
> On 03/27 11:51, Mark Knecht wrote: |
4 |
> > On Fri, Mar 27, 2020 at 11:11 AM <tuxic@××××××.de> wrote: |
5 |
> > > |
6 |
> > > On 03/27 06:04, Andrea Conti wrote: |
7 |
> > > > Hello, |
8 |
> > > > |
9 |
> > > > > Thread(s) per core: 1 <<<<< |
10 |
> > > > > Does my CPU hyperthread? |
11 |
> > > > |
12 |
> > > > Definitely not. |
13 |
> > > > |
14 |
> > > > Your kernel config is fine, chances are hyperthreading (aka "SMT |
15 |
mode") |
16 |
> > is |
17 |
> > > > disabled in your BIOS settings. |
18 |
> > > > |
19 |
> > > > andrea |
20 |
> > > > |
21 |
> > > |
22 |
> > > Hi Andrea, |
23 |
> > > |
24 |
> > > I checked that: The BIOS setting was set to use hyperthreading. |
25 |
> > > |
26 |
> > > But "Number of cores" was set to six. I changed that to 12 and |
27 |
> > > Voila! I got two threads per core. |
28 |
> > > |
29 |
> > > I think "Number of cores" is a little misleading, since there |
30 |
> > > are six physical cores (not threads) with a RYZEN 5. |
31 |
> > > |
32 |
> > > I feeling not that comfortable with this solution. |
33 |
> > > |
34 |
> > > Is there any way to check for the validity of this setting |
35 |
> > > beside a tool, which prints a "2" after the word "threads" ;) ? |
36 |
> > > |
37 |
> > > Cheers! |
38 |
> > > Meino |
39 |
> > > |
40 |
> > > |
41 |
> > |
42 |
> > cat /proc/cpu should give info for each thread. I've been running an i7 |
43 |
980 |
44 |
> > Extreme processor @3.33GHz here at home for about 12 years or so. It's 6 |
45 |
> > cores but shows 12 processors on both Gentoo and now Kubuntu. |
46 |
> > |
47 |
> > I generally run top and then hit '1' and 'z'. You can watch what |
48 |
percentage |
49 |
> > each core/thread is using. |
50 |
> > |
51 |
> > Time a BIG compile job twice, once with each kernel. If it's working |
52 |
you'll |
53 |
> > measure a significant difference in time. Note that it won't be 2x as |
54 |
> > you'll also be limited by disk read/write throughput, but you'll know |
55 |
it's |
56 |
> > basically working. |
57 |
> > |
58 |
> > On Gentoo make sure you're compile settings in (I think make.conf - I no |
59 |
> > longer run Gentoo much) are set to take advantage of all your cores and |
60 |
not |
61 |
> > limited to something smaller. Also watch overheating when using more |
62 |
> > cores/threads. On older PCs like mine when you possibly have dust in CPU |
63 |
> > coolers might not be as efficient as when they are new. |
64 |
> > |
65 |
> > HTH, |
66 |
> > Mark |
67 |
> |
68 |
> Hi Mark, |
69 |
> |
70 |
> thank you for your explanations! :) |
71 |
> |
72 |
> /proc/cpu doesn't exist on my system....may be you are referring to |
73 |
> /proc/cpuinfo? |
74 |
> |
75 |
> The problem was caused by a kernel misconfiguration by me. |
76 |
> |
77 |
> In the kernel setup there is a setting "Number of cores" which |
78 |
> I had set to six ... since my CPU has 6 physical core. |
79 |
> |
80 |
> Setting this to twelve (and blurring the syntactically border between |
81 |
> threads and cores thereby...) gives me twelves cores in top, htop |
82 |
> and such and (as an example) compiling the kernel is faster - |
83 |
> so it is not a display gimmick only. |
84 |
> |
85 |
> I think "Number of cores" is a misnomer...or am I wrong? |
86 |
> |
87 |
> Cheers! |
88 |
> Meino |
89 |
> |
90 |
|
91 |
Meino, |
92 |
Yes, /proc/cpuinfo. Sorry. |
93 |
|
94 |
Well yes, I guess the 'Number of cores' is a misnomer if you're trying |
95 |
to equate the language in the kernel against Intel/AMD marketing data for |
96 |
physical cores. 6 physical cores with or without hyperthreading is still 6 |
97 |
physical cores. However 6 physical cores (my processor) _WITH_ |
98 |
hyperthreading enabled is 12 _LOGICAL_ cores which is more what I think the |
99 |
kernel verbiage is about. Semantics I suppose. |
100 |
|
101 |
I'm glad you found it wasn't a gimmicky number. It really does work, |
102 |
within the limits of the hardware being able to figure out what one thread |
103 |
should be fetching or writing while the other thread is computing. It's not |
104 |
a perfect 2:1 like 12 physical cores might be, but it's a lot less silicon |
105 |
and therefore a lot less expensive. |
106 |
|
107 |
Cheers, |
108 |
Mark |