Skip to main content
Filter by
Sorted by
Tagged with
-1 votes
1 answer
48 views

How can I scale the number of concurrent workers based on the available CPU (Windows)?

My current implementation tries to figure out the available CPU in percents and then spawn new workers as long as there is at least 5% available. Here is the code: public class CpuAvailabilityMonitor {...
mark's user avatar
  • 63.1k
0 votes
0 answers
29 views

Python runs with one cpu core on remote system and automatically uses multiple on local system

Running a python script on my local system (linux based) using the terminal utilizes ~4-6 cpu cores simultaneous. If I run the same script via ssh connection on a remote system (linux based) limits ...
otherguy's user avatar
0 votes
0 answers
16 views

Get CPU Usage in Dotnet on MacOS

I have some C-Sharp code, running on MacOS(Sequoia), and I measure its resource usage by calling these two functions before and after, and subtracting. public static long GetClockTime() { var ...
Andy Jewell's user avatar
0 votes
1 answer
28 views

Websocket load test utilising high cpu and memory of the VM used for testing

I'm running api load tests with a script that's a combination of REST and websocket APIs. The resource utilisation of the VM where I'm using jmeter to execute load tests is much higher than before ...
Nathan Antony's user avatar
0 votes
1 answer
76 views

How can I retrieve the CPU usage of my Mac in the form of a percentage and put that into an updating variable?

I'm coding a Mac app in SwiftUI 6.0.3 and Xcode 16. My Mac is up to date with macOS Sequoia 15.3.1. I'm trying to have a menu bar item that updates at an interval with the percentage of the CPU that I ...
thefearsomeshrub's user avatar
1 vote
2 answers
93 views

How can I efficiently measure average CPU usage for a group of processes (bash coprocs + their children) on linux?

BACKGROUND: I wrote a bash function called forkrun that parallelizes code for you in the same way that parallel or xargs -P does. It is faster than parallel, and similar in speed to but has more ...
jkool702's user avatar
0 votes
1 answer
56 views

Does creating multiple Node.js processes improve performance for I/O-bound tasks in a web server?

Say I have a Node.js server handling thousands of requests that are primarily I/O-bound (e.g., network requests, filesystem requests). The server runs on a multi-core CPU (e.g., 4 cores). Does ...
ariko stephen's user avatar
0 votes
0 answers
56 views

Linux kernel cgroup v2 CFS - cpu throttled_usec accounting?

In Linux kernel cgroup v2’s CFS scheduler, how is cpu.stat throttled_usec accounted when a cgroup with multiple threads gets throttled during a single quota period? Specifically, is throttled_usec ...
ALZ's user avatar
  • 1,998
-1 votes
3 answers
156 views

How to find the highest clocked CPU core under linux in bash? [closed]

I wonder what clock speed my CPU cores are boosting to. How do I find out under Linux in BASH? In today's dynamically boosting CPUs, the clock speed depends on the current workload. Modern games for ...
Bengt's user avatar
  • 14.5k
0 votes
0 answers
26 views

is it possible to determine which Chrome tabs are using the most energy, using a [shell] script?

This answer describes a two-step process of determining which tabs are utilizing the most energy on MacOS, but is achievable on any Linux based system (that I know of) using htop or similar in place ...
sming's user avatar
  • 821
0 votes
0 answers
59 views

How to get correct CPU usage like in task manager using Python?

I am using psutil but the values I get is between 0 and 2% whereas the task manager is showing values way above that from 8 to 40% CPU usage. Am I missing something? import sys import psutil # To get ...
Joan Venge's user avatar
  • 332k
0 votes
2 answers
54 views

How to decrease CPU usage by an extensive loop?

I am creating a script that prints an ASCII picture. I need to separate each individual character in a tag, though the page gets too laggy and the CPU usage goes up by an extreme amount when ...
towednack's user avatar
1 vote
1 answer
70 views

vs2019 Performance Profiler no CPU usage display, All tools are not available.What should I do?

OS: Windows 11 Home 10.0.22631 CPU: Intel i7-13700,2100Mhz Memory: 48GB Vsiual Studio Enterprise 2019 Version 16.11.31. It's a mixed C and C++ project. When I switch Visual Studio to Chinese, memory ...
jian yang's user avatar
0 votes
1 answer
425 views

Google Cloud Run - metrics

CPU/Memory usage metrics I'm trying to read the cpu and memory usage metrics of GCP cloud run and I understand from answer posted in Google Cloud Run: interpreting CPU utilization metrics for ...
SowjanyaG's user avatar
1 vote
1 answer
330 views

Does Docker have support for cgroup v2's cpu.weight knob?

When the docker container was running in v1 we simply passed --cpu-shares values in the run command and as we all know in cgroup v2, we don't have cpu.shares knob available, it was replaced with cpu....
RaGa__M's user avatar
  • 2,569
0 votes
1 answer
186 views

Impact of high CPU usage on a background thread execution in Java

Context There are many ways of creating a "background thread" in Java. I want to spin off exactly one thread that keeps running in the background. I'm using ScheduledExecutorService for this....
Rushil Paul's user avatar
  • 2,046
0 votes
0 answers
49 views

Analysing GPU vs. CPU performance in Colab

I'm trying to compare GPU vs. CPU resource consumption for different operations, and I've written this generic function. The issue is that memory is coming back negative from this. Some investigation ...
Manjinder Grewal's user avatar
0 votes
0 answers
239 views

Docker on Windows 11 is causing high cpu usage and crashing the windows

I did a windows update last night (2024-07 Cumulative Update Preview for Windows 11 Version 23H2 for x64-based Systems (KB5040527)) and after the update docker desktop has stopped working and while ...
Kapil Awasthi's user avatar
0 votes
0 answers
46 views

CPU usage is getting increased on NFC usage in android app

On my application I am using NFC to read the NFC card data, After reading CPU usage is getting increased every reading even I kill the activity where I am using NFC. This is happening only in debug ...
SHIDHIN TS's user avatar
  • 1,665
2 votes
0 answers
110 views

Jetpack Compose with just one button uses too much CPU

I'm new to Jetpack Compose, and I was trying it. I'm using IntelliJ IDEA, and I'm making one for desktop. I created a new Jetpack Compose with IntelliJ IDEA, and I runned it nothing changed with ...
Tomato105's user avatar
0 votes
0 answers
42 views

Why the CPU usage of process is much higher than the sum usage of those threads under the process

I have met a weird problem that the top command shows the process CPU usage is about 180%(2Cores) in Pod, but the sum of CPU usage from those threads under this process is only 120%, how can it happen ...
Xuegao Zhou's user avatar
0 votes
0 answers
114 views

Selenium gets my cpu to 100% even after using driver.quit()

I am trying to crape data form a website using selenium and chromedriver and I need the tab to run at least 6 hours straight. I know the chrome driver creates many tabs at the same time like this: ...
Huy Nguyễn's user avatar
0 votes
2 answers
70 views

Parallel Computing and usage of CPUs

I have a conceptual question. I have a MATLAB code for simulating a beam propagation (optics) which has lots of for loops inside it but every iteration in a loop depends on the previous one (n+1 th ...
Okan Atiker's user avatar
0 votes
0 answers
94 views

VPS server %steal reason

We have VPS hosting for our e-commerce website which use hostinger service. The server specification is 32 GB RAM with 8cpu. Now when there is only user coming up in the website also not getting ...
Safwan Aipuram's user avatar
1 vote
1 answer
94 views

Can time slicing and context switches cause high CPU utilization in a Java based application?

I have a Play framework application with about 400 threads. 200 are part of the default dispatcher. Now I have 2 db sources with 9 connections each and thread pool with a min size of 20 and max of 200....
xyz's user avatar
  • 21
0 votes
0 answers
87 views

Intermittent CPU Usage Limitation During PyTorch Training on Windows (Jupyter Notebook)

I'm facing an issue with my PyTorch model training on Windows 10 using Jupyter Notebook. I've written a Python script to train a LSTM model over 500 epochs. The training process sometimes uses 100% of ...
DisplayName's user avatar
0 votes
1 answer
136 views

Why does the psutil CPU tracker not work in Google Cloud Run?

I'm currently working on a Tracker of CPU & RAM in python using psutil. I've made some tries locally and everything appears to work fine, but, when I deploy to Google Cloud Run, the tracker is not ...
lapiceroazul4's user avatar
0 votes
0 answers
40 views

comparing the performance of a x86 processor with gem5

I'm trying to create a gem5 implementation that is close to a x86 processor in terms of performance. However, I'm not sure which statistic I can use to compare the performance of the two. I was ...
user23447276's user avatar
0 votes
0 answers
61 views

Running C++ Geant4 Program on mutliple CPU cores

I was running a simple program on Geant4, compiled from C++. When I ran it, it froze, presumably because my computing power is limited. But I noticed something very interesting, in my system monitor, ...
Anirudh Yamunan Govindarajan's user avatar
3 votes
0 answers
302 views

How to get RAM and CPU usage percentages that match with values shown in Task Manager

I need to get the percentage of CPU and RAM usage at a given time using .net core 8 WEB API accurately with the figures shown in Task Manager. The problem I'm facing is the percentages of the value I ...
Selaka Nanayakkara's user avatar
0 votes
0 answers
102 views

AWS Batch Job Metric confusion

This is our current workflow: File is dropped in S3 Bucket => a Lambda is triggered => Lambda then starts a Batch Job to process the file => Batch Job starts a task in ECS => an Instance ...
Shadab Faiz's user avatar
  • 2,518
1 vote
0 answers
514 views

How to show InstanceName along with Instance ID in Grafana (Cloudwatch datasource)

I am using grafana with cloudwatch datasource. The legend of the line graph when querying metrics like cpuutilization (filtered by instanceID =*) only shows instanceID. It will be useful to show ...
Minsu's user avatar
  • 11
0 votes
0 answers
84 views

Excel VBA High CPU usage

I have an Excel VBA program with a user form. The user form has two command buttons, one is to sort and the other is quit. When I put a break on the End Sub statement if the CmdSort_Click(), and hit ...
tschop's user avatar
  • 1
-1 votes
1 answer
177 views

Right metric for CPU usage VM qemu-kvm

I am using qemu-kvm (libvirt) on Ubuntu 20.04. I've created virtual machine with 8 CPU and installed node-exporter on vm and libvirt-exporter on hv. Node exporter on virtual machine says that CPU ...
Dmitry's user avatar
  • 227
0 votes
0 answers
80 views

How to find the number of CPU cores are currently being utilised in a system using Powershell?

Let's say my system have 16 CPU cores.Now i have a use case to find the number of cores are actually being utilized in a system like 2 cores are being used something like this ? I want to know is ...
Poluru Kishore Babu's user avatar
0 votes
0 answers
129 views

Cpu usage is high

I have a site that is designed with WordPress. On this site, when I activate WooCommerce, the CPU consumption increases drastically and it gives the following errors in the error log: ---WordPress ...
Hosein Shojaei's user avatar
0 votes
0 answers
194 views

VS 2022 - Performance Profiler - select a different range of time to view the data

I am using the Diagnostic tool to collect CPU Usage data. When a breakpoint is hit, i enable the CPU Profiling. At the second breakpoint, it should show me the results, that it shows sometimes but ...
Anup's user avatar
  • 9,766
1 vote
1 answer
200 views

Default n_workers when creating a Dask cluster?

Simple question. If I create a Dask cluster using the following code: from dask.distributed import Client client = Client() How many workers will it create? I ran this code on one machine, and it ...
Adriano Matos's user avatar
0 votes
0 answers
203 views

Is it possible to run Nuxt app in clustering mode without ruining the stateful nature of the Nuxt app?

We have a web app that has an area that displays user controls depending on if the user is authenticated or not. Authentication is done via JWT token. Stack: Vue/Nuxt, AWS ECS, Aurora. So Node ...
Vadim's user avatar
  • 11
2 votes
1 answer
144 views

Investigating timeout in Karafka server: CPU utilisation, Memory utilisation, max.poll.interval.ms

I have a rails application, which includes an API server(rails server) and Worker server(Karafka server). From the API server we send some messages to topic T1 (has just 1 partition), now the Worker ...
user23353243's user avatar
3 votes
0 answers
305 views

Does std::steady_clock::now() make a syscall in Linux?

My project is a long time daemon service and need to busy check some conditions and take actions as soon as possible. I want to use std::steady_clock to account the responsing time of my service and ...
Leon's user avatar
  • 2,107
-2 votes
1 answer
138 views

High CPU usage when idle

I would like to get an answer for this question: Why when no actions are being performed, my python program takes 14% of CPU, but when actions inside the loop are performed (toggle) it is only at 4%? (...
バニーー's user avatar
0 votes
0 answers
65 views

Azkaban Executor Java Process CPU usage very high, The "top" command shows high sys usage

I have an Azkaban executor server process, which is a Java service. I noticed that when running a random sleep script, the CPU usage becomes very high, consistently exceeding 2000%, and the "top&...
hehe's user avatar
  • 407
1 vote
0 answers
118 views

Error Using Valgrind's callgrind and kcachegrind on a C++

I've been trying to analyze a simple C++ program that uses fork() to create a child process. The program compiles and runs fine. But, when I try to use Valgrind's callgrind tool to profile the program,...
Hassan Zubair's user avatar
0 votes
0 answers
118 views

Having issue with CPU boosting on AMD

Background. I am the author of an application that emulates a Tandy Color Computer (Motorola 6809). This app has been stable for five years. Lately I have noticed some strange CPU boosting issues ...
Walter ZAMBOTTI's user avatar
1 vote
0 answers
333 views

Databricks SQL Query Never Executes (15+ hour runtime)

I am connecting to a database to run SQL queries that is hosted on Azure Databricks. My cluster specs below: I have multiple SQL queries in my notebook, all nearly identical in structure. I pull data ...
stargirl871's user avatar
0 votes
0 answers
63 views

Python script becomes unresponsive at 100% CPU usage (single core)

I am trying to make a measurement using the CAEN DT5742 16-channel digitizer using the library CAENPy which is basically just a wrapper around the actual CAENDigitizer. My program scans an area with a ...
TensaZangetsu's user avatar
0 votes
0 answers
460 views

CPU usage reported in /proc/stat is inconsistent (wrong number of cpu ticks)

Summary of the issue: In order to report CPU usage per core, I decided to rely on /proc/stat file populated by the kernel. I am running an application inside a Docker container, mapped to core 1 on my ...
computer007's user avatar
0 votes
0 answers
43 views

measuring CPU utilization objectively under load

So I have a thread which does some work. Some of this work is optional and I would like to dynamically adjust how much work is being attempted based on CPU allocation. In other words I would want to ...
MK.'s user avatar
  • 34.6k
0 votes
1 answer
91 views

using while in swift for checking condition makes iOS phone over heated

I'm trying to implement a simple game, in iOS using swift. game is turn bases; first player moves, then second player, then first, ... I'm using a protocol for this: class PersonAgent: AgentProtocol { ...
Jafar Khoshtabiat's user avatar

1
2 3 4 5
59