Skip to main content
-2 votes
0 answers
61 views

I want to reserve some CPU and mem for SSH in case of high CPU and mem usage, so that I can go inside the server troubleshoot and kill the process consuming most resources. I have used the below to ...
At555's user avatar
  • 7
0 votes
1 answer
78 views

I am trying to measure the processing time, or CPU time, of a CPU-intensive computation that has been parallelized with multiprocessing. However, simply bookending the parallelization of the ...
SapereAude's user avatar
1 vote
0 answers
145 views

I wasn't able to find anything regarding this on the internet: I am using multiprocessing (concurrent.futures. ProcessPoolExecutor(max_workers=(...)) as executor) to execute several DRL training ...
Sum's user avatar
  • 11
3 votes
0 answers
114 views

Can you ever make frame resizing at least somewhat reasonable in terms of the CPU usage? Here's a bare-bones demo. It's just a JFrame with a JPanel inside it, that's it. Aggressively resize it (press ...
Sergey Zolotarev's user avatar
0 votes
1 answer
76 views

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.7k
0 votes
0 answers
40 views

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
38 views

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
73 views

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
111 views

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 ...
user avatar
1 vote
2 answers
120 views

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
72 views

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
137 views

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
  • 2,018
0 votes
0 answers
89 views

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
  • 334k
0 votes
2 answers
72 views

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
188 views

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

15 30 50 per page
1
2 3 4 5
193