Questions tagged [cpu-time]

103 questions
1
vote
1 answer

How to interpret the output of boost::timer::cpu_timer on multicore machine?

I use boost::timer::cpu_timer to measure the performance of some algorithm in my application. The example output looks like this: Algo1 duration: 6.755457s wall, 12.963683s user + 1.294808s system = 14.258491s CPU (211.1%) From boost cpu_timer…
tommyk
  • 3,187
  • 7
  • 39
  • 61
1
vote
2 answers

What does the metrics c, m, r, w and b of Monetdb's Stethoscope mean?

Monetdb's Stethoscope is a profiling tool and has a list of trace options. In the following measured result, I get confused by some metrics. What exactly is utime, cutime, stime and cstime? They seem to be CPU time in user and kernel space but why…
thierry
  • 217
  • 2
  • 12
1
vote
1 answer

How is CPU time measured on Windows?

I am currently creating a program which identifies processes which are hung/out-of-control, and using an entire CPU core. The program then terminates them, so the CPU usage can be kept under control. However, I have run into a problem: When I…
1
vote
1 answer

how can I effectively put my script to sleep for an accurate amount of miliseconds?

I wrote the following myscript.php: Instead of a number close to 1000, when I run php -f myscript.php on my…
NotGaeL
  • 8,344
  • 5
  • 40
  • 70
1
vote
1 answer

Why wall clock is very much higher than cpu user/kernel time

In my application written in C++, I am getting below time information. 0.46u CPU user time 1.27s CPU kernel time 41.83s Real wall clock 4% CPU% usage. 0 Major page faults 207848 No. of file system outputs. 100269 minor page faults. 82: No. of times…
quartz
  • 747
  • 9
  • 26
1
vote
2 answers

How can I write a C program to execute for a certain number of processor seconds?

I need a C program that would execute for a precise number of CPU seconds passed in as a parameter. I need such a program in order to test code that monitors a process' CPU usage. Example: busywait x Should run for x seconds on my processor.
Will Brode
  • 1,026
  • 2
  • 10
  • 27
1
vote
3 answers

Core usage in scala actor model

I just started learning scala. Is there any way to find CPU time and real time and the cores used by the program when using actor model?? Thanks in advance.
KS88
  • 147
  • 1
  • 1
  • 8
0
votes
0 answers

Script to monitor cpu time for each process for multiple Windows systems

I'm trying to monitor the CPU time for all processes running on multiple computers in order to track down which process could be taxing the CPU at specific times. I'd like to be able to collect the usage and export it to a csv for further review.…
0
votes
1 answer

Calculate CPU usage from process.cpu.time

https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/receiver/hostmetricsreceiver/internal/scraper/processscraper/documentation.md I have been using this library which gives me 3 values for a single process : user time, system…
Keval Bhogayata
  • 4,422
  • 3
  • 13
  • 36
0
votes
1 answer

Salesforce Apex CPU LImit

currently we are having issue with an CPU Limit. We do have a lot of processes that are most likely not optimized, I have already combined some processes for the same object but it is not enough. I am trying to understand logs rights now - as you…
LuV
  • 1
  • 1
0
votes
0 answers

How to calculate expected CPI and cpu time when instruction types are given?

I got two questions about cpu time and CPI but it is hard than I expected because of unfamiliar words :( Could you tell me whether my answer is right or not. Question : If company A has designed a processor P1 with the following CPIs like below and…
smrmaak
  • 11
  • 2
0
votes
0 answers

Computing time for an Open MP fortran program is the same as the sequential version

I have made a parallel version of a heat transfer simulation program with Open MP in Fortran 95, and it seems to work (results are equal). However, the time elapsed ("wall clock" time) is the same as the sequential version. My default number of…
0
votes
1 answer

How to calculate global CPI with dynamic instruction counts and determine which computer is faster?

Did I do this problem right? My answer is that P2(0.667ms) is faster than P1 (1.04ms). Which number is the global CPI? 1.6 [20] <§1.6> Consider two different implementations of the same instruction set architecture. The instructions can be divided…
cocoakrispies93
  • 45
  • 1
  • 11
0
votes
0 answers

How to diagnose high self time in VisualVM?

I am trying to implement an algorithm using different data structure implementations to see their difference, and noticed that for the exact same algorithm using a different data structure, the "Self Time" in the algorithm method is very high. Is…
Ymi
  • 609
  • 6
  • 18
0
votes
0 answers

How to convert RDTSC Clock ticks to Real Time in C or C++?

This is the code I am using in C to convert RDTSC clock ticks to time in usec. Assembly code to read the TSC. To covert RDTSC clock ticks to time, need to divide it with CPU clock frequency in GHz. CPU Frequency = 0.963 is in GHz. I don't know where…
Sobia Rind
  • 61
  • 1
  • 3