Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [cpu-usage]

The tag has no usage guidance.

0
votes
0answers
7 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
9 views

How do I measure context switch percentage? [on hold]

I'm working on a project using Graphite where I have to show if CPU is having high context switch or not. Using Graphite I'm fetching context switch data for a given server in below format. ...
0
votes
0answers
28 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
71 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
115 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
24 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
92 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
59 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
29 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
346 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. ...
1
vote
0answers
94 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
24 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
44 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
114 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
56 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
71 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
41 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
382 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
34 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
106 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
268 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 ...
0
votes
0answers
455 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 ...
6
votes
3answers
738 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
81 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
28 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
1k 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
38 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
450 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
289 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
45 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
1k 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
89 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 ...
1
vote
2answers
2k 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
149 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
333 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
297 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
806 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
864 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 ...
0
votes
1answer
557 views

Prevent a process to use to much CPU even if more CPU is available

I would like to avoid that a process uses to much CPU (in fact, I want to prevent my CPU from heating up, since I have some really long CPU demanding tasks (video converting) to run from a Raspberry ...
1
vote
1answer
914 views

Is it possible to use GPU hardware acceleration using Nvidia GPU?

I wonder if it is possible to somehow run gpu acceleration in Linux Mint. My CPU is used over 50% while scrolling sites or watching YT or FHD video with VLC. When I'm watching YT on one monitor and ...
1
vote
1answer
2k views

Tomcat8's “Silence” process using 100% CPU. What is this process?

After hitting some performance issues with one of our servers, I observed a Tomcat8 process called "Silence" using 100% continuously. I tried to find information about it on Google, but searching for ...
1
vote
1answer
2k views

How to get the number of processes waiting for CPU on Linux?

If CPU is running 100% usage, other processes should be put inside a run queue. Which command can I use to get the size of the run-queue? vmstat seems to return a related value of the CPU like below: ...
0
votes
1answer
131 views

How do different top's CPU modes correspond to each other?

I'm running some matrix multiplications with NumPy and Python's 3 Pool multiprocessing on a server with 4 Intel Xeon E5-4620, totalling 64 cores. top in Solaris mode shows (the): top - 16:00:55 up 7 ...
3
votes
0answers
277 views

How to mesure the latency of thread switching

I'm learning how to test the performance of a unix-like system. I've found a tool to measure the context switching time: http://www.bitmover.com/lmbench/lat_ctx.8.html Now I want to know if it is ...
6
votes
2answers
3k views

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

How to limit CPU usage for some specific processes

Saying that I have a program, which will fork three sub-processes, meaning that it will create four processes in total while running. My ubuntu server has 16 CPUs. Is it possible to assign the CPU ...