Questions tagged [hyperthreading]

In a hyperthreaded CPU, for each processor core that is physically present, the operating system addresses two virtual or logical cores, and shares the workload between them when possible.

In an hyper threaded environment, For each processor core that is physically present, the operating system addresses two virtual or logical cores, and shares the workload between them when possible.

This allows to decrease the number of dependent instructions on the pipeline. It takes advantage of superscalar architecture (multiple instructions operating on separate data in parallel).

223 questions
0
votes
0 answers

Does hyperthreading have an bad impact on a core which is fully occupied

I have been learning for an exam and try to understand hyperthreading. Lets suppose we have a physical core with hyperthreading, Thread A and B. Let's also suppose thread A has fully occupied the physical core. Is there a chance to switch to Thread…
0
votes
0 answers

Why does hyperthreading not improve web worker performance, and why does navigator.hardwareConcurrency not take this into account?

Multiple StackOverflow answers say that the optimal number of web workers to use is equal to the number of physical cores in the machine, not the number of logical cores. This matches my personal testing; my Macbook has hyperthreading enabled and…
0
votes
1 answer

Running Slurm array jobs one per virtual core instead of one per physical core

we have a machine with 2x64-core CPU, each core consists of 2 virtual cores, so in htop we see 256 distinct (virtual) CPUs. We configured Slurm quality of service to better manage CPU usage per user. I.e. we have defined a --qos=cpus50 which, as far…
Paloha
  • 558
  • 6
  • 14
0
votes
0 answers

Is it possible to launch a process and limit the number of processor cores it can use?

I have an end of support application that is having issues with processors with more than 8 cores for some reason. Is it possible to launch this application as a process from C# while limiting the number of cores it sees? Alternatively, I realized…
Raheel Khan
  • 14,205
  • 13
  • 80
  • 168
0
votes
1 answer

Hyperthread consumes more CPU for same work compared to CPU consumed while hyperthread is disabled

I have 2 core machine with hyperthreading enabled, so I have 4vCPUs(0,1,2,3). There are several threads running which are pinned to vCPU 1 and 3. So that hyperthreads are not used. Now I have this one thread which when pinned to 0,1,2,3 runs at 40%…
0
votes
0 answers

Local Memory vs Global Memory

Just for clarity. Does Local Memory refer to the memory allocated to a certain program? And does the Global memory refer the the Main memory? I am reading about Uniform Memory Access time and Non Uniform Memory Access time. They say a multiprocessor…
0
votes
0 answers

[risc-v]does 2-way Simultaneous multithreading core share register files, or do they have separate registers?

For example, in an 4-core system with 2-way SMT, you have 8 harts, which is it? 4 separate x0-x31 registers ,pc, and csrs, or 8 separate x0-x31, pc, and csrs?
May
  • 101
  • 7
0
votes
2 answers

Kubernetes CPU allocation: is vCore vs vCPU vs core in Azure?

I am running a Java application on an Azure Kubernetes node with a Standard_D8s_v3 VM. I am unsure about CPU allocation for a kubernetes deployment. This mentions that 1 CPU is equals to 1 Azure vCore. However the Azure VM specs mentions that…
Navindu09
  • 3
  • 1
  • 3
0
votes
0 answers

How do get this function to run on multiple cores/processors in R?

How would I go about running this function across multiple cores on my machine to speed it up. The function implements a backfitting algorithm to fit a nonparametric bivariate linear model using functional data. The ffunopare.knn.gcv() function…
0
votes
1 answer

Is Simultaneous Multithreading (Hyperthreading) "true" multicore processing?

So what I am aware of is that Simultaneous Multithreading (Intel's Hyperthreading for example) enables a single CPU core to efficiently manage several threads at once. And most explainations I find is that it's like you have more than one core at…
0
votes
0 answers

Best thread to core ratio for hyperthreading processors

I did some research and I came to the conclusion that 1 thread per core is the best performing ratio, but the questions I read referred to very old cpus which had 2 cores and 2 threads. For a ryzen with 8 cores and 16 threads, should I summon 16…
0
votes
2 answers

Best way to compute a big Mandelbrot image

I try to calculate a fractal image, and as the calculation could be long as the resolution increase, I was wondering if I could use Hyper Threading to calculate "tiles" of my final image and then have the result. But all my tries to split Threads or…
Neoz
  • 11
0
votes
0 answers

Why is executing two threads on two logical cores better than executing two threads on one physical core?

Modern CPU specifications seem to always mention twice the number of threads for each core. If it is a 4-core processor, the number of threads mentioned is 8. If it is a 6-core processor, the number of threads is 12. At first, this felt confusing…
Navin
  • 11
  • 4
0
votes
1 answer

What problems Hyperthreading can solve?

Sorry for being stupid but recently I stamped upon Hyperthreading and I was amazed how epic and awesome it is but I was wondering what problems it can fix.
0
votes
0 answers

Relation between cpu, multi-processor and multi-core; how many cores my computer has

My OS is Ubuntu 18.04, my computer cpu is Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz When I use cat /proc/cpuinfo, I find my cpu has 12 (processor 1 - 11) processors. Every processor has info as below, take process 1 as an example processor : 1 cpu…
yeehaw
  • 159
  • 2
  • 11