Questions tagged [cpu-usage]
CPU usage indicate how much of a workload is being handled by the CPU.
2,755
questions
1
vote
0
answers
36
views
How do I measure percent CPU usage using prometheus?
I’m trying to use the prometheus measurements to get percent CPU usage for each micro service running in Kubernetes to optimize CPU resources and limits.
I have a setup where for each customer there ...
0
votes
0
answers
20
views
Prometheus - CPU Load for a period of time
I'm trying to find the CPU load of my servers, on a 15m average for the last 60 days.
And I would like to define a server, as under-utilized:
If usage is below 10% during this period
If usage is ...
2
votes
0
answers
21
views
Interpreting the output of perf.data file using perf report
My C++ application was consuming a lot of CPU cycles. So I have profiled my application using the Linux profiler.The output of the profiler (perf.data) file was generated, and I have run perf report
...
0
votes
0
answers
50
views
debugging a CPU creep issue
I am investigating a CPU creep that happens on my machine. Below it the htop output screenshot.
]
The htop output shows multiple entries for each application. I am assuming that it is one for each ...
0
votes
0
answers
9
views
windows resource monitor shows all CPUs running at 70%+. So why in wsl2 does mpstat show all 97%+idle?
I am using a machine learning model to make predictions and wanted to see if it uses all 8 processors if I pass in batches of 8. On windows resource manager it shows graphs with each CPU at 70%+. ...
0
votes
0
answers
27
views
Apache Server using 100% resources
We are experiencing Apache HTTP Server (64 bit) service high CPU usage [100% approx] and Memory usage[90% approx] which raises the overall CPU utilization to 100% constantly after upgrading the CPU ...
1
vote
0
answers
31
views
Ubuntu server CPU maxed / overloaded / 100% when importer runs SQL query finding attachment ID and queuing them for deletion
I have been on a wild goose chase trying to find the culprit downing our website. I have tracked it down using top -i followed by examining the process showing 90+% CPU usage with pidstat -t -p {...
1
vote
0
answers
51
views
How does CPU hopping affect calculation speed in Python?
System: Debian 10 running in the Google Cloud Platform as a DLVM, n1-highmem-16 machine type.
I'm doing some heavy calculations in Python, and I'm using the multiprocessing module to use a lot more of ...
1
vote
1
answer
32
views
How to limit CPU usage of Matlab in Linux
When I run a Matlab simulation on my PC (20 cores), it uses all cores. Is there any way to limit CPU availability to Matlab, so that it uses only, say, 10 cores?
0
votes
1
answer
77
views
Limit CPU usage in Vscode
I would like to ask if it's possible to limit the CPU usage of Vscode? I saw some articles related to disabling extensions and typescripts and it works as it does not clog the CPU but on the system ...
0
votes
0
answers
17
views
Can you get CPU usage percentage based on profiling data displayed on a FlameGraph
Initial Background: I am working with eBPF for CPU profiling, using BCC, and then dumping the output of the profiling tool to a FlameGraph. I have also tried passing a PID to trace a single process ...
0
votes
0
answers
37
views
Single thread consumes > 100% CPU usage, according to XCode Instruments Profiler?
I profiled an app (Mac OS) using CPU Profiler, part of the XCode Instruments tools.
I expect that each thread (of my process) can at the most consume 100% CPU usage. It cannot consume more than 100% ...
0
votes
0
answers
5
views
Get daily average CPU usage from Digital Ocean graphs
How can one get daily average CPU usage, so check if a specific optimization affected overall daily CPU usage?
I mean if there is any API or tool to get this average?
Check my sketch for example of ...
-2
votes
0
answers
18
views
Recommendation GPU/CPU Profilers
I am looking for GPU profilers that also bring CPU information and that can export information to a CSV or similar file.
I tried using Tensorflow profiler but got too many bugs and I don't understand ...
0
votes
0
answers
80
views
non-blocking c socket causes 100% CPU usage
i am trying to tell my C socket to be non-blocking. It is written in Swift using the Darwin library.
The socket works as intended. But when I tell the socket to be non-blocking with F_SETFL in fcntl, ...
4
votes
1
answer
65
views
Docker BuildKit not Parallelizing Independent Stages without `echo`s
Assume export DOCKER_BUILDKIT=1.
Take main.py:
i = 0
while True:
i += 1
Take this Dockerfile:
FROM python:3.9-slim as base
COPY main.py .
FROM base as part_1
RUN echo "A" && ...
1
vote
1
answer
41
views
Update progress bar from thread monitoring CPU activity
I am getting this error from my code:
RuntimeWarning: MetaObjectBuilder::addMethod: Invalid method signature provided for "CPU_VALUE"
self.threadclass.CPU_VALUE.connect(SIGNAL('CPU_VALUE'),...
0
votes
0
answers
47
views
Which cpus were allocated to kubernetes pod by CPU Manager?
I have an access to kubernetes pod that has CPUs managed by CPU Manager with static policy. I don't have access to admin over pods but I would like to see which exlusive CPUs my pod has access to. ...
0
votes
0
answers
61
views
Istio Envoy proxy cpu resources
We would like to use Istio for our workload in a production environment. The required CPU resources are documented here: https://istio.io/latest/docs/ops/deployment/performance-and-scalability/
The ...
0
votes
0
answers
37
views
RPM causes high CPU ussage on CentOS CWP
Today the server was under high load for couple of hours when complex PHP script was executed without supervision.
After that the CPU load was constantly at 100% with RPM processes taking up most of ...
0
votes
0
answers
31
views
Where to find the Mathematics skills to calculate a lost time in resources usage?
In Disk usage
If interval let name it A (6sec), and there's an activity that has throughput 10MBs ( low throughput due to contention with another activities)
Then the activity jumped to 20MBs let name ...
0
votes
0
answers
68
views
VMware Workstation set CPU limit for each VM
Host: Windows Server 2016
VM: Windows 7
Hello, the goal would be to decrease the overall CPU usage of each single Virtual Machine without making the VM crash or freeze.
Everything that I tried:
Limit ...
0
votes
1
answer
30
views
Server with multi-processor, how to launch code
I don't have a big knowledge in hardware, GPU and CPU so I'm trying to create it. I have a server with N processor, the description for each of them is more or less the following one:
processor : 63
...
0
votes
1
answer
45
views
Why the same tasks cost differerent CPU on linux kernel 4.9 and 5.4?
My application is a compute intensive task(I.e. video encoding). When it is running on linux kernel 4.9(Ubuntu 16.04), the cpu usage is 3300%. But when it is running on linux kernel 5.4(Ubuntu 20.04), ...
0
votes
0
answers
63
views
Get CPU usage with Delphi [duplicate]
I'm trying to get a percentage of CPU usage using Delphi, I've tried this solutions:
How to retrieve cpu usage per process
Get the Percentage of Total CPU Usage
https://forum.lazarus.freepascal.org/...
2
votes
1
answer
41
views
Why doesn't a forever loop crash? Why does an infinite recursion crash?
My question is: Why does an infinite recursion crash, but not an infinite loop? They both feel like normal forever iterators yet one crashes while the other doesn't. I am looking for the hardware/low-...
0
votes
0
answers
12
views
Abnormal values of CPU usage in Mesos
I want to calculate the CPU utilization of each framework in Mesos. Following this, I have determined that I can use /monitor/statistics/ endpoint to collect the data for each task on slaves and then ...
0
votes
1
answer
26
views
Training loop doesn't start when num_workers >1 in the DataLoader
I have an NLP classification problem where I have a DataLoader object and its code is
train_patentload = DataLoader(train_patentset, batch_size=4, shuffle=True,num_workers=2)
When I run the training ...
0
votes
0
answers
38
views
How to increase CPU cores utilisation for running a script in linux?
I am trying to run a script on a Linux server.
Currently, while running it, only 30-40% of all CPU cores are utilized, how can I get it to use 80-90% so the time to run that script will be reduced?
...
0
votes
2
answers
137
views
OpenMP has low CPU usage
My OpenMP Implementation shows a really bad performance. When I profile it with vtune, I have a super low CPU usage and I don't know why. Does anyone have an idea?
Hardware:
NUMA architecture with 28 ...
1
vote
1
answer
68
views
Dockerized NodeJS container app monitoring its own allocated CPU usage
I want my containerized NodeJS app to be able to track its own CPU usage but don't find a way of doing it (all I found is to monitor the host cores usage).
I don't want to use docker stats inside the ...
1
vote
2
answers
103
views
goroutines have high idle wake up calls
I'm using GoLang to run two websocket clients (one for private and one for public data) simultaneously using goroutines. On the surface, everything seems to work fine. Both clients receive data ...
2
votes
1
answer
270
views
How are CPU resource units (millicore/millicpu) calculated under the hood?
Let's take this processor as an example: a CPU with 2 cores and 4 threads (2 threads per core).
From what I've read, such a CPU has 2 physical cores but can process 4 threads simultaneously through ...
0
votes
0
answers
44
views
VisualVM GC Activity is reported as zero
I am using OpenJDK, Java 8, VisualVM 1.2.1 (same JDK for application being profiled). In VisualVM, under the Monitor tab, we are able to see CPU usage and % of GC Activity. The issue is, % of GC ...
0
votes
0
answers
278
views
High CPU-Memory usage by Postgres
I have an EC2 instance running Postgresql-13 with one database that isn't large i think
SELECT pg_size_pretty(pg_database_size('postgres')) -> 136 MB
I inserted about 500k rows yesterday and now i'...
0
votes
0
answers
68
views
How to get the %cpu of a process in FreeBSD?
In Linux, the %cpu returned by the ps command is documented as "cpu utilization of the process in "##.#" format. Currently, it is the CPU time used divided by the time the process has ...
0
votes
1
answer
48
views
What causes Scene Builder 100% cpu usage and unresponsiveness?
Scene Builder information:
Product Version
JavaFX Scene Builder 17.0.0
Build Information
Version 17.0.0
Date: 2021-09-29 13:41:03
JavaFX Version: 17
Java Version: 17, OpenJDK Runtime Environment
...
2
votes
1
answer
100
views
How to get total vCPU's count via GCP API
I would like to call GCP API call to get vCPU's total count. If all my instances use 280 vCPUs, I want to get 280 in the response.
I can get the vCPU limit via the API metrics using "/services/...
0
votes
1
answer
33
views
Profile CPU Usage of DSP objects in Realtime
Description
Our Application is based of DSP synthesizer mostly used to create music, written in C Language, and I want to create a system-wide feature to give visual feedback to the user so they can ...
1
vote
1
answer
373
views
How to figure out what is causing high CPU usage spikes for laravel project
I have built a relatively complicated system (CMS) which consists of two projects - admin site and user site. On admin site we create content and add it to pages. User site reflects those pages. The ...
0
votes
0
answers
125
views
How much CPU usage is normal for RealTime electron APP
I wrote a electron app for a device from aliexpress (simple spectrum analyzer), and I feed the data to the app through some dlls etc. That is not that important, but just so you know what it is.
...
-2
votes
1
answer
38
views
Does cpu usage affect reading of serial data? [closed]
I'm not sure if this is an obvious question, but I am somewhat new to serial communication (at least never thought about it in this depth) and extremely new to Python. I have a Raspberry Pi and a ...
0
votes
0
answers
62
views
WHM Wordpress admin-ajax.php High CPU Load: Error "-1 ENOENT (No such file or directory)"
To all the awesome gurus out there:
I have just migrated to a new VPS server and noticed admin-ajax.php using up a very high amount of CPU% in WHM and when I traced the process I can see plenty of ...
1
vote
0
answers
43
views
Unusually high CPU stats while deploying service on AWS
I am deploying my yml files on AWS and using below snippet to calculate cpu utilization. To add context I have my service coded in go/python and I am using similar code snippet to do util calculation.
...
0
votes
1
answer
352
views
Visual Studio 2022 CPU Usage frozen at preparing data step
I am trying to look at CPU usage with Visual Studio 2022, and I have done this before in Visual Studio 2017 without any issue, but in 2022 so far it has always gotten stuck at the preparing data step. ...
-1
votes
2
answers
35
views
how we can capture particular stored procedure's resource usage in mysql server
how we can capture particular stored procedure's resource usage in MYSQL server and also for query that how we can get resource usage for it.
0
votes
1
answer
28
views
how i can capture particular query or procedure's resource usage.in MySQL
how i can capture particular query or procedure's resource usage in MySQL?
-1
votes
1
answer
631
views
How to get current CPU and RAM usage, and also how much is available in C# .NET core without looping over all processes?
Is there any method in C# to have the current amount of memory used and how much is available, without needing to loop over all processes and add each workingset64 value?
0
votes
1
answer
29
views
Is there any method or query by which we can capture resource usage for running query in MySQL server
any query / method by which we can capture the resource usage for running query or stored procedure? Can anyone help me with this please !?
1
vote
1
answer
306
views
Why is pg_restore that slow and PostgreSQL almost not even using the CPU?
I just had to use pg_restore with a small dump of 30MB and it took in average 5 minutes! On my colleagues' computers, it is ultra fast, like a dozen of seconds. The difference between the two is the ...