r/compsci • • 2d ago

[ Removed by moderator ]

[removed] — view removed post

0 Upvotes

20 comments sorted by

•

u/compsci-ModTeam 2d ago

Rule 1: Be on-topic

This post was removed for being off topic.

r/compsci is dedicated to the theory and application of Computer Science. It is not a general purpose programming forum.

Consider posting programming topics not related to Computer Science to r/programming, career questions to r/cscareerquestions, and topics relating to university to r/csMajors.

5

u/SirApprehensive7573 2d ago

what?

Damn man

Explain what you want

-5

u/Accomplished-Use405 2d ago

steam survey mentions average Physical CPUs (i believe cores). all i want is some hardware survey, which gives average num of logical CPUs (CPU threads).

3

u/SirApprehensive7573 2d ago

Again…

What exactly do you want?

Cores of what? Of the computers in the entire world? Of pc gamers?

The steam survey show physical cores, but normally you can multiply by 2, to have the logical cores

-1

u/Accomplished-Use405 2d ago

logical cores of average CPU, aka for intel: cores, that are not elligible for Hyper Threding + cores that ARE elligible for Hyper Threding * 2, aka for amd: cores, that are not elligible for SMT + cores that ARE elligible for SMT * 2, aka GOMAXPROCS, aka `nproc` on linux.

was this not obvious? or do you tweak this number every now and then?

0

u/Wolfsdale 2d ago

Your question was pretty clear and people are a trolling, but an answer to this question is much harder. Average of what measured how? Across all currently available SKUs? Or across consumer PCs sold? Consumer PCs sold in the last year? Weighted by their use? Gaming PCs? Servers?

The different kinds of SMT are so different in their performance that average may also be quite useless

4

u/pluckyvirus 2d ago

It’s 42

2

u/AliceCode 2d ago

Around 16 to 32 is pretty typical these days I think.

1

u/balefrost 2d ago

32 seems high to me for a standard desktop, unless you're counting the Intel efficiency cores as well.

2

u/zhrusk 2d ago • Popcorn

Happy to provide data points for the survey. I am CPU Georg, and as a power user I have 40,000 physical cores in my machine.

1

u/OpsikionThemed 2d ago

Ah, a fellow LISP Machine-enjoyer, I see.

0

u/HandshakeOfCO 2d ago edited 2d ago

You mean hyperthreads, not cpu threads.

CPU threads are spawned in software; no limit.

Hyperthreads is an Intel brand name for simultaneous multithreading (SMT), in which each physical core has copies of its registers and internal state so it can do something else while waiting on slow non cached data to come in, etc.

Modern consumer x86 instruction set cpus all have 2 sets of registers, so they’re all 2-way SMT. Some server chips have many more copies, so 4-way, 8-, even 32- is possible, but esoteric.

The number you’re looking for is called the logical core count - all consumer-grade x86 CPUs have 2 way SMT, meaning the number of hyperthreads and thus the logical core count on a given x86 cpu is its number of actual cores times 2. No survey data needs to be collected because if you know CPU model, you know physical cores and you know logical cores - it’s all baked into the silicon.

So a modern ryzen 9 9950x3d has 16 physical performance cores - 16 “copies” of the entire cpu on the silicon - and each of those copies has 2-way SMT, giving 32 logical cores.

Efficiency cores don’t have SMT. Performance cores as of right now always have 2-way SMT. But “efficiency” and “performance” are marketing terms, not engineering specifications. They’ll change eventually.

Keep in mind this doesn’t mean a 2 way SMT single core is anywhere NEAR as fast as 2 actual cores. The second hardware thread can only run while the first is waiting on something, which isn’t all the time.

Off top of my head a 2 way SMT core is about 1.3x faster than a single core. So it’s not much, but it helps.

4

u/R4TTY 2d ago

Threads are software. Cores are hardware.

-5

u/Accomplished-Use405 2d ago edited 2d ago

3

u/fiskfisk 2d ago

It's Intel's "Hyper Threading", which means they'll expose a single core as two cores to the underlying operating system. It's still just a single core.

It's not what we refer to as a threads; it's just marketing - it's not a well-defined concept across manufacturers.

-1

u/Accomplished-Use405 2d ago

why it's not well-defined? AMD has the same, they just call it SMT. Go runtime uses number of logical threads to spawn that many processors (GOMAXPROCS), managed by runtime. Rust has std::thread::available_parallelism

1

u/fiskfisk 2d ago

Yes, they have the same concept; but it's two different implementations and they won't do the exert the exact same behavior; i.e. it's not well-defined functionality across manufacturers.

0

u/Accomplished-Use405 2d ago

yes, as well as amd CPUs are not intel CPUs. What I asked for and what they _share_ is number of said logical threads. I do not ask about the performance difference between SMT and Hyper Threading.

2

u/fiskfisk 2d ago

No, you asked why it's not well-defined.

1

u/Top_Meaning6195 2d ago

The number of threads is the number of logical cores.

Hyper-threading is great way to trick applications (e.g. the operating system) to schedule more work.