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

Processes running on a particular core

I used taskset to pin a process to a particular core but there are other processes as well which share that core. Is it possible to know which processes share which cores explicitly? For example to get an information like "core 0 has processes 1,…
Sabster
  • 89
  • 1
  • 12
1
vote
1 answer

calculating cpu usage in nodejs

I'm trying to calculate the CPU usage on the computer running my nodejs app but for some reason the output is a lot higher than what my system monitor on ubuntu is showing me. Here is my code: const cores = _.map(os.cpus(), 'times') const free =…
ninesalt
  • 4,054
  • 5
  • 35
  • 75
1
vote
0 answers

How to get Log of particular applicaion?

When I start running application on Ubuntu 16.04, i have face a problem of CPU usage of 100% for each application for long time. I need to get log of that particular application (its execution log) so I can find problem/bug.
1
vote
2 answers

How can I pause resume of all thread?

My use case: A process -> request pause/resume(via IPC) -> B process My purpose is to save CPU usage of B process when B process is background. Because all threads of B process are consuming CPU usage. So that I want to pause/restart all threads of…
Hercoa
  • 69
  • 1
  • 7
1
vote
2 answers

find out what query is a process making knowing the PID of it

By using htop command, I can see one mysqld process is taking more than 500% CPU usage and the PID of it is for example 20456 htop only show command /usr/bin/mysqld next to it Now, what I would like to do is to examine what query is that PID making?…
magedev207
  • 21
  • 3
1
vote
1 answer

Run a process on a specific CPU in Linux? (can't use command line to specify)

I'm trying to run a process on a specific CPU I specify in my C program periodically on my Linux machine. I am not sure how to specify inside my program the specific CPU the process needs to run on. I have been reading about ways to do this on the…
Mr.Mips
  • 379
  • 2
  • 18
1
vote
0 answers

Usage of CPU/GPU while using Stitching() in OpenCV & OpenCL

Specs : Visual Studio 2017 ; OpenCV 3.4 I am trying to run the stitching algorithm of OpenCV on my computer GPU. To do that I use the OpenCL library, which is inclued in a transparant API in OpenCV…
A.T.
  • 11
  • 2
1
vote
1 answer

Unable to fetch cpu utilization on remote server through python paramiko

I'm trying to fetch the CPU utilization on remote servers by using python paramiko. import paramiko from socket import error as socket_error import os try: ssh_remote =paramiko.SSHClient() …
Victory
  • 121
  • 1
  • 3
  • 18
1
vote
1 answer

How can I use metrics-server instead of heapster to see CPU usage in HPA

How can I set to use metrics-server to get CPU usage for HPA? # kubectl top nodes error: metrics not available yet # kubectl get pods -n kube-system NAME READY STATUS RESTARTS AGE heapster-709db6bd48-f2gba 2/2 Running 0…
DaiKeung
  • 1,077
  • 1
  • 19
  • 38
1
vote
1 answer

AWS CloudWatch - 100% CPU Utilization

I have an AWS M4.Large EC2 instance running a Magento e-commerce site that is experiencing consistent max CPU usage spikes at a regular interval: 10 minutes at 100% CPU, followed by 20 minutes at 40-50% CPU. I've included a screenshot below. I am…
Josh Kautz
  • 459
  • 3
  • 5
  • 31
1
vote
0 answers

PHP processing time and CPU usage with million rows comparing

I have a tool witch compare one string with, on average - 250k strings from database. Two tables are used during compare process - categories and categories_strings. In string table there is around 2.5 million rows while pivot - categories_string…
ficus
  • 196
  • 2
  • 17
1
vote
1 answer

GetForegroundWindow() with Ticker C# - Reduce CPU Usage

I am creating a program that will monitor computer usage. Part of this program requires that I know at all times what the foreground window is. That is achieved by this code: // Returns the name of the process owning the foreground window. …
StoriKnow
  • 5,738
  • 6
  • 37
  • 46
1
vote
1 answer

Why is this method to obtain CPU utilization produces results 2 times lower than that from the Task Manager?

I'm using the following method to detect CPU utilization: #include "pch.h" #include #include int get_CPU_Usage(void); int main() { COORD c = {0}; HANDLE hStdOut = ::GetStdHandle(STD_OUTPUT_HANDLE); for(;;…
c00000fd
  • 20,994
  • 29
  • 177
  • 400
1
vote
2 answers

AWS EC2 t2.small Instance CPU utilization spikes to 100% at regular interval every day

My EC2 t2.small instance CPU Utilization goes to 100% every day at the same time, roughly between 21:25 and 21:30 server time. I have checked syslog and apache log and found nothing unusual during that time. Also, I have checked my cron jobs and…
Milos Dakic
  • 141
  • 1
  • 6
1
vote
0 answers

CPU usage shows high after switching from java 8 to java 10

The same application behaves strange in java 10. In Java 10 CPU usage shows much higher when compared to running in Java 8 or Java 7 even if the GC rate is low.
Sreejith S S
  • 109
  • 2
  • 7