cpu Questions
3
Solved
In languages like C, unsynchronized reads and writes to the same memory location from different threads is undefined behavior. But in the CPU, cache coherence says that if one core writes to a memo...
Sceptic asked 11/10, 2021 at 12:5
1
I want to filter some data (100s of MB to a few GBs). The user can change the filters so I have to re-filter the data frequently.
The code is rather simple:
std::vector<Event*> filteredEven...
9
Solved
Is there an API to get the number of CPUs available in Linux?
I mean, without using /proc/cpuinfo or any other sys-node file...
I've found this implementation using sched.h:
int GetCPUCount()
{
cp...
Befog asked 3/1, 2011 at 16:53
6
Solved
I am using Intel(R) Core(TM) i5 CPU M 560 @ 2.67GHz as I found out from cat /proc/cpuinfo. But I want to know exact hierarchy like how many sockets are there, and how many cores are there per socke...
Dara asked 23/8, 2013 at 11:43
2
I am trying to detect the current p-state of my cpu. I have noticed that the p-state status MSR (C001_0063) always returns 2 on my ryzen 1700x system, even if the core is clearly not in that state....
Artur asked 20/12, 2017 at 18:10
26
Solved
I want to create a near 100% load on a Linux machine. It's quad core system and I want all cores going full speed. Ideally, the CPU load would last a designated amount of time and then stop. I'm ho...
1
I read that the multithreading is the feature that a single core can manage many threads (not in parallel) and the benefit is that the CPU is always working. For the Hyperthreading that a single co...
Nasal asked 21/10, 2022 at 10:51
2
Ideally I have to find out the CPU usage of pods on each node in percentage. But I have tried to find out the CPU usage of each node. I have written the query but it gives me more than 100 % (it ca...
Symbology asked 12/2, 2021 at 10:5
21
Solved
How can I get the current system status (current CPU, RAM, free disk space, etc.) in Python? Ideally, it would work for both Unix and Windows platforms.
There seems to be a few possible ways of ext...
2
I have a Node app deployed on AWS Fargate on the 1 vCPU/2GB memory task config. I have been wondering about the behavior that Node.js has when running on this setup in relationship to the vCPUs tha...
Enter asked 27/7, 2020 at 1:58
1
Sometimes you need to know how much memory does your program need during it's peak, but might not care a lot about when exactly this peak occurs and how long etc. Pytorch has this nice tool for rep...
0
This is the original tests. The figure shows that CPU=8 in Intel Core i9-12900K has the fastest access to all other cores.
Therefore, I am wondering what makes it happen.
Besides, I am also curious...
Afforest asked 19/9, 2022 at 1:38
3
I have the VirtualBox installed on my Macbook Pro, and I want to install a linux VM on VirtualBox.
When I launched the new VM, it prompts that "Your CPU does not support long mode. Use a 32bit dist...
Itself asked 27/11, 2012 at 8:57
4
(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 ...
Gouda asked 22/12, 2012 at 10:54
3
I just want to share a small script that I made to enhance the docker stats command.
I am not sure about the exactitude of this method.
Can I assume that the total amount of memory consumed by the...
Foretaste asked 16/11, 2017 at 13:36
2
Solved
Before you laugh at me: I want to ask arithmetic operation is done in ALU unit or accumulator. I read a book it says accumulator is a register for doing arithmetic.
This Accumulator said
Withou...
Peewee asked 26/6, 2016 at 18:7
1
Solved
How many instructions on zen 3 CPUs are exclusive to AMD?
I am aware of only 3: mwaitx, monitorx, and clzero
Also, the 3DNow! and lwp instruction sets were once AMD exclusive but they have since be...
Witchhunt asked 19/7, 2022 at 0:55
11
Solved
I have recently installed tensorflow (Windows CPU version) and received the following message:
Successfully installed tensorflow-1.4.0 tensorflow-tensorboard-0.4.0rc2
Then when I tried to run
im...
Approachable asked 2/11, 2017 at 6:10
7
Solved
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 S...
Aimee asked 25/5, 2017 at 16:54
5
I want to get the CPU temperature.
Below is what I've done using C++ and WMI. I'm reading MSAcpi_ThermalZoneTemperature, but it's always the same and it's not the CPU temperature at all.
Is there...
Prog asked 26/4, 2014 at 18:24
2
Solved
Assuming that I have a CPU with 4 cores and 4 threads, does it make sense to run e.g. 8 PHP-FPM workers by setting pm.max_children = 8 option? As far as I'm concerned, CPU with 4 threads can only r...
Unaccomplished asked 10/4, 2022 at 9:22
2
Solved
Is anyway (any function etc) to show CPU cores utilization in MATLAB in a GUI likes that we have in Task Manager of windows (Performance Tab)?
Thanks.
Skinflint asked 20/9, 2014 at 16:10
5
In the book Computer Systems: A Programmer's Perspective, the Exercise 5.5 shows a piece of code to compute the value of a polynomial
double poly(double a[], double x, int degree)
{
long in...
Trici asked 9/2, 2013 at 9:30
1
Solved
1
Solved
I know store buffer and invalidate queues are reasons that cause memory reordering. What I don't know is if Out-of-Order-Execution can cause memory reordering.
In my opinion, Out-of-Order-Execution...
Bailee asked 6/4, 2022 at 14:32
© 2022 - 2024 — McMap. All rights reserved.