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

Resource usage of static fields

I would like to know if is it expensive in terms of resource usage to declare a static field to keep track of all istances of that class in a class that I need to istantiate thousand of times. I usually make another class like the example below, but…
Leo
  • 92
  • 8
1
vote
1 answer

repainting JPanel eats up cpu

I am trying to make a game in java and have encountered a problem. When my program repaints my JFrame it takes a lot of power from my CPU, I was wondering if there was some glaring mistake I'm overlooking or a way to decrease the CPU…
1
vote
4 answers

high cpu in IIS

I'm developing a POS application that has a local database on each POS computer, and communicates with the server using WCF hosted in IIS. The application has been deployed in several customers for over a year now. About a week ago, we've started…
Miki Watts
  • 1,746
  • 1
  • 17
  • 27
1
vote
1 answer

AWS Elasticsearch CPU usage spikes

I'm using a AWS ElasticSearch that run fine on a v1.5 cluster and i copy the entire config (shards,nodes,instance types, mapping,data) to new v2.3 cluster. When i point my DNS to the new v2.3 cluster the CPU usage create spikes that slow down my…
JoeLoco
  • 2,116
  • 4
  • 31
  • 59
1
vote
2 answers

Precise way to reduce CPU usage in an infinite loop

This is my code using QueryPeformanceCounter as timer. //timer.h class timer { private: ... public: ... double get(); //returns elapsed time in seconds void start(); }; //a.cpp void loop() { timer t; double tick; double…
hjjg200
  • 335
  • 2
  • 11
1
vote
0 answers

Android Studio emulator CPU monitoring not working

I need to inspect the CPU load of my application on Android API from level 16 to 19. I launch the emulator (armeabi-v7a architecture) and then I build and run the app. I go to Android Monitor > Monitors and the CPU monitor is not showing any data. …
fredmaggiowski
  • 2,232
  • 3
  • 25
  • 44
1
vote
0 answers

How to force PHP script to be resource hungry?

I have this PHP script created for migrating data. I want it to take as much CPU usage without actually modifying the script. I run it on the command-line like so: php migration-script.php I tried nice to increase its priority level nice --10 php…
Abel Callejo
  • 13,779
  • 10
  • 69
  • 84
1
vote
0 answers

TPL Maximise CPU and Memory Usage

I am new to parallel programming. I am using Parallel.Invoke() to execute 6 functions that are independent and can run parallel to each other. I am trying to monitor the CPU and memory Utilization for my code looking at task manager. I have Intel…
1
vote
1 answer

CPU Consumption of apache spark process

I have a system with 6 physical cores and each core has 8 hardware threads resulting in 48 virtual cores. Following are the setting in configuration files. spark-env.sh export SPARK_WORKER_CORES=1 spark-defaults.conf spark.driver.cores…
David
  • 481
  • 5
  • 14
1
vote
0 answers

pgBouncer does not use all availeable CPUs

I have a Server with multiple cores taht's suppose to run pgBouncer (1.7). It's working pretty well, but it occupies only one cpu. I get pretty high latency values when i doe a load test with pgbench, emulating several Clients. (27ms without…
RootOfProblem
  • 357
  • 1
  • 3
  • 11
1
vote
1 answer

Mac application uses more than 167% cpu

Is that bad an application uses 167% of cpu where the application do the following. Video previewing application which simultaneously show up to 32 cameras in live. Used boost library to communicate with camera and each camera connected with…
CodeDezk
  • 1,230
  • 1
  • 12
  • 40
1
vote
1 answer

QWebEnginePage abnormal CPU usage

On windows 7 pro x64 with Qt 5.6.1 this line alone is bringing my CPU up to 10-15%: QWebEnginePage *page = new QWebEnginePage(this); Deleting the page later (even immediately) does not help in reducing the usage back to 0-1% as usual for my apps.…
scopchanov
  • 7,966
  • 10
  • 40
  • 68
1
vote
2 answers

Profile cpu and memory usage during py.test execution

I am facing the following project. I want to create pictures showing the cpu and memory level during the execution of a set of performance test suites. I would appreciate any suggestion. Currently the only approach I am considering is to use the…
pafede2
  • 1,626
  • 4
  • 23
  • 40
1
vote
1 answer

Estimating memory footprint and CPU usage for a C library

I have a static library written in C, with no dynamic memory allocation. Until now, the library has only been used in an application for regular i386 Linux, where CPU and memory was plentiful. I now need to try building a version of the library…
Frode
  • 5,600
  • 1
  • 25
  • 25
1
vote
1 answer

Where could I find the code of "sched_getcpu()"

Recently I'm using the function sched_getcpu() from the header file sched.h on Linux. However, I'm wondering where could I find the source code of this function? Thanks.
S.Wan
  • 396
  • 3
  • 18