Questions tagged [cpu]

The central processing unit or "processor" inside a computer which executes the instructions in a computer program.

The central processing unit (CPU) is the portion of a computer system that carries out the instructions of a computer program, and is the primary element carrying out the computer's functions. The central processing unit carries out each instruction of the program in sequence, to perform the basic arithmetical, logical, and input/output operations of the system. This term has been in use in the computer industry at least since the early 1960s. The form, design and implementation of CPUs have changed dramatically since the earliest examples, but their fundamental operation remains much the same.

Source: Wikipedia

4662 questions
22
votes
1 answer

Xcode 9 - High CPU usage - Fan max speed

Ever since I upgraded to Xcode 9, my fan goes crazy when I'm working on Xcode. This is especially happening when I use Storyboards and Interface Builder. Xcode sometimes takes up to 100% of the CPU and the process named "Interface Builder Cocoa…
Edouard Barbier
  • 1,815
  • 2
  • 19
  • 32
22
votes
4 answers

Using javascript to detect device CPU/GPU performance?

(The question is not specific to three.js but I will use it as an example) I have been using three.js to develop a web app interface lately and written some nice fallback between WebGL and Canvas renderer (for desktop browsers). But now the problem…
bitinn
  • 9,188
  • 10
  • 38
  • 64
22
votes
4 answers

Why not using GPUs as a CPU?

I know the question is only partially programming-related because the answer I would like to get is originally from these two questions: Why are CPU cores number so low (vs GPU)? and Why aren't we using GPUs instead of CPUs, GPUs only or CPUs only?…
Maiss
  • 1,641
  • 4
  • 18
  • 23
22
votes
1 answer

What is general difference between Superscalar and out-of-order (OoO) execution?

I've been reading some material on superscalr and OoO and I am confused. I think their architecture graphs look very much the same.
cloudygoose
  • 608
  • 1
  • 6
  • 16
21
votes
5 answers

Detect current CPU Clock Speed Programmatically on OS X?

I just bought a nifty MBA 13" Core i7. I'm told the CPU speed varies automatically, and pretty wildly, too. I'd really like to be able to monitor this with a simple app. Are there any Cocoa or C calls to find the current clock speed, without…
Tim
  • 14,447
  • 6
  • 40
  • 63
21
votes
13 answers

How to determine the hardware (CPU and RAM) on a machine?

I'm working on a cross platform profiling suite, and would like to add information about the machine's CPU (architecture/clock speed/cores) and RAM(total) to the report of each run. Currently I need to target Windows and Unix, so I need methods to…
Robert Gould
  • 68,773
  • 61
  • 187
  • 272
21
votes
1 answer

Pytorch : W ParallelNative.cpp:206

I'm trying to use a pre-trained template on my image set by following the tutorial right here : https://pytorch.org/tutorials/beginner/finetuning_torchvision_models_tutorial.html Only I always get this "error" when I run my code and the console…
Marcel
  • 341
  • 1
  • 2
  • 6
21
votes
2 answers

Multi threading with Millicores in Kubernetes

I am confused of the concept of millicores in Kubernetes. As per my programming knowledge, only one thread can run per core so why would I set a limit in millicores? For example, if I set a CPU limit of 600m to a container, can I use 400m for…
Divyang Shah
  • 3,577
  • 5
  • 14
  • 27
21
votes
7 answers

Does Android Studio Performance Scale Well With Number Of CPU Cores

for example AMD Ryzen 5 1600 has 6 (2 logical cores per physical) cores with Clockspeed: 3.2 GHz Turbo Speed: 3.6 GHz . In contrast, Intel Core i5-7600 has 4 cores with Clockspeed: 3.5 GHz Turbo Speed: 4.1 GHz. My exprience, Ryzen 1600 perform litle…
Kamal Mrock
  • 374
  • 1
  • 2
  • 13
21
votes
1 answer

JavaFX 8 QuantumRenderer high CPU usage

I have a JavaFX APP containing two listviews displaying incoming customer orders (using a custom cellfactory) received from my server. I also have a few tableview displaying information from a Postgres database (this are spread across a few tabs…
Lucian
  • 236
  • 2
  • 8
20
votes
9 answers

Convert the output of os.cpus() in Node.js to percentage

Is there a way to convert the os.cpus() info to percentage? Just like the output of iostat (on the CPU section). My code: var os = require('os'); console.log(os.cpus()); The output: [ { model: 'MacBookAir4,2', speed: 1800, times: {…
rogeriopvl
  • 51,659
  • 8
  • 55
  • 58
20
votes
1 answer

cpu vs gpu - when cpu is better

I know many examples when GPU is much faster than CPU. But exists algorithms (problems) which are very hard to parallelise. Could you give me some examples or tests when CPU can overcome GPU ? Edit: Thanks for suggestions! We can make a comparison…
tynk
  • 211
  • 2
  • 5
20
votes
1 answer

How does Linux perf calculate the cache-references and cache-misses events

I am confused by the perf events cache-misses and L1-icache-load-misses,L1-dcache-load-misses,LLC-load-misses. As when I tried to perf stat all of them, the answer doesn't seem consistent: %$: sudo perf stat -B -e…
LouisYe
  • 303
  • 2
  • 6
20
votes
6 answers

R: how to check how many cores/CPU usage available

R is single-threaded. Using R, how to check how many cores/threads are running R in Windows and Linux? (Or how many Rs are running) Using R, how to check the usage of each core that is running R in Windows and Linux? (Or the percentage of CPU each…
WCMC
  • 1,602
  • 3
  • 20
  • 32
20
votes
6 answers

Get CPU temperature in CMD/POWER Shell

In my computer I am trying to get the CPU temperature. Searching on StackOverflow I found this: C:\WINDOWS\system32>wmic /namespace:\\root\wmi PATH MSAcpi_ThermalZoneTemperature get CurrentTemperature But I get this error: Node -…
utkroza blue
  • 201
  • 1
  • 2
  • 3