1 |
On 03/30 06:17, james wrote: |
2 |
> On 3/28/20 9:24 AM, tuxic@××××××.de wrote: |
3 |
> > On 03/28 05:59, Mark Knecht wrote: |
4 |
> > > On Fri, Mar 27, 2020 at 10:58 PM <tuxic@××××××.de> wrote: |
5 |
> > > > |
6 |
> > > > On 03/27 11:51, Mark Knecht wrote: |
7 |
> > > > > On Fri, Mar 27, 2020 at 11:11 AM <tuxic@××××××.de> wrote: |
8 |
> > > > > > |
9 |
> > > > > > On 03/27 06:04, Andrea Conti wrote: |
10 |
> > > > > > > Hello, |
11 |
> > > > > > > |
12 |
> > > > > > > > Thread(s) per core: 1 <<<<< |
13 |
> > > > > > > > Does my CPU hyperthread? |
14 |
> > > > > > > |
15 |
> > > > > > > Definitely not. |
16 |
> > > > > > > |
17 |
> > > > > > > Your kernel config is fine, chances are hyperthreading (aka "SMT |
18 |
> > > mode") |
19 |
> > > > > is |
20 |
> > > > > > > disabled in your BIOS settings. |
21 |
> > > > > > > |
22 |
> > > > > > > andrea |
23 |
> > > > > > > |
24 |
> > > > > > |
25 |
> > > > > > Hi Andrea, |
26 |
> > > > > > |
27 |
> > > > > > I checked that: The BIOS setting was set to use hyperthreading. |
28 |
> > > > > > |
29 |
> > > > > > But "Number of cores" was set to six. I changed that to 12 and |
30 |
> > > > > > Voila! I got two threads per core. |
31 |
> > > > > > |
32 |
> > > > > > I think "Number of cores" is a little misleading, since there |
33 |
> > > > > > are six physical cores (not threads) with a RYZEN 5. |
34 |
> > > > > > |
35 |
> > > > > > I feeling not that comfortable with this solution. |
36 |
> > > > > > |
37 |
> > > > > > Is there any way to check for the validity of this setting |
38 |
> > > > > > beside a tool, which prints a "2" after the word "threads" ;) ? |
39 |
> > > > > > |
40 |
> > > > > > Cheers! |
41 |
> > > > > > Meino |
42 |
> > > > > > |
43 |
> > > > > > |
44 |
> > > > > |
45 |
> > > > > cat /proc/cpu should give info for each thread. I've been running an i7 |
46 |
> > > 980 |
47 |
> > > > > Extreme processor @3.33GHz here at home for about 12 years or so. It's 6 |
48 |
> > > > > cores but shows 12 processors on both Gentoo and now Kubuntu. |
49 |
> > > > > |
50 |
> > > > > I generally run top and then hit '1' and 'z'. You can watch what |
51 |
> > > percentage |
52 |
> > > > > each core/thread is using. |
53 |
> > > > > |
54 |
> > > > > Time a BIG compile job twice, once with each kernel. If it's working |
55 |
> > > you'll |
56 |
> > > > > measure a significant difference in time. Note that it won't be 2x as |
57 |
> > > > > you'll also be limited by disk read/write throughput, but you'll know |
58 |
> > > it's |
59 |
> > > > > basically working. |
60 |
> > > > > |
61 |
> > > > > On Gentoo make sure you're compile settings in (I think make.conf - I no |
62 |
> > > > > longer run Gentoo much) are set to take advantage of all your cores and |
63 |
> > > not |
64 |
> > > > > limited to something smaller. Also watch overheating when using more |
65 |
> > > > > cores/threads. On older PCs like mine when you possibly have dust in CPU |
66 |
> > > > > coolers might not be as efficient as when they are new. |
67 |
> > > > > |
68 |
> > > > > HTH, |
69 |
> > > > > Mark |
70 |
> > > > |
71 |
> > > > Hi Mark, |
72 |
> > > > |
73 |
> > > > thank you for your explanations! :) |
74 |
> > > > |
75 |
> > > > /proc/cpu doesn't exist on my system....may be you are referring to |
76 |
> > > > /proc/cpuinfo? |
77 |
> > > > |
78 |
> > > > The problem was caused by a kernel misconfiguration by me. |
79 |
> > > > |
80 |
> > > > In the kernel setup there is a setting "Number of cores" which |
81 |
> > > > I had set to six ... since my CPU has 6 physical core. |
82 |
> > > > |
83 |
> > > > Setting this to twelve (and blurring the syntactically border between |
84 |
> > > > threads and cores thereby...) gives me twelves cores in top, htop |
85 |
> > > > and such and (as an example) compiling the kernel is faster - |
86 |
> > > > so it is not a display gimmick only. |
87 |
> > > > |
88 |
> > > > I think "Number of cores" is a misnomer...or am I wrong? |
89 |
> > > > |
90 |
> > > > Cheers! |
91 |
> > > > Meino |
92 |
> > > > |
93 |
> > > |
94 |
> > > Meino, |
95 |
> > > Yes, /proc/cpuinfo. Sorry. |
96 |
> > > |
97 |
> > > Well yes, I guess the 'Number of cores' is a misnomer if you're trying |
98 |
> > > to equate the language in the kernel against Intel/AMD marketing data for |
99 |
> > > physical cores. 6 physical cores with or without hyperthreading is still 6 |
100 |
> > > physical cores. However 6 physical cores (my processor) _WITH_ |
101 |
> > > hyperthreading enabled is 12 _LOGICAL_ cores which is more what I think the |
102 |
> > > kernel verbiage is about. Semantics I suppose. |
103 |
> > > |
104 |
> > > I'm glad you found it wasn't a gimmicky number. It really does work, |
105 |
> > > within the limits of the hardware being able to figure out what one thread |
106 |
> > > should be fetching or writing while the other thread is computing. It's not |
107 |
> > > a perfect 2:1 like 12 physical cores might be, but it's a lot less silicon |
108 |
> > > and therefore a lot less expensive. |
109 |
> > > |
110 |
> > > Cheers, |
111 |
> > > Mark |
112 |
> > |
113 |
> > Hi Mark, |
114 |
> > |
115 |
> > In the meanwhile I found "glance" and installed it, which is the |
116 |
> > bazooka-out-of-the-box-no-configuration terminal-brethren of "conky" |
117 |
> > :) |
118 |
> > |
119 |
> > Enough plugins enabled (which come with it preinstalled), you can |
120 |
> > watch in realtime, what each core/thread is doing right now...nearly. Big |
121 |
> > Brother for the sustem with no bad intention in mind. I am only |
122 |
> > curious :) |
123 |
> > |
124 |
> > And you get your sensors diplayed, the workload of your GPU (nvidia in |
125 |
> > my case), all processes and lot lot more. |
126 |
> > |
127 |
> > The faster the CPU gets (my previous PC was 12 years old...), the |
128 |
> > more the peripheral devices are becoming show stoppers ("stoppers" |
129 |
> > in the barest truth of its meaning). |
130 |
> > |
131 |
> > Unfortunatelu the SSD I ordered is in status "ready for delivery" |
132 |
> > since 23.03.2020....corona....you know... |
133 |
> > |
134 |
> > And with 12 cores enabled on a recent CPU and running for example a |
135 |
> > bigger update via emerge (enabled for 12 threads of course) |
136 |
> > ...all the cores are simply waiting a lot |
137 |
> > faster......for the harddisc :) |
138 |
> > |
139 |
> > Thanks for your help -- stay healthy! |
140 |
> > |
141 |
> > Cheers! |
142 |
> > Meino |
143 |
> |
144 |
> Meino, |
145 |
> |
146 |
> You might like the organization and details of |
147 |
> |
148 |
> "sys-process/htop" |
149 |
> |
150 |
> to look at cores and processes. |
151 |
> |
152 |
> |
153 |
> hth, |
154 |
> James |
155 |
> |
156 |
> |
157 |
|
158 |
James, |
159 |
|
160 |
...is a companion of mine for a long time already - thanks |
161 |
for your help! |
162 |
|
163 |
Meino |