Questions tagged [cpu-usage]
The cpu-usage tag has no usage guidance.
233
questions
0
votes
0
answers
14
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
38
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 ...
1
vote
1
answer
50
views
i3 status bar showing impossible(?) CPU usage
I'm using the i3 window manager on my Ubuntu box. According to /proc/cpuinfo, my machine has 20 processors. However, when I do a big parallel job (say, make -j), i3's status bar will often show a ...
0
votes
1
answer
27
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
82
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 ...
0
votes
0
answers
114
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
32
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
35
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
263
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
136
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
175
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
37
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
157
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 ...
0
votes
0
answers
299
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
310
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
173
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
527
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
61
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 ...
0
votes
2
answers
120
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
106
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
161
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
+-------...
0
votes
1
answer
1k
views
Ubuntu 20.04 high CPU usage
My Ubuntu always uses more CPU than Windows 10 pro for doing anything, but it's always dismissable as it's just a spike. Until I used these two applications.
Using OBS to display recorded video(VLC ...
1
vote
1
answer
32
views
How to check how my process' CPUs are affined?
When I log into my host, I find that my processes are affined to a subset of cores:
# taskset -cp $$
pid 2040's current affinity list: 0-15,17,19,24-39,41,43
I don't know why. This occurs for root or ...
0
votes
1
answer
102
views
Microsoft Team 100% CPU usage
Occasionally Microsoft Teams will decide to continuously utilize 100% CPU of one core and not stop unless it is killed.
Is there a better solution to this problem than to kill it and hope it won't do ...
0
votes
0
answers
56
views
High CPU usage of postgresql
I have a PostgreSQL backed complex Ruby on Rails application running on a Ubuntu Virtual Machine. I see that the Postgres processes were having very high CPU usage while running top command. ...
1
vote
1
answer
160
views
Get CPU usage for past n seconds or minutes
Is there a magic command in Linux for listing the processes active in the last past n seconds by CPU usage?
To clarify: Process A is launched and it takes 5 seconds to complete, about 5 more seconds ...
0
votes
2
answers
40
views
Noninteractively identify processes using up a lot of CPU-time
I have a weird issue: sometimes when my monitor is turned off, the fans are running loud, even when there shouldn't be much usage of the CPU on the system as far as I know.
But as soon as I move my ...
0
votes
0
answers
119
views
How to manually calculate CPU load?
The CPU utilization and CPU load are actually different. I was able to calculate the CPU utilization by taking stime + utime for my process /proc/[PID]/stat and dividing with the stime + utime of the ...
0
votes
0
answers
33
views
Program not use the same cpu core number between two OS
I have a program in C who use SDL2.
When I run my program on my Raspberry with Raspbian OS, it uses all core (I can see this with htop).
When I run the same program on the same Raspberry but with a ...
0
votes
1
answer
36
views
What is the best way to understand of the efficiency of my program other than load average?
Consider the following scenarios:
I have only one process running on the machine and from resources like top gives 100% CPU usage which is good. I'm efficiently using the CPU.
I have two processes ...
1
vote
0
answers
45
views
How do I make a Linux process believe it is using 100% of CPU while limiting it with a cgroup?
Cgroups allow artificially limiting CPU time available to a process using cpu.cfs_quota_us and cpu.cfs_period_us parameters.
This however results in a discrepancy when the program monitors its CPU ...
0
votes
0
answers
79
views
Can someone explain the usefulness of Top's %CPU_ME and %CPU_OTHRS?
I'm looking at the top output and I notice there is a column for %CPU_ME and %CPU_OTHRS. The definition on the man page is:
cpu_me - CPU time charged to me by other processes.
cpu_others - CPU time ...
0
votes
0
answers
13
views
Coincidence in CPU usage for different processes
Frequently when multiple processes are putting heavy load on the cpu, their loads (e.g. as reported by top) agree exactly. For example, say I run stress --timeout 30 --cpu 5 & top -d 1. Top shows ...
1
vote
0
answers
29
views
What is gnome-shell doing when I edit in emacs?
For work I run a gnome-shell session on a RedHat 7.8 virtual machine. I do all my work in an emacs window.
In an xterm running top, I see that gnome-shell has a burst of activity whenever I do ...
7
votes
1
answer
5k
views
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% ...
0
votes
1
answer
55
views
How should I run sysstat / sar to get a reading for 00:00:00 in same day data file
I was trying the below entries to get the sar information for every 5 minutes including the 00:00:00 (midnight) data.
0 * * * * root /usr/lib64/sa/sa1 300 6
*/5 1-22 * * * root /usr/lib64/sa/sa1 1 1
...
0
votes
0
answers
81
views
CPU utilization = 101? [duplicate]
I don't understand how can the CPU utilization of my Linux system be 101 for a process on Linux system. What does the %CPU actually indicate if it is not percentage utilization?
USER PID %CPU %...
-3
votes
1
answer
35
views
How to get the Avg. RAM and CPU usage for 3 java services which I'm running on Linux machine for load testing metrics
I'm using an AWS remote Linux machine for for Load testing.
Presently I'm using "top" command
Then I also piped few more commands in it to get java specific services
For RAM usage I'm ...
1
vote
1
answer
31
views
Linux collect CPU time per shared library file
Is there a way to -in the background- collect cumulative cpu time stats per shared library? Without modifying applications or libraries? Ideally a solution that'll (also) work on arm (Jetson / Pi).
...
1
vote
0
answers
67
views
When using atop as a systemd service it only runs and logs to file once
I am on CentOS 7 and using atop v2.6.0
If I run atop manually with the following command everything runs as expected and the log is written to every 10 seconds:
/usr/bin/atop -w /var/log/atop/...
1
vote
0
answers
31
views
Why does `less` consume so much CPU with a reasonably sized file, fast disk and plenty of memory?
There seems to be a pathological case with one of the files I'm reading with less.
The file is ~300MB in size, disk is fast (local NMVE) and the file can comfortably fit in memory, there is no ...
1
vote
0
answers
883
views
Why does Cinnamon use so much CPU while idle?
I'm running Linux Mint (20) Cinnamon, and while idle it uses much more CPU than Linux Mint Mate and other distros. An htop reveals:
It's usually not this high, but nevertheless higher than it seems ...
7
votes
1
answer
2k
views
htop CPU% at ~100% but bar graph shows every core much lower
I'm using Debian 9 to host a game server. Specifically, I'm hosting about 10 instances of the game Don't Starve Together.
The other day I noticed one of those instances (which was getting a lot of ...
2
votes
1
answer
1k
views
Firefox taking 200+% CPU Usage
What is wrong with firefox (Web content)? Is this an issue? Is there a way to reduce it?
This 'Web content' always pops-up when I start Firefox (I guess these are different tabs because I closed this ...
0
votes
1
answer
624
views
Difference between CPU usage in top and /proc/stat
I'm trying to write a little script that, among other things, calculates the cpu usage by reading /proc/stat, and I can't seem to get consistent results. I'm basically doing a
grep cpu /proc/stat
and ...
1
vote
1
answer
211
views
How to limit CPU usage while tar'ing a large file on a mounted NTFS partition?
I currently tar -cvf a 600gb folder, on the background, without compression.
I noticed that my ubuntu lags so much during this process, that it becomes practically unusable. When I top I see that
60% ...
0
votes
0
answers
54
views
Prevent any one process from hogging CPU/RAM causing lock-up?
It's happened to me a few times that something has started to consume a crazy amount of CPU or RAM, making the system unusable to me even to kill it; so my only option is a (physical) reboot.
A couple ...
0
votes
1
answer
338
views
High CPU usage and load on simple tasks
I know my dual-core AMD Athlon 64 X2 5200 is not powerful at all, but the problem is that I see how it is at (usually) 20% of usage in idle, and that's not a problem to me, maybe it just can't do much ...
0
votes
1
answer
385
views
Why process is using more than 100% of CPU
I need to know why those processes are using so many CPUs. Are there any commands or tools to check?
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND ...
1
vote
0
answers
219
views
Handling USER_HZ and the output from cpuacct.usage
I am writing a program that is supposed help run foreign code "safely". I also want to get the memory utilization and CPU compute time for the foreign code so I thought I would use cgroups.
...