The CPU (Central Processing Unit), is the chip in the computer that actually performs the operations and calculations that are done as a program runs. It is essentially what executes a program.

learn more… | top users | synonyms (1)

1
vote
0answers
34 views

What does the “k” metric mean in the “sa” output?

From man sa: k cpu-time averaged core usage, in 1k units My questions: How is it calculated? What is the significance?
5
votes
1answer
29 views

High %sy in top output, how to debug?

We have 2 identically configured servers and one of them is showing a high %sy while the other does not. This would seem to indicate that the system is busy doing something. Cpu(s): 28.1%us, ...
0
votes
0answers
10 views

Get CPU time for Benchmark in Bash Script

I'm using this Method here: http://giantdorks.org/alain/how-to-benchmark-individual-shell-script-sections-to-identify-slow-parts/ to Benchmark my Bashscript: RuntimePrint() { duration=$(echo ...
7
votes
3answers
822 views

How to enable safeguards for CPU temperature

My desktop has a nasty habit. When I have several high intensity applications running and my CPU is at maximum usage for a period of time, the core temperature rises and my computer auto-shuts off. ...
2
votes
1answer
931 views

/proc/cpuinfo showing zero cpu clock speed

I saw an interesting issue where the cpuinfo file from /proc filesystem shows the cpu clock speed as zero. It is a physical host with no virtualization. Can someone explain to me some probable reasons ...
2
votes
1answer
141 views

Why PowerVM LPAR CPU utilization is negative

For a specific case I compute an PowerVM LPAR CPU utilization to be a large number less than zero. I am fetching the lpar sample event using: lslparutil -r lpar -m P750 --filter "lpar_names=i5lp5" ...
8
votes
1answer
77 views

Does QEMU/KVM use Intel AES instructions for encrypted qcow2 images if the host CPU has them?

The qcow2 image file format for KVM can use AES encryption. The encryption is applied at the cluster level: Each sector within each cluster is independently encrypted using AES Cipher Block ...
0
votes
0answers
60 views

System CPU Time and User CPU Time Calculation for a Process in Linux

I want to calculate CPU time consumption of a particular process in system mode and user mode using statistics present in /proc/<PID>. There are two fields utime and stime in ...
3
votes
1answer
388 views

cpufreqd does not control temperature plus shows no output

Since my laptop (an Acer Aspire 5750G running a Gentoo Linux with a not-quite-up-to-date kernel 2.6.39-r3 (a weird wLan hardware makes the update difficult)) tends to run rather hot I am trying to ...
1
vote
1answer
48 views

Does it take time for process to utilize CPU?

I have a single-core x86 machine where I execute the burnP6(from cpuburn package) for 1 second and then kill the program: while true; do /usr/bin/burnP6 & sleep 1; pkill burnP6; sleep 1; done ...
2
votes
1answer
242 views

Where is PCB on linux

A PCB is a process control block , this is its definition on Wikipedia Process Control Block (PCB, also called Task Controlling Block,[1] Task Struct, or Switchframe) is a data structure in ...
1
vote
1answer
841 views

Intel Turbo Boost apparently activated for no reason?

The other day, I reinstalled my operating system (Crunchbang, fork of Debian). For some reason my fan has been running at full speed (and blowing colder-than-room-temperature air) even though I'm ...
0
votes
1answer
595 views

Linux Mint CPU cores balancing and high temprature

I'm using Linux Mint. My laptop has a Corei5 CPU. When I check the system monitor, it shows that the CPU 1 usage is between 90 to 100% and CPU 2,3,4 are less than 5%. why it doesn't balance processes ...
3
votes
2answers
67 views

Less resource hungry alternative for piping `cat` into gzip for huge files

I have some files of which some are very large (like several GB), which I need to concatenate to one big file and then zip it, so something like this: cat file1 file2 file3 file4 | gzip > ...
0
votes
0answers
34 views

Changing CPU frequency programmatically

I have seen that standard CPU Frequency driver(comes with default package with linux kernel) can change the CPU frequency at runtime, when being used under the supervision of "Ondemand" governor. ...
1
vote
1answer
69 views

Total CPU usage and CPU usage under processes list is different in FreeBSD top implementation?

For some reason, overall CPU usage on my FreeBSD machine fluctuates between 1% and 85%, but the CPU usage in processes column never adds up to this amount. For example here the overall CPU usage is ...
1
vote
2answers
54 views

/proc/cpuinfo shows a single core under VirtualBox

