Questions tagged [cpu-usage]

The tag has no usage guidance.

1
vote
1answer
20 views

High CPU Usage from systemd-udevd

I have a dell studio 1569 and just installed linux onto it. I noticed that the cpu has been running high due to systemd-udevd. Going though different posts on the web including this one, I used "...
2
votes
0answers
38 views

What is the relation between IO wait utilisation and load average

Load average uses processes that are running or runnable or in uninterrupted sleep state. So do the processes in uninterrupted sleep state correspond with the %wa as per the top command? Both are ...
0
votes
1answer
20 views

Information on values in /proc/pid/task/tid/sched

can someone help me out with the meanings of the following terms in the output of /proc/pid/task/tid/sched? avg_per_cpu se.avg.util.sum se.avg.load.sum ravg.demand Do any of these values point to ...
2
votes
1answer
58 views

Why would a process limited to a portion of one cpu run slower when the Cpu is partially idle?

A task must receive the same resource allocation, and no more, regardless of whether the rest of the system is idle. The aim is to achieve a predictable time to complete the task irrespective of other ...
0
votes
0answers
30 views

Embedded Linux device with high CPU Load Averages

I'm tinkering with an Embedded Linux device that is utilizing an ARM6 CPU (single core) that seems to be experiencing high CPU Load averages. This is what I am seeing after 10 minutes of being ...
2
votes
1answer
29 views

How to assign one process on two CPUs

I have an Ubuntu server, which has 16 CPUs. (nproc --all show me 16) I wrote a bash script named test.sh as below: #!/bin/bash while : do echo xxx done I executed it: ./test.sh >/dev/null &...
0
votes
0answers
11 views

How to get CPU and memory usage in C? (in Linux System) [migrated]

I wrote a C program is about vigenere encrypt and decode. And then, I want to add CPU and Memory usage in this program. However, I don't know what to add CPU and Memory code in this program. ※I ...
1
vote
0answers
32 views

Which reasons may cause low MHz of CPU

My system is Ubuntu 16.04.3. I installed it just now and executed some processes on it. I found that many processes used more than 100% CPUs. However, when I executed lscpu | grep MHz, I got the ...
1
vote
1answer
26 views

How to get CPU usage in MySQL per user? [closed]

I want to know is there anyway to get CPU usage per user in MySQL? for example I have 3 different users 'user1', 'user2' and 'user3'. I want to get the average/real time memory usage and CPU usage of ...
0
votes
0answers
17 views

Ignore child cpu when reaping (don't add to /proc/[pid]/stat cutime)

I have a program that runs 24/7 and collects resource information on a system. One of the requirements is to cause as little impact to the system as possible, so there are cpu checks to kill it if it ...
0
votes
0answers
81 views

Who is causing extremely high CPU usage when writing to SSD?

When writing to SSD (regardless if over file system or directly into /dev/sda) I observe extremely high CPU usage, with top showing CPU: 0% usr 53% sys 0% nic 9% idle 27% io 0% irq 9% ...
3
votes
2answers
83 views

differences between `top` and `system-monitor`

I noticed a difference in CPU percentage between two utility: top and gnome-sytem-monitor (but the same happens with htop...) The screenshot shows the issue. You can see as first item both is the ...
1
vote
3answers
303 views

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?
1
vote
0answers
28 views

How to get CPU “load” of subset of CPU cores?

In my environment, each job is assigned (cpuset) to a subset of CPU cores, almost exclusively. (Actually, it's done by Slurm.) Since the CPU core occupation is exclusive, can I get/calculate the 1-...
1
vote
0answers
189 views

multi-core CPU usage

I am using the Windows Subsystem for Linux (WSL). Recently, I've been wanting to get better insight in the CPU usage of processes, but I am getting well confused. I am on a computer with 2 cores and ...
1
vote
2answers
91 views

How can I get CPU overall usage and individual core usage information just once?

Is there a command which can show CPU usage information (both for overall cpu and for individual cores), in a static way (i.e. just once) similar to how free shows memory usage information? When we ...
1
vote
1answer
40 views

running a program in parallel with multiple threads

Say I want to run a parallelize a program to process a bunch of files, and this program accepts a -t option to increase the number of threads used. The machine I am using has the following specs from ...
2
votes
1answer
750 views

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. ...
2
votes
0answers
143 views

Restart a process if cpu usage is more than 90% for more than a 60sec

Normally one of my systemd services will take about 0...5% cpu Usage. In some cases it can reach up to 100% but only for some seconds. If the Service "crashes" it takes up to 100% continuously. So I ...
0
votes
0answers
7 views

Resources used in sync operation

When we are performing sync operation to transfer buffer cache to disk. What kind of resources will be used the most from CPU, memory or disk? and how?
0
votes
1answer
25 views

OSX get user, system CPU usage per process

I am familiar with pidstat command that gives separate user and system CPU per process on Linux. What is the equivalent on OSX? Top gives these values but only on machine level. Load Avg: 3.26, 3.02,...
0
votes
1answer
46 views

What option argument can I give to `cpulimit -l` when I want a process to have unlimit cpu usage?

In cpulimit -l, --limit=N percentage of CPU allowed from 1 up. Usually 1 - 100, but can be higher on multi-core CPUs. (mandatory) What option argument can I give to -l when I want a process ...
0
votes
1answer
193 views

htop - why does cpu% much higher than cpu core %?

So I have htop running on my RHEL 7.5 64-bit and noticed something I've not seen before. I have 4-core and it shows that the % used fluctuates but never over 95% for each one. However, when I look ...
1
vote
0answers
62 views

Best way to get precise measure max memory usage and cpu time [duplicate]

I need to test huge amount of applications that will run mostly about 100ms to 1s(pretty fast). I need to measure max memory usage and cpu time on each of them. because they fast I can't just check ...
1
vote
1answer
74 views

Transformation of output of CPU usage

How to convert output of this command ps aux | awk 'NR>1{tot[$3]++;} END{for(id in tot)printf "%s %s\n",id,tot[id]}' into pie chart. I have tried to make changes in the following pie script using ...
2
votes
0answers
48 views

Nested Virtualization [closed]

I want to deploy openstack with nested virtualization enabled. Here is the scenario, on physical machine (Ubuntu 16.04) I have 2 VMs running, 1. kvm01 and, 2. cmp001 Kvm01: has 7 VMs up and running ...
4
votes
2answers
552 views

If R (runqueue) is greater than B (waitqueue) in vmstat, is it I/O bound?

If the runqueue is the number of processes waiting for their turn on the CPU + processes currently running, and waitqueue is the number of processes waiting for I/O, then wouldn’t B in the vmstat ...
1
vote
1answer
40 views

What does the CPU consumption in top mean when a CPU is assigned to a single process?

Being on Linux I have "CPUAffinity= 0 1 3" set in system.conf. I also use "taskset -cp 2 $pid" to assign a CPU to a single process. But what does the CPU consumption for the process in top now mean? ...
0
votes
1answer
146 views

Short periodic freezes every few seconds. Everything except the mouse

My computer freezes every 1 or 2 seconds for a short period as well. So 1 or 2 seconds working and 1 or 2 seconds not working. Everything stops working except for the mouse. The first time I ...
4
votes
1answer
347 views

Why does tar have a low CPU usage but high system load?

I'm using tar to backup my server once every day. Even though CPU usage (of the tar command and the system overall) doesn't go over 10%, my system load is like 3.98 3.71 3.82 when the script is ...
1
vote
0answers
527 views

Intel Pstate frequency limits are overridden

Problem : Run all core on minimum CPU frequency on Intel pstate driver on ubuntu 14. cpupower frequency-set --governor performance --max 1300MHz I am trying to run my cpu cores on different ...
5
votes
3answers
952 views

What's “broken” about cpuset cgroup inheritance semantics in the Linux kernel?

To quote the 2013 systemd announcement of the new control group interface (with emphasis added): Note that the number of cgroup attributes currently exposed as unit properties is limited. This will ...
2
votes
0answers
2k views

How to find the cause of High Load Average on Linux

I trying to find the reason why my server is getting as high as 150 in load average, and some time it get up to 200. This is a Ubuntu Server running on a VMware ESXi virtual machine, with 8 CPU and ...
0
votes
1answer
99 views

gnome-session running 100% CPU; .xsession-error growing without bound

I'm having a strange problem on our Linux research computer. My collaborator logs in remotely using TeamViewer to run Mathematica. We are running RHEL6, TeamViewer 12, and Mathematica 11. We have ...
1
vote
0answers
31 views

Reconciling %CPU with load average in top

We have a long-running process, which utilizes OpenMP to saturate all available CPUs with computations done in multiple threads (one for each core). I'm looking at top(1) on a server, where the ...
1
vote
1answer
2k views

CPU reservation and affinity using taskset and isolcpus kernel parameter with JVM?

We need for the JVM to reserve a set number of CPUs. Following my research we can use taskset along with the kernel parameter isolcpus=<CPU_ID> so that no other process uses this CPU. A few ...
0
votes
1answer
48 views

Cloud Shell idle cpu usage seems relatively high (3-6%) - where is this usage coming from?

top - 12:10:09 up 2:18, 6 users, load average: 0.03, 0.03, 0.00 Tasks: 35 total, 1 running, 34 sleeping, 0 stopped, 0 zombie %Cpu(s): 2.1 us, 1.4 sy, 0.0 ni, 96.5 id, 0.0 wa, 0.0 hi, ...
1
vote
1answer
484 views

Fullscreen mode in apps causes gnome-shell to hit 80-100% CPU, even after closing app

On Gnome 9.5, if I use VScode's "Zen Mode" (ctrl-k + z) or fullscreen mode (f11), gnome-shell CPU usage (viewed through top) skyrockets from 0-10% usage to 80-100%. This happens even if I quickly ...
2
votes
1answer
325 views

Htop sorting CPU% column incorrectly

Sometimes when I'm trying to diagnose what process is hogging all of my laptop's resources, I notice that htop will sort the CPU% column incorrectly. Example below: The “CPU%” column is highlighted ...
1
vote
2answers
46 views

Identify and remove noisy software [closed]

When I open up my session, my laptop speakers start whining. This does not happen when I use the guest user session. The noise stops when there is CPU activity (for eg. moving mouse, starting program,...
0
votes
1answer
2k views

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 ...
1
vote
0answers
109 views

Vnstat and sadc eating 100% CPU

I am using Linux Mint 18 with xfce4. It happens sometimes that vnstat and sadc eat 100% CPU and nothing works, I have to shutdown the system forcefully.And also if I open terminal and execute kill ...
3
votes
2answers
3k views

Process accounts-daemon taking 100% of CPU

I have several servers running Ubuntu 16.04 that suddenly have accounts-daemon process utilizing 100% of their CPU. The first time it occurred 3 weeks ago, I moved /var/log/wtmp and re-created it, ...
0
votes
1answer
163 views

Why does top's CPU breakdown (option 1) in default non-irix mode show conflicting results?

I'm running some benchmarks on various forks of bitcoind and I noticed some conflicting values when running top. In the screenshot below, there is an even spread of ~30% cpu utilization across each ...
0
votes
1answer
355 views

Is it possible to calculate CPU utilization from load average & top CPU% column

I have a file which contains 2 output of uptime load average & CPU% column like an output from top command. So, is it possible to calculate it into CPU utilization or CPU usage at a time? ...
2
votes
1answer
2k views

Is my server hacked?

I just noticed a high CPU usage on my server in the last few days and checked the processes. It appears that these 2 process below is consuming my CPU usage: 30741 www-data 20 0 89556 10264 ...
2
votes
1answer
338 views

Is my cgroup overloaded?

Suppose I limited the cores a set of processes is permitted to use with cgroup/cpuset option. I need to know if I have too many threads allocated to that cgroup, if the threads are experiencing ...
1
vote
2answers
2k views

systemd-udevd high cpu usage

Few days ago I installed Antergos on my old Dell laptop with Broadcom BCM2046 Bluetooth. Since then I'm having issues with bluetooth. First, no adapters were found. This was somehow solved (I'm not ...
2
votes
1answer
866 views

xorg high CPU usage on Linux mint Cinnamon i7-7700k + Nvidia GT730 4gb

I have been searching for 2 days now and have not been able to solve this issue. I have built a new system with the following specs: CPU: i7-7700k @ 4.2ghz Mobo: MSI B250m-Pro-VHD RAM: 16GB DDR4 @ ...
3
votes
0answers
997 views

Very High CPU Usage By IRQ #16

I recently noticed that one of my CPUs was idling at around 85-90% and according to top the usage was coming from interrupts, so just like in this question I used a combination of dmesg and ...