Questions tagged [cpu-usage]

CPU usage indicate how much of a workload is being handled by the CPU.

CPU-usage or CPU time is the amount of time for which a central processing unit (CPU) was used for processing instructions of a computer program.

CPU time accounting :http://public.dhe.ibm.com/software/dw/linux390/perf/CPU_time_accounting.pdf

2881 questions
1
vote
1 answer

OrientDB client CPU goes over 100% with ODB2.2.20

I want to load lots of data into Orient DB with multiple threads. I'm using OrientDB 2.2.20 and Java 1.8.0_131 to run below sample test client. But when I run this client with 5 threads and 10000 samples then the client's CPU usage goes over 100%…
pan2019
  • 55
  • 5
1
vote
1 answer

Getting average system CPU usage over a time interval in Java (linux)

I basically want the result of com.sun.management.OperatingSystemMXBean.getSystemCpuLoad() averaged over a time interval, say 60 seconds. java.lang.management.OperatingSystemMXBean has getSystemLoadAverage(), however from what I've read, that gets…
allen
  • 11
  • 1
1
vote
1 answer

Why does appengine cpu usage not add to 100%?

I'm hosting an appengine app and have found that the biggest part of my costs is my CPU usage so I'm trying to reduce that. I'm trying to find where I can make the biggest gains from optimization, however, the dashboard on my app lists a bunch of…
aloo
  • 5,331
  • 7
  • 55
  • 94
1
vote
2 answers

Constantly repainting a scene of 8000 invisible items, when a MouseArea also exists, causes high CPU usage

How to reproduce: Run my code Keep the mouse over the window that appears You'll see that CPU usage is fairly high, although it will depend on your hardware. On my PC it's 20% (5% in each of the 4 virtual cores). My motivation for this testcase:…
Stefan Monov
  • 11,332
  • 10
  • 63
  • 120
1
vote
1 answer

why is the chrome profiler not helping debug my idle website's constant cpu usage?

When my application page is not in focus, chrome drops below 3% cpu utilization. When my app is in focus, it jumps to 30-50% cpu utilization, and hums there constantly. I use a utility function to start interval timers, and log anything that is…
Jeff Bay
  • 11
  • 1
1
vote
1 answer

TestNG only makes full use of quad core for a limited time

I'm using TestNG (in Netbeans 8) to unit test a Java Keccak implementation, and currently the test suite contains 51,840 tests. When I instruct TestNG to run every test in the package, initially CPU usage is tickling the 100% ceiling, and the test…
Bobulous
  • 12,967
  • 4
  • 37
  • 68
1
vote
1 answer

Metrics for CPU usage and Utilization using Spring Boot Dropwizard

Is there a way to measure CPU usage and Utilization of different aspects (CPU, Thread, Memory etc) using dropwizard in spring-boot?
Divs
  • 1,578
  • 2
  • 24
  • 51
1
vote
1 answer

Statistics of CPU read versus write instructions ( including reading of program )

I am looking to find the percentage between memory read and write CPU instructions ( including the read instructions to fetch the program ), but I cannot find any such statistics. A plausible quantity could be 1 instruction read, one data read, one…
George Kourtis
  • 2,381
  • 3
  • 18
  • 28
1
vote
1 answer

Get I/O metrics of CPU in iOS

I have been looking for metrics such as below in iOS.However with no success yet.Being new to this Unix metrics environment, I would really appreciate to get any starters or help on this. Thanks. 1.system.io.util - The percent of time the CPU spent…
iSD
  • 103
  • 10
1
vote
1 answer

Getting Load average of CPU in iOS?

I m trying to figure out getting load average of iOS system over time intervals of 1,5 and 15 minutes. I have found the usage example regarding it which is as below : double la[3]; getloadavg(la, 3); NSLog(@"Load average : %f - %f - %f", la[0],…
iCodes
  • 1,382
  • 3
  • 21
  • 47
1
vote
1 answer

Can a database connection leak cause increased CPU usage?

There's a server that might be experiencing PostgreSQL database connection leaks. That server has also maxed out it's CPU at times (as indicated by %user being extremely high upon running sar -u). Could database connection leaks be causing the…
Daniel
  • 1,774
  • 2
  • 22
  • 38
1
vote
1 answer

Measure CPU/memory consumption

I used this for measure the time execution in c++: struct timeval t1, t2; gettimeofday(&t1, NULL); gettimeofday(&t2, NULL); int milliSeconds = (t2.tv_sec - t1.tv_sec) * 1000 + (t2.tv_usec - t1.tv_usec)/1000; But I want to measure also the cpu /…
PRVS
  • 1,612
  • 4
  • 38
  • 75
1
vote
1 answer

Do "C++ boost::asio Recursive timer callback" accumulate callstack?

I want to make C++ program that one thread sends the network message periodically at 1 seconds interval. I heard about boost library the most useful cross-platform library to support c++. My first idea is below. Define one function which has the…
Yoonsung Lee
  • 115
  • 1
  • 9
1
vote
1 answer

How to retrieve total system CPU usage from Windows in C++?

I need to retrieve total CPU usage on the fly for a feedback system to change the behavior based on whether CPU is getting throttled or not. For this, I looked into NtQuerySystemInformation sys call which provides system information at any given…
hellSigma
  • 301
  • 4
  • 13
1
vote
2 answers

MySQL SELECT NOT IN from 30K rows fast

My DB table name_info has it 30K row & terms table 60K row, When select not in table, server CPU goes up. How can I best write a query that select 1 row fast? SELECT slug FROM terms WHERE slug LIKE 'nm%' AND slug NOT IN (SELECT imdb_id FROM…
Parsa
  • 596
  • 1
  • 5
  • 15