Skip to main content

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.

0 votes
0 answers
32 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, ...
progr's user avatar
  • 33
0 votes
2 answers
63 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 ...
progr's user avatar
  • 33
-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 ...
Khaki's user avatar
  • 1
-2 votes
0 answers
27 views

What can i check or do for my high CPU utilisation [closed]

I seem to being experiencing a very intermittent cause on my Random servers of 100% CPU which seems to be SQL Server. When this happens, I'm unable to login to the SQL instance to access the databases....
ravi chetty's user avatar
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 ...
Xuti's user avatar
  • 89
-2 votes
0 answers
31 views

Difference between an 8-bit addressable CPU and an 8-bit CPU [closed]

I was recently given a test and they mentioned that the CPU was an 8-bit addressable one. They wanted me to write a C program that would write a character of arrays to some specific location in the ...
blindhunter's user avatar
-2 votes
0 answers
25 views

Why is the transpose operation commonly used to change the view of data rather than operating in memory? [closed]

Why is the transpose operation commonly used to change the view of data rather than operating in memory? Changing the data view will obviously bring about the problem of no longer needing to copy the ...
Mchen Hao's user avatar
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 ...
LetsBeHappy's user avatar
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, ...
ZHH's user avatar
  • 1
0 votes
0 answers
96 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 ...
Artem Baranov's user avatar
-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 ...
Arun Prasanth's user avatar
-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 ...
Cosmos's user avatar
  • 145
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, ...
i like bananas's user avatar
1 vote
0 answers
55 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; ...
Harrison Hao's user avatar
2 votes
1 answer
59 views

How can I measure the memory and cpu used by a specific request in ASP.NET Core Web API?

I want to see which API calls use more memory and cpu. I tried to create middleware that tracks memory and cpu usage and they can't track only current request's metrics. I want to see which API calls ...
Xusan Ne'matov's user avatar

15 30 50 per page
1
2 3 4 5
315