My host machine is Windows 7, running an Intel Core i5 Processor. The Task Manager shows that I have 4 boxes under the Performance tab, which I assume to be 4 cores. However on my OEL guest (on ...
0
votes
1answer
46 views

Questions about CPU usage [closed]

How bad/normal/good is this CPU usage? Cpu0 : 14.4%us, 6.3%sy, 0.0%ni, 78.8%id, 0.0%wa, 0.0%hi, 0.5%si, 0.0%st Cpu1 : 88.3%us, 8.0%sy, 0.0%ni, 0.0%id, 0.0%wa, 0.0%hi, 3.7%si, 0.0%st ...
2
votes
0answers
37 views

Unexpected processor/core counts for AMD processor

I wanted to determine if a machine has hyperthreading enabled or not. To determine this, I used advice I found online, which operates as follows: physical_proc_count = `grep "physical id" ...
1
vote
3answers
246 views

Setting running process affinity with taskset fails

I'm attempting to limit a process to a given number of CPU cores. According to the taskset man page and this documentation, the following should work: [fedora@dfarrell-opendaylight-cbench-devel ~]$ ...
1
vote
2answers
52 views

Find average CPU, vMem, sMem usage on 1, 5, and 15min

I am trying to find at time T the average CPU usage on 1, 5, and 15min, just like what you get from /proc/loadavg Same thing for virtual memory, and swap memory. I would be fine with a python ...
1
vote
0answers
75 views

Are there any alternatives to pidof? (smaller footprint)

Well, I've just found out that with extensive usage of pidof in very short intervals, the seemingly tiny tool can be a great CPU hog. (Source: top) On my older machine, it can easily reach 30 percent ...
-1
votes
1answer
87 views

How to stop CPU fan in Linux?

I use an old computer. CPU fan creates big noise. Sometimes CPU fan suddenly stops and does not work for a long time, and CPU does not get heated in these long periods, because I use very light-weight ...
1
vote
0answers
238 views

kernel log in /var/log/messages: task xxx blocked blocked for more than 120 seconds . System frozen [closed]

Monit sent out emails in the morning that my java app on the server was not responding to HTTP calls made on the 127.0.0.1 interface. App log shows nothing out of the ordinary, nginx log shows no ...
3
votes
0answers
79 views

Strange cpu usage values reported by pidstat

I have a script that reports the cpu usage of a specific program reading values from pidstat. The script launches as: pidstat -C ^frontend$ -h -l -p ALL 1 1 The values reported this way sometimes ...
1
vote
1answer
137 views

Elementary OS Gala using more than 100% CPU constantly

I am using ElementaryOS with the default Drivers and my Gala process is constantly using tons of CPU (sometimes more than 200%). I have looked everywhere but couldnt find a solution. I tried to ...
1
vote
3answers
84 views

Run linux process at very very low priority?

I have regular process that not so important but will consume so much CPU power, and I have another process which is really important, but it spend most of the time idle, but when it got a job it ...
2
votes
0answers
48 views

Help troubleshoot a very slow system performance (Kubuntu, intel graphics) [closed]

As the title says the performance of my laptop is simply terrible. i3 M380 @ 2.53GHz, 4GB RAM (of which more than 2GB is rarely used), intel HD graphics (to external monitor through HDMI). It takes ...
5
votes
1answer
99 views

Whats the history behind the fork bomb?

I read other question about its work and other things that Fork bombs operate both by consuming CPU time in the process of forking, and by saturating the operating system's process table. A basic ...
2
votes
2answers
2k views

Hyperthreading not detected by Linux [closed]

I have a Dell server with two Intel Xeon E5645 cpus, each cpu has 6 cores, and each core is hyperthreaded (i.e. should be equivalent to two virtual cores). I installed CentOS 6.2 on this server and it ...
55
votes
3answers
30k views

What do the flags in /proc/cpuinfo mean?

How can I tell whether my processor has a particular feature? (64-bit instruction set, hardware-assisted virtualization, cryptographic accelerators, etc.) I know that the file /proc/cpuinfo contains ...
52
votes
1answer
63k views

In Linux “top” command what are us, sy, ni, id, wa, hi, si and st (for CPU usage)?

When I issue $ top in linux, I get a result similar to this (see here). One of the lines has CPU usage information represented like this: Cpu(s): 87.3%us, 1.2%sy, 0.0%ni, 27.6%id, 0.0%wa, ...
0
votes
0answers
145 views

What's limiting my CPU usage in forked processes?

I am running some long-running programs (for scientific purposes) on a multi-core Linux box. The processes are controlled by a small daemon which restarts the next job when one finishes (I run 3-6 at ...
0
votes
1answer
52 views

Comparing Windows and Linux machine hardware

I have to compare Linux and Windows machine hardware? In windows system, I can open the My computer properties and see the details like processors, RAM Hard disks etc. Through task manager, I can see ...
1
vote
1answer
36 views

why is my laptop-mode configuration being ignored?

I am running Debian GNU/Linux Jessie (testing) on my laptop. I enabled the systemd laptop-mode service: $ sudo laptop_mode Laptop mode enabled, active [unchanged] and in my ...
8
votes
1answer
199 views

What does a computer actually do with its spare CPU cycles?

When a computer is not running at full load, in the context of Linux, what does it actually do? Between scheduled threads, if there is nothing to do, does it spin wait? Does it enter some sleep state? ...
2
votes
2answers
262 views

How to compare usage of memory by Window Managers?

I'd like to test a few window managers to see which of them takes less memory and CPU in certain time period (so is better choice for older computers). I'd like to make the tests myself (not to read a ...
5
votes
4answers
3k views

Limiting processes to not exceed more than 10% of CPU usage

I operate a Linux system which has a lot of users but sometimes an abuse occurs; where a user might run a single process that uses up more than 80% of the CPU/Memory. So is there a way to prevent ...
0
votes
0answers
61 views

File to access for CPU load average on AIX

Is there a file with the load average in it on AIX? I'm looking for something like Linux's /proc/loadavg.
1
vote
0answers
57 views

Disable processor speed changes on AC vs battery [closed]

My Toshiba Satellite L300 laptop freezes when I plug in the AC power cord. The problem is, whenever the processor goes in power management or downclocks, the system freezes and shows colorful ...
3
votes
3answers
3k views

/proc/cpuinfo “cache” category: L1, L2 or total?

When I look in /proc/cpuinfo, one of the lines tells me I have 6144 KB of cache. Is this L1 cache, L2 cache, or the sum of both of them? In any case, how do I find out how much L1 and L2 cache my ...
2
votes
0answers
171 views

Difference between 'sar' and 'iostat' commands

With sar and iowait, we can get CPU time utilization. But, when I executed both commands, I could see significant differences in their outputs. > iostat && sar 1 1 Linux ...
1
vote
0answers
99 views

How do you run CPU at turbo speed continuously

processor : 7 vendor_id : GenuineIntel cpu family : 6 model : 60 model name : Intel(R) Xeon(R) CPU E3-1230 v3 @ 3.30GHz stepping : 3 cpu MHz : 3299.670 ...
0
votes
0answers
133 views

CPU Frequency Scaling Monitor: No passwd, all cores at once

I use MATE 1.6.2 and CPU Frequency Scaling Monitor 1.6.2. I would like two things: Get rid of the need of the root password to change the CPU settings. To affect all cores at once. The problem is ...
1
vote
1answer
92 views

How to calculate per CPU load

Is there any C API to calculate per CPU load? /proc/loadavg gives the CPU average load for all available CPUs and /proc/stat doesn't mention anything about active processes per CPU. How can I obtain ...
6
votes
1answer
138 views

KVM reports strange CPU usage peaks (bash infinite recursion)

On a KVM machine running Fedora 20 I ran ulimit -s unlimited (this removes limit on stack size) and an experimental torturing testing script. All this script does is just infinite recursion: ...
0
votes
1answer
84 views

Lower cpu performance in Linux [closed]

I have a problem with my CPU performance in Linux. I have a laptop, Toshiba Satellite C660-101. Despite the fact that the CPU works perfectly fine in Windows 7, Linux has some serious issues. ...
5
votes
1answer
323 views

Get CPU usage for single process

I've got a problem getting a real-time CPU usage of a single process (by its PID). I'd like to setup a watchdog for the CPU usage of a process because it's suddenly reaching 100% of the CPU usage ...
2
votes
4answers
1k views

Number of processors in /proc/cpuinfo

While i was learning about cpu load i came to know that it depends on numbers of core. if i have 2 cores then load 2 will give 100% cpu utilization. So i tried to find out cores.( i already know that ...
1
vote
2answers
548 views

diabling cpu cores on quad core processor on linux

I want to disable 3 CPU cores and run my processor on a single core. I have used command:maxcpus=1. But after this I executed this command ls /sys/devices/system/cpu. It still shows ...