Questions tagged [cpu-usage]
The cpu-usage tag has no usage guidance.
257
questions
0
votes
0
answers
62
views
Per-user cumulative CPU time across reboots
I have installed the process accounting package (acct) and recorded data.
Using sa --print-seconds --user-summary | grep "$USER", I get the process account summary for my user:
wjwrpoyob ...
0
votes
1
answer
12
views
per-command cumulative CPU time statistics
I'm running a system off of a battery, so I care a lot about cumulative CPU time usage.
A process that runs for a long time accumulates a lot of CPU time in top compared to a process that runs and ...
0
votes
0
answers
79
views
Cumulative CPU time across reboots
How can I record and view cumulative CPU time on system across reboots? Essentially, it should be like the TIME+ column of top, but not per process. In other words, like vnstat, but for CPU time. I am ...
1
vote
0
answers
69
views
Htop shows half cores at 100% cpu usage after power on, but no processes are runing
I am using an Ubuntu 20.04 server, but it starts up with 50% CPU use without any process running. I tried many ways such as rebooting and upgrading OS, including this, but in vain.
can anyone help me ...
0
votes
1
answer
51
views
Limit CPU usage of background process if system is busy
At the moment I do the following: When I see that the system load of my Ubuntu server is high, I get the PIDs of specific currently running background processes and start cpulimit with the PID. When ...
1
vote
0
answers
33
views
CPUIdle: what could be the reason for a core refusing entering the C6 state though the kernel requests so?
I'm trying to measure the time that a core spent in each c-state during a workload run and found a weird phenomenon: the kernel requests a core to enter C6, but the hardware only stays in C1.
The ...
0
votes
0
answers
89
views
CPU spikes to 30% when watching any kind of videos in exodia os (arch distro)
Recently i switched from windows to Linux.
I've been trying a lot of distros, but my choice fell on exodia (arch distro based on bspwm). I find it really useful for me as someone who is into ...
0
votes
0
answers
257
views
RHEL8 systemd using a lot of CPU, load on system when doing nothing is very high
I've been trying to determine the source of high load on a system,
top:
top - 09:55:12 up 1 day, 11:48, 4 users, load average: 7.64, 6.52, 6.33
Tasks: 279 total, 2 running, 276 sleeping, 0 ...
0
votes
0
answers
142
views
How do I calculate current CPU consumption of Processes in Linux (To get value as from TOP command) from /PROC/
I have a problem with calculating process CPU load in Linux. I have a bash script which is getting all the information about Linux processes from /PROC/PID/STAT during time period of 30s. I am also ...
0
votes
0
answers
28
views
Does `top` account for all CPU usage?
Does the linux top command account for all CPU time used by the system?
I'm trying to understand bottlenecks for IPsec processing on a linux system. In a particular case in point, the system is a VM ...
0
votes
0
answers
55
views
Dynamically adjust process CPU quota
In Linux is there a way to dynamically adjust the CPU quota for a process, from outside the process, while is running?
For example, I run a process with no limit. Then, while it is running, I manually ...
0
votes
0
answers
29
views
Calculate total CPU usage
I have following specs:
CPU(s): 2
Thread(s) per core: 2
Core(s) per socket: 1
Socket(s): 1
A process is using (according in top) 50%. How much is the total usage?
Is ...
1
vote
0
answers
125
views
Taking CPU cores offline while under load makes them unable to unload?
I have an AMD Ryzen 5 5625 U CPU with 6 physical cores and 12 SMP cores. I'm running Zorin Core OS 16.2r-1.
I've been testing ways of saving more power on a laptop. Ultimately I'd like to be able to ...
0
votes
0
answers
1k
views
kcs-evdefer and kworker suddenly appeared and consumed high CPU usage
This process (kcs-evdefer/[0-3] and kworker) suddenly appeared and consumed high CPU
What services is that? and how to manage it? Thank you
0
votes
0
answers
30
views
VirtualBox hogs CPU after host wake, fans roar
Run overnight crashes Windows, sleep overnight cranks VirtualBox %CPU on wake.
Either way I must reboot every morning instead of once or twice a year.
Windows 11 Home 22H2 Virtual Box 7.0.4-r154605 ...
0
votes
1
answer
111
views
How is nice/renice supposed to work? Am I misunderstanding?
I run two extremely CPU-heavy (but not memory or I/O heavy) task on my Macbook Pro with 12 cores. This made the computer unusable for other tasks. I therefore reniced these processes to 20 and set ...
0
votes
1
answer
151
views
clamscan and cpulimit together runs multiple clamscan processes in ubuntu 18 and 20
I have installed clamav and cpulimit. I want to clamscan all directories in /home which are not owned by root 1 by 1 with a cpu limit of 70%.
I use the below command to do that in centos and almalinux:...
0
votes
0
answers
139
views
Is it safe to kill the /usr/libexec processes?
I am running Ubuntu 22.04 and the laptop fans are not happy. I am just running 1 firefox window with YouTube in 1 tab, and a couple static pages in the others. No other applications are running. Specs ...
0
votes
0
answers
109
views
Debian server with high cpu usage
I have a map server with Geoserver on a Debian in which I have OpenJDK 8, Tomcat 9 and Elasticsearch installed but from time to time this server hangs due to excessive use of CPU.
I have reviewed the ...
0
votes
1
answer
2k
views
Difference between the %CPU usage and load average, and when should it be a concern?
I've searched multiple answers here but couldn't find an answer that is related to this scenario, but if you think you do, kindly point me to it.
I am including the numbers here for the ease of my own ...
0
votes
1
answer
40
views
Kythe code indexing processes being throttled despite normal CPU temperature
I'm running into an issue with CPU throttling that only seems to trigger under a specific workload of running the Kythe indexer. Detailed repro steps at the end of the question. I'm going to give a ...
2
votes
1
answer
244
views
A realtime priority application is consuming all of CPU
I am running PopOs 22.04 on my dell laptop [amd64, intel i3, 4GB ram]. The booting was taking so much time, so I run sudo dmesg in terminal and it shows error:
rcu: INFO: rcu_preempt detected ...
0
votes
0
answers
194
views
Different outputs in top or htop than podman stats
I have a Debian 11 server running Clickhouse Server in a Podman container. Recently I've been having problems with its system utilization hence I changed some configurations and set CPU and Memory ...
0
votes
2
answers
55
views
Is there an equivalent of procs_running for threads?
For right sizing Linux hosts, it's important to know the backlog of things that are pending. procs_running (particularly when divided by the number of cores) is a good indicator of process backlog, ...
2
votes
2
answers
398
views
How can the time command compute one millisecond from 4 ms timer ticks?
From the bash time command on different stock Ubuntu systems (both real hardware and VMs) all with CONFIG_HZ=250, I'm sometimes getting real 0m0.001s, user 0m0.001s or sys 0m0.001s as well ...
0
votes
2
answers
536
views
how to know if we need more CPU cores on our Linux server
we have the following Linux red-hat VM servers details , ( each server include application that runs under docker containers )
Linux redhat version - 7.6
number of CPU cores - 16
and we are suspect ...
0
votes
1
answer
181
views
Linux has about 50% usage on idle
I have an embedded machine running Linux Arch, and it is always on 50% usage (4 cores 800mhz) running basically nothing except for one odd thing. how can i eliminate it or reduce this idle load.
htop ...
1
vote
1
answer
705
views
How to get more details on irq process in top?
I have irq/21-xhci-hcd displayed as the process consuming 90% CPU on top. There was also a lot of CPU time spent on servicing software interrupts (si).
This is on embedded Linux.
Does this mean that ...
0
votes
3
answers
554
views
kworker hogging CPU but I don't know why
I'm working on a custom headless Linux system running debian Buster on an ARM processor.
Linux kernel 5.10.72
But recently I saw this when looking at my CPU usage:
I believe brcmf is related to the ...
0
votes
1
answer
158
views
Spawn workers to use up nearly all available CPU
Say I have a CLI app that I want to do some work (e.g. process some media files). When I run one instance of the app it takes say 20% CPU. The rest 80% is idle.
I want some sort of process manager ...
1
vote
0
answers
173
views
CPU Usage based on eBPF profiling
I am relatively new to the concept of eBPF and have, so far, been working with the BCC library. I've found the profile.py tool, alongside with FlameGraphs, to be really helpful when monitoring a ...
0
votes
1
answer
745
views
Modprobe taking 100% CPU after kernel update
I'm running Fedora 36 workstation
I did a dnf update and rebooted and now when I login modprobe takes 100% of my CPU, I couldn't investigate much further since my computer is thus unusable, opening a ...
0
votes
1
answer
388
views
perf top not working as expected
I'm completely confused about the output of perf top
I'm running a C program called sac2, which burns an entire CPU. Specifically it iterates through a 100 billion byte array adding all the bytes as ...
1
vote
1
answer
613
views
How to simulate +%100 CPU Usage for 1 process?
OS: CentOS 7.9
I want to simulate/create 1 process for test purposes, such that top reports it consuming more than %100 CPU. Something looks like below in ps output;
USER PID %CPU ...
2
votes
0
answers
1k
views
Why htop shows that total % CPU usage of processes is more than 400% on a 4 core/4 thread system?
I'm running some intensive tasks on my Linux (Manjaro) server and the CPU is at 100% of all its cores, but I saw that the percentages of CPU use per process sum to a much higher number than 400% on my ...
0
votes
0
answers
457
views
Automatically Kill high-resource utilization programs
In our company, we use a headless Linux machine as development machine. However, sometimes users use up all resources (CPU, RAM) on that machine, which influences the work of others. Hence, we want to ...
0
votes
1
answer
339
views
Linux unexpected lagging
I'm experiencing lagging on my linux laptop.
For example, sometimes, when I switch tabs by clicking in the browser, the click doesn't get registered for around 5 seconds and then the webpage itself ...
0
votes
1
answer
1k
views
Kubernetes OutOfcpu error when Requests.cpu == Limits.cpu
I'm running Kubernetes Jobs in which I set limits and requests both to the same number of CPUs. In some of these jobs I'm occasionally seeing OutOfcpu errors
When I kubectl describe pods PODNAME I see ...
0
votes
1
answer
836
views
Centos -bash process high cpu usage
I have a centos 8 OS. There is some process wth -bash command with high cpu usage that has fully usage 4 cores of 8 cores. When I kill these processes or restart the server the command automatically ...
0
votes
0
answers
940
views
High CPU utilization showing in CPU
We are running Two Node cluster using Redhat Pacemaker running on RHEL 7. Last thursday (3/2/2022) i updated kernel to latest version. And on Friday at 3:49 First node rebooted(Reason unknow) and ...
0
votes
1
answer
129
views
Print values of %CPU over time for a particular process
The top command gives information on running processes. The %CPU column gives the percentage of CPU each process is using (CPU usage).
Is there a simple way to print values of %CPU over wall clock ...
2
votes
0
answers
636
views
New computer running arch linux gets weirdly loud
I have a relatively new computer and I just installed Arch linux. From the moment I start the computer, it starts with a loud noise that is very similiar to a computer running on 100% of the CPU. From ...
2
votes
0
answers
1k
views
Command-line command to see CPU usage of Chrome tab, as shown in Chrome Task Manager
Chrome Task Manager can be opened by clicking the 3 dots in top-right of Chrome --> More Tools --> Task manager. It looks like this:
ps -eo %cpu,args | awk '$1 >= 30 {print}' tells me this ...
1
vote
1
answer
2k
views
How to get overall CPU usage (e.g. 57%) on Linux
I am wondering how you can get the system CPU usage and present it in percent using bash, for example.
Sample output:
57%
In case there is more than one core, it would be nice if an average ...
0
votes
1
answer
833
views
How to calculate CPU utilization for an application in a multicore system
On 8-core server, 0-3 are configured as isolcpus and remaining cores (4-7) are available for system and user processes to run. My application has multiple processes which will run on any one of the ...
0
votes
0
answers
3k
views
Writing data on external USB HDD is extremely slow - even for large files
I'm copying data to an external USB HDD.
The data transfer is extremely slow. Sometimes only 15kB/s.
System:
Laptop: Lenovo Thinkpad L520 (serialno sticker: 7859 - 5BG S/N LR - 9WZ84 11/09)
OS: ...
0
votes
0
answers
146
views
How can I make my game's FPS be virtually unaffected by a low priority background task?
I'm running a desktop system where I often have long-running compilation tasks in the background. I'd like to play CPU-limited games while they're running without a significant drop in FPS (the game ...
1
vote
2
answers
287
views
Frequency scaling governor scales up too many cores
I have two machines on which I run the same OS, the same kernel, the same CPU freq scaling driver, and the same CPU freq scaling governor.
One will boost all core frequencies if one process pins a ...
2
votes
0
answers
1k
views
TOP says 90% CPU Idle, but processes showing 100% usage
I am experiencing a strange issue on my Linux machine. I am using 6 CPUs, 12 Hyper threads.
Top summary tab shows 90% idle. For 12 threads, 1200% should me the max usage. For 90% idle individual ...
1
vote
0
answers
448
views
Ubuntu Lagging when GPU is full but Memory/CPU Available
My Ubuntu is lagging when the GPU shows 99%. However, there is enough memory and CPU to operate smoothly.
Please see the details below:
GPU Usage:
$ nvidia-smi
Thu Oct 14 16:27:52 2021
+-------...