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

Converting kubernetes kublet API usageNanoCore or usageCoreNanoSeconds to CPU utilization % Kubernetes kublet API

I'm querying the Kubernetes kubelet API (curl -s http://localhost:10255/stats/summary) for CPU/Memory statistics and the CPU info is showing up as follows. "cpu": { "time": "2016-08-04T22:48:22Z", "usageNanoCores":…
Brian
  • 17
  • 4
1
vote
0 answers

Multithreading using CURL increasing cpu usage

I have following instances mysql : 1 instance (8gb RAM) nginx : 4 instances I am assigning jobs to 4 nginx instances from mysql instance using curl POST request. In this case mysql cpu usage is got increased. I dont want any cpu load to mysql.…
Online
  • 71
  • 1
  • 8
1
vote
1 answer

How do I find the total memory and cpu usage of a process and all of its children in lunux

I would like to know the CPU and memory usage of a process and all of its children processes in Linux. it would be better to have solution using ps command.but other solutions are also welcome. Please help Thanks Shuja
David
  • 481
  • 5
  • 14
1
vote
0 answers

OSX Simple OpenGL burning up 200% CPU

On OSX, I have a very simple game loop that runs some OpenGL code, which are simply a few matrix transformations (almost all of which are computed on the GPU) and a texture who's binding is managed intelligently, so that it is not bound every frame.…
Sus Among Us
  • 103
  • 2
  • 11
1
vote
3 answers

which is faster a memory for a search through each object or a memory for all tile blocks

I have a game with a 100 by 100 2d grid. I have placed objects in some of the squares. If I wanted the user to be able to get something from a specific square, would it be better (use less cpu) to search trough each object every time or to have a…
WEPIOD
  • 53
  • 9
1
vote
1 answer

Node server randomly spikes to 100% then crashes. How to diagnose?

I'm making an online browser game with websockets and a node server and if I have around 20-30 players, the CPU is usually around 2% and RAM at 10-15%. I'm just using a cheap Digital Ocean droplet to host it. However, every 20-30 minutes it seems,…
Lawrence Douglas
  • 667
  • 1
  • 7
  • 15
1
vote
1 answer

How much cpu does an Android App need to consume to be cpu-intensive?

I need to write a few cpu-intensive Android applications. One I have already coded is a BigInteger factorial but it consumes totally around 30-40% of my cellphone cpu. My phone is hexa-core and the cpu-usage is about 5% kernel and 30% user. Is this…
Goldera
  • 11
  • 4
1
vote
1 answer

Monitoring Cassandra CPU usage with JMX/MBeans

I want to write a simple Java code to monitor a Cassandra database with JMX. Now I'm stuck with retrieving the CPU usage of the database. As far as I figured out, a possible MBean would be the java.lang:type=OperatingSystem with attribute…
nwag
  • 13
  • 4
1
vote
1 answer

What all factors are important when measuring CPU time for a process?

What all factors are important when measuring CPU time for a process? I am not interested in How to measure CPU time as it will largely depend on the Operating System. But I want to know if I have to measure the CPU time for a process what all…
ViFI
  • 971
  • 1
  • 11
  • 27
1
vote
0 answers

Measure performance impact on NUMA machines for interbank copy

I have a 64 bit NUMA machine with 2 banks. I know there is performance penalty if CPU from 1 bank tries to access the memory of other bank. I want to measure it by some example code. I tried to write the below (CPU1 and CPU7 are on different…
ashish
  • 813
  • 3
  • 10
  • 18
1
vote
0 answers

How to make Java application use all CPU groups

I am running a java application on Intel(R) Xeon(R) machine which has 72 CPUs (with Hyperthreading on). Since, Microsoft groups CPUs into two groups if there are more than 64 CPUs, the java application uses only 1 group (or in other words 36 CPUs).…
Gaurav
  • 193
  • 1
  • 1
  • 12
1
vote
4 answers

Is using multiple 'while()' loops bad practice?

I am writing two applications that work with each other. One is in c++, the other in C#. As there is streaming data involved, I am using, in multiple places, code such as: while (true) { //copy streamed data to other places } I am noticing that…
anti
  • 3,011
  • 7
  • 36
  • 86
1
vote
1 answer

How to limit CPU resources / Shockwave Flash

Can I set a maximum percentage of CPU resources a specific program or process can use? I want to use the executable name instead of its pid, because I would like certain executables to always run with constrained resources. The reason I ask for that…
Pietro
  • 12,086
  • 26
  • 100
  • 193
1
vote
0 answers

KVM idle VM CPU 100% usage with ehci

My idle KVM Windows VM used 100% CPU. It went from 100% host CPU down to 3% host CPU after I disabled ehci(Standard Enhanced PCI to USB Host Controller) in Device Manager. Device Magener Picture Vm run normally at the beginning. It went up to 100%…
Sev_Y
  • 115
  • 1
  • 2
  • 8
1
vote
0 answers

Quite slow and high use of CPU when creating and updating a line chart with Chart.js and AJAX

I am trying to create a line chart with Chart.js, that updates every second using AJAX. I am quite new to JavaScript. I had some problems doing it, my main issue at the beginning being how to initialize myNewChart.Line(data, options); with 20…
Nasser
  • 11
  • 4