Questions tagged [cpu-usage]
255 questions
78
votes
3 answers
top command on multi core processor
I am using freescale IMX6 quad processor. I want to know if the top command lists the CPU usage of all 4 cores or of a single core. I am seeing an application's CPU usage being the same with 4 cores and with a single core. I was guessing the CPU…
user3818847
- 1,131
- 2
- 8
- 7
59
votes
5 answers
Debugging high (near total) CPU/memory usage of "Web Content" application on Linux Mint
I have Linux Mint installed on 3 computers at home, and all of them are almost unusably slow whenever Firefox is open. Here is the output from top:
As you can see, "Web Content" and Firefox are collectively using up nearly all of my CPU, and more…
J. Taylor
- 2,665
- 3
- 23
- 30
33
votes
1 answer
How to limit a systemd service to "play nice" with the CPU?
I have a systemd service (a CI runner) that tends to bog the system down with very CPU intensive jobs. I caught the load average flying over 100 just now and want to put a stop to that nonsense.
Nothing else on the system is limited in any way, so…
Caleb
- 69,278
- 18
- 196
- 226
30
votes
1 answer
How to use cgroups to limit all processes except whitelist to a single CPU?
There is a guide to cgroups from Red Hat which is maybe sort of kind of helpful (but doesn't answer this question).
I know how to limit a specific process to a specific CPU, during the command to start that process, by:
First, putting the following*…
Wildcard
- 35,316
- 26
- 130
- 258
24
votes
7 answers
Why is systemd-udev pegging my CPU?
I've noticed that one of the cores on a four-core laptop is pegged, and the temp is very high. I found this in top:
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
359 root 20 0 188684 147228 1552 R 99.4 5.0…
dotancohen
- 15,494
- 26
- 80
- 116
23
votes
4 answers
Why does apt-get NOT use 100% (cpu OR disk OR net)?
Why does apt-get not use 100% of either cpu, disk, or network -- or even close to it? Even on a slow system (Raspberry Pi 2+) I'm getting at most 30% CPU load. I'm just thinking that either it's being artificially throttled, or it should max out…
KlaymenDK
- 649
- 1
- 7
- 21
12
votes
4 answers
Bash script that automatically kills processes when CPU/memory usage gets too high
I have created a script that kills processes if CPU and/or memory usage hits 80%. It creates a list of killed processes when this happens. What can I do to improve it?
while [ 1 ];
do
echo
echo checking for run-away process ...
CPU_USAGE=$(uptime…
KK Patel
- 1,845
- 5
- 22
- 26
11
votes
1 answer
Htop shows one core at 100% cpu usage, but no processes are using much cpu
This is quite related to this question, but since it does not really have any satisfactory answers I figured I could ask a new question.
This screenshot shows htop indicating one core with 100% utilization, but with no process using any large amount…
NatureShade
- 281
- 1
- 2
- 8
11
votes
1 answer
Making sense of the output from sar on AIX
I'm trying to understand some data that has been pulled from SAR. I have three main questions about this. Ultimately, I'd like to determine how many CPUs were idle at each sampling interval across a cluster of servers.
Many of the CPUs are not…
JimmyJames
- 113
- 8
11
votes
3 answers
How to find the cpu and memory usage of child processes
supervisord is running on CentOS server. If I do
ps -e -o %mem,%cpu,cmd | grep supervisord | awk '{memory+=$1;cpu+=$2} END {print memory,cpu}'
I get 0 0 just because supervisord is just an initialization daemon. It runs four child processes on my…
KennyPowers
- 235
- 1
- 2
- 8
10
votes
1 answer
Calculating CPU usage of a cgroup over a period of time
If I have a cgroup like user.slice and have CPUAccounting=true set up, I'm wondering how one would calculate the CPU Usage of that particular cgroup over a period of time (such as 1s), using either cpuacct.usage or cpuacct.stat. I know cpuacct.usage…
Dylan
- 148
- 1
- 1
- 5
10
votes
1 answer
The sum of % in the CPU column doesn't match the total CPU % row
I don't understand why the sum of % in the cpu column in top doesn't match the total CPU % row:
Text version with slightly different values:
ubuntu@server:~$ top
top - 23:20:21 up 5:18, 3 users, load average: 10.28, 10.36, 10.20
Tasks: 299…
Franck Dernoncourt
- 4,749
- 15
- 48
- 79
9
votes
4 answers
kworker thread kacpid_notify/kacpid hogging 60-70% of CPU
I'm running Linux Mint, version 19 Tara.
My battery life is really bad right now and my fan is always on because my computer is constantly at 70% CPU usage on this kworker thread. It's really starting to annoy me. I run top as soon as I boot up and…
Tica Sloth
- 93
- 1
- 3
9
votes
4 answers
setroubleshootd excessive cpu and memory usage
I have Centos 7 fresh install and I see setroubleshootd with high CPU usage. How can I fix this? What is this process doing?
stiv
- 1,451
- 5
- 22
- 32
9
votes
2 answers
How to disable one CPU
I'm trying to disable some CPUs of my server.
I've found this link: https://www.cyberciti.biz/faq/debian-rhel-centos-redhat-suse-hotplug-cpu/linux-turn-on-off-cpu-core-commands/, which offers me a method as below:
Here is what numactl --hardware…
Yves
- 3,161
- 7
- 26
- 54