close
Skip to main content

Question list filters

Filter by
Sorted by
Tagged with
Score of -2
0 answers
72 views

When I run my application (an executable file), it uses n CPU cores. I pass the process ID of the application to sched_getaffinity to check which cores are being utilised by my application. ...
Advice
3 votes
18 replies
462 views

CPU often performs speculative execution on code branches like if ( a > b) And discards the result in case of misprediction. However let's consider the following: int* ptr = nullptr; //do some work ...
Advice
1 vote
1 replies
69 views

Can someone explain the difference between a Node and a Cell in a NUMA system? They seem to refer to the same thing.
Advice
0 votes
7 replies
150 views

I was thinking about floats and doubles and was wondering if the fact that they use 32 bits and 64 bits respectively means there is a performance increase either in terms of memory used or time for ...
Score of 1
0 answers
81 views

I am utilizing PyTorch for federated experiments. As my experiments involves 50 datasets with models, so, I have to run multiple ML models experiments parallelly. The code for training ML model is ...
Score of 7
0 answers
223 views

I have a loop that counts the newlines in a string. I played with the loop unrolling and I saw an improvement in performance. Then I thought that the CPU won't be able to utilize its pipelining ...
Score of 0
0 answers
108 views

The chart shows CPU usage over time for a container running a Next.js 12 Page Router application. I’m running a Next.js 12 application using the Page Router with SSR (getServerSideProps) in production....
Best practices
1 vote
14 replies
6k views

Do all the integer comparison operators(>=, >, <=, <, ==) have the same performance? If we look at this c++ code for example: #include <iostream> int main(int argc, char * argv[]) { ...
Score of 1
0 answers
113 views

I have Intellij Ultimate edition V2025.3 "Profiler" does not exist in Settings/Preferences > Build, Execution, Deployment > Java Profiler. I have tried the below option as well, no ...
Advice
1 vote
2 replies
161 views

What is the difference between an interrupt and a context switch? I understand the concept of an interrupt and how it occurs. However, I'm digging deeper into the topic. I studied Computer ...
Score of 3
1 answer
192 views

I'm experimenting with measuring CPU's instructions latency and throughput on P and E cores using RDPMC on Win 11, something like that: MOV ECX, 0x40000000 ; Instructions Counter RDPMC ; Read ...
Score of 0
1 answer
131 views

I am trying to implement Cache allocation Technology`s impact with my CPU. However, when I use either lscpu to see whether my CPU supports, or cpuid -l 0x10, output is false. How is this possible? How ...
Score of 1
1 answer
143 views

I've been digging into "true" randomness idea, and I've noticed that modern CPUs support instructions for generating randomness. X64 has RDRAND instruction, while ARM has RNDR (I'm not ...
Score of 1
1 answer
133 views

Building on this question here The term thread divergence is used in CUDA; from my understanding it's a situation where different threads are assigned to do different tasks and this results in a big ...
Score of 0
2 answers
1294 views

I’m running Silero VAD (via PyTorch + torchaudio) on a Linode cloud instance (2 dedicated CPUs, 4 GB RAM). When I process 10-minute audio chunks, I always get repeated warnings like this and it doesn'...

15 30 50 per page
1
2 3 4 5
314