Questions tagged [cpu]
A central processing unit executes the instructions in a computer program. Use this tag for questions about programming with/for CPUs or their processor cores.
4,718
questions
0
votes
0
answers
11
views
Why the CPU usage of process is much higher than the sum usage of those threads under the process
I have met a weird problem that the top command shows the process CPU usage is about 180%(2Cores) in Pod, but the sum of CPU usage from those threads under this process is only 120%, how can it happen ...
0
votes
1
answer
43
views
MESI: why we need write-miss to move from shared to modified
The book "Computer Architecture", by Hennessy/Patterson, 6th ed, on page 394, includes an example with true sharing and false sharing misses with 2 processors.
here is the example from the ...
0
votes
0
answers
44
views
Are the Retirement unit/Reorder Buffer (ROB) one for the whole processor or one per core?
Is there one Retirement unit/Reorder Buffer (ROB) per core or one for the whole processor? Also, is there one retirement unit per core or one for the whole processor?
To be honest, I'm not even sure ...
0
votes
0
answers
23
views
How to restart a single Wildfly instance on Linux when the CPU load is over N%? [closed]
We have Wildfly installed as our Application Server. There are multiple Linux servers, and Wildfly is running in Domain mode. To keep simple assume that we have 2 servers: Linux1 and Linux2 where ...
0
votes
0
answers
34
views
Can you have multiple copies of same data in cpu cache
From wikipedia https://en.wikipedia.org/wiki/Cache_coherence
Multiple copies of same data can exist in different cache simultaneously and if processors are allowed to update their own copies freely, ...
0
votes
2
answers
70
views
Can false sharing happen in Direct-Mapped Cache?
If each address in memory is directly mapped to deterministic location in cache, cache coherence is not needed because all thread that access share data share the same cache.
Ie. Within the context of ...
-1
votes
0
answers
8
views
do we also need to place modifications in the SConstruct file?
I Am working with DVFSHandler, and I want to know if we want to place some changings in the DVFShandler.py and corresponding dvfs_handler.cc and .hh, do we also need to place modifications in the ...
0
votes
0
answers
18
views
How to use all CPU cores in Raspberry Pi for mount.davfs process
I've configured a drive map using mount.davfs in Raspberry Pi 4 working OK. We can access the mounted drive and see and use all files. The issue we are facing is that when the usage of the volume is ...
0
votes
1
answer
133
views
High CPU by circle animation with gradient
By using the following SwiftUI code the CPU consumption caused by my app is up to 55% when the app is running in XCode (simulator) with an M1.
On the real iPhone the CPU is up to 52%
FYI: the ...
0
votes
0
answers
13
views
tensorflow tfreocrd dataset load slow,how can I sovle this bottleneck,changing params like num_parallel_calls seems no use
I have tried to change almost all the params tf.Dataset offered,but all my effort seems no useful.Loading data is my bottleneck.
Here show my code and other details.
def feture_name(column, ...
0
votes
0
answers
100
views
Reduce CPU usage for cargo run
During cargo run, rustc by default takes up all CPU resources. Is it possible to limit CPU usage? For example, cpulimit -l 40 works for cargo, but rustc processes still use 100% of the CPU.
Fedora ...
-2
votes
0
answers
30
views
want to get top 'N' cpu consuming process in the system using java default library
is there any builtIn library available in java to get the top 'n' cpu consuming process name and the percentage it's consuming.i want this program to work in any os such as windows,linux.
i tired with ...
-1
votes
1
answer
69
views
What happens with the store "that lost race" to shared memory in x86 TSO memory model?
I know that x86 processors use TSO memory model and I am curious about one thing. I will explain it through example.
We have two processors (P1 and P2) where P1 stores X=1 to its store buffer and P2 ...
1
vote
1
answer
75
views
How to store items in the LIFO stack in a cache-friendly manner?
EDIT / DISCLAIMER:
It appears that my understanding of cache lines was wrong which makes this question not relevant and misleading. I thought whenever CPU tries to fetch a memory at a specific index, ...
1
vote
0
answers
62
views
Why does io_uring read a file so slowly in polling mode?
Problem Summary
I am working on a project that requires using io_uring with polling mode, but now I have encountered two problems:
I need to run it several times before I can output the content; ...