From: james <garftd@verizon.net>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] RYZEN 5: Hyperthreading or no hyperthreading...
Date: Mon, 30 Mar 2020 18:17:20 -0400 [thread overview]
Message-ID: <b528f124-6419-994a-d8ce-f3852091ee7c@verizon.net> (raw)
In-Reply-To: <20200328132409.5mm5ghhw6kru5qdx@solfire>
On 3/28/20 9:24 AM, tuxic@posteo.de wrote:
> On 03/28 05:59, Mark Knecht wrote:
>> On Fri, Mar 27, 2020 at 10:58 PM <tuxic@posteo.de> wrote:
>>>
>>> On 03/27 11:51, Mark Knecht wrote:
>>>> On Fri, Mar 27, 2020 at 11:11 AM <tuxic@posteo.de> wrote:
>>>>>
>>>>> On 03/27 06:04, Andrea Conti wrote:
>>>>>> Hello,
>>>>>>
>>>>>>> Thread(s) per core: 1 <<<<<
>>>>>>> Does my CPU hyperthread?
>>>>>>
>>>>>> Definitely not.
>>>>>>
>>>>>> Your kernel config is fine, chances are hyperthreading (aka "SMT
>> mode")
>>>> is
>>>>>> disabled in your BIOS settings.
>>>>>>
>>>>>> andrea
>>>>>>
>>>>>
>>>>> Hi Andrea,
>>>>>
>>>>> I checked that: The BIOS setting was set to use hyperthreading.
>>>>>
>>>>> But "Number of cores" was set to six. I changed that to 12 and
>>>>> Voila! I got two threads per core.
>>>>>
>>>>> I think "Number of cores" is a little misleading, since there
>>>>> are six physical cores (not threads) with a RYZEN 5.
>>>>>
>>>>> I feeling not that comfortable with this solution.
>>>>>
>>>>> Is there any way to check for the validity of this setting
>>>>> beside a tool, which prints a "2" after the word "threads" ;) ?
>>>>>
>>>>> Cheers!
>>>>> Meino
>>>>>
>>>>>
>>>>
>>>> cat /proc/cpu should give info for each thread. I've been running an i7
>> 980
>>>> Extreme processor @3.33GHz here at home for about 12 years or so. It's 6
>>>> cores but shows 12 processors on both Gentoo and now Kubuntu.
>>>>
>>>> I generally run top and then hit '1' and 'z'. You can watch what
>> percentage
>>>> each core/thread is using.
>>>>
>>>> Time a BIG compile job twice, once with each kernel. If it's working
>> you'll
>>>> measure a significant difference in time. Note that it won't be 2x as
>>>> you'll also be limited by disk read/write throughput, but you'll know
>> it's
>>>> basically working.
>>>>
>>>> On Gentoo make sure you're compile settings in (I think make.conf - I no
>>>> longer run Gentoo much) are set to take advantage of all your cores and
>> not
>>>> limited to something smaller. Also watch overheating when using more
>>>> cores/threads. On older PCs like mine when you possibly have dust in CPU
>>>> coolers might not be as efficient as when they are new.
>>>>
>>>> HTH,
>>>> Mark
>>>
>>> Hi Mark,
>>>
>>> thank you for your explanations! :)
>>>
>>> /proc/cpu doesn't exist on my system....may be you are referring to
>>> /proc/cpuinfo?
>>>
>>> The problem was caused by a kernel misconfiguration by me.
>>>
>>> In the kernel setup there is a setting "Number of cores" which
>>> I had set to six ... since my CPU has 6 physical core.
>>>
>>> Setting this to twelve (and blurring the syntactically border between
>>> threads and cores thereby...) gives me twelves cores in top, htop
>>> and such and (as an example) compiling the kernel is faster -
>>> so it is not a display gimmick only.
>>>
>>> I think "Number of cores" is a misnomer...or am I wrong?
>>>
>>> Cheers!
>>> Meino
>>>
>>
>> Meino,
>> Yes, /proc/cpuinfo. Sorry.
>>
>> Well yes, I guess the 'Number of cores' is a misnomer if you're trying
>> to equate the language in the kernel against Intel/AMD marketing data for
>> physical cores. 6 physical cores with or without hyperthreading is still 6
>> physical cores. However 6 physical cores (my processor) _WITH_
>> hyperthreading enabled is 12 _LOGICAL_ cores which is more what I think the
>> kernel verbiage is about. Semantics I suppose.
>>
>> I'm glad you found it wasn't a gimmicky number. It really does work,
>> within the limits of the hardware being able to figure out what one thread
>> should be fetching or writing while the other thread is computing. It's not
>> a perfect 2:1 like 12 physical cores might be, but it's a lot less silicon
>> and therefore a lot less expensive.
>>
>> Cheers,
>> Mark
>
> Hi Mark,
>
> In the meanwhile I found "glance" and installed it, which is the
> bazooka-out-of-the-box-no-configuration terminal-brethren of "conky"
> :)
>
> Enough plugins enabled (which come with it preinstalled), you can
> watch in realtime, what each core/thread is doing right now...nearly. Big
> Brother for the sustem with no bad intention in mind. I am only
> curious :)
>
> And you get your sensors diplayed, the workload of your GPU (nvidia in
> my case), all processes and lot lot more.
>
> The faster the CPU gets (my previous PC was 12 years old...), the
> more the peripheral devices are becoming show stoppers ("stoppers"
> in the barest truth of its meaning).
>
> Unfortunatelu the SSD I ordered is in status "ready for delivery"
> since 23.03.2020....corona....you know...
>
> And with 12 cores enabled on a recent CPU and running for example a
> bigger update via emerge (enabled for 12 threads of course)
> ...all the cores are simply waiting a lot
> faster......for the harddisc :)
>
> Thanks for your help -- stay healthy!
>
> Cheers!
> Meino
Meino,
You might like the organization and details of
"sys-process/htop"
to look at cores and processes.
hth,
James
next prev parent reply other threads:[~2020-03-30 22:17 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-27 16:20 [gentoo-user] RYZEN 5: Hyperthreading or no hyperthreading tuxic
2020-03-27 17:04 ` Andrea Conti
2020-03-27 18:11 ` tuxic
2020-03-27 18:51 ` Mark Knecht
2020-03-28 5:57 ` tuxic
2020-03-28 12:59 ` Mark Knecht
2020-03-28 13:24 ` tuxic
2020-03-30 22:17 ` james [this message]
2020-03-31 3:15 ` tuxic
2020-03-27 18:02 ` Jack
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b528f124-6419-994a-d8ce-f3852091ee7c@verizon.net \
--to=garftd@verizon.net \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox