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)

5
votes
1answer
71 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 [on hold]

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 ...
51
votes
3answers
25k 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 ...
46
votes
1answer
53k 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
92 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
0answers
35 views

Python code start to be to slow [on hold]

I execute some python file in bash: directory: python file.py with the top command I get next line back: PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 16164 user 20 ...
0
votes
1answer
37 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
11 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 ...
2
votes
2answers
421 views

Measuring CPU and Memory per user to distribute “cost” of a server

How should I implement approximately correct per-user monitoring on a server? I want a way to split the cost of a server between the users based on their usage. On newer machines (RHEL6) I would use ...
0
votes
1answer
518 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 ...
5
votes
1answer
340 views

Loading speedstep_centrino kernel module

Because of a noisy fan in my laptop, I need to change CPU frequency and for this task I need to load the appropriate kernel module. The CPU in my laptop Acer TravelMate 4002WLMi is: $ cat ...
0
votes
1answer
274 views

Samba daemon hammering CPU on CentOS 5.6 VM on bootup

I have a problem where my Centos 5.6 VM is running very slow on my Win7 machine, and looking at top I can see that the Samba daemon smbd is sitting at the top of the list hitting the CPU big time, ...
-2
votes
0answers
17 views

Linux (Xubuntu) ram and cpu usage [duplicate]

I'd like to know if Linux is able to see and use all available ram and cpu. The reason why i ask is because in my Macbook for example i can not add more ram because it can read and use just 2GB, it is ...
2
votes
1answer
755 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 ...
8
votes
1answer
175 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
248 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 ...
4
votes
4answers
583 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 ...
1
vote
1answer
514 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
2answers
4k views

CPU usage monitoring in AIX servers

In order to monitor the CPU usage in an AIX server I'm using the following script that is executed every 10 mins. lparstat 2 10 > cpu usage=$(tail -10 cpu | awk 'BEGIN {sum=0;} {sum+=$4} END{print ...
0
votes
0answers
26 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.
3
votes
1answer
355 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
0answers
39 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 ...
2
votes
1answer
45 views

where is PCB on linux

PCB is process control black , this is its definitions on Wikipedia Process Control Block (PCB, also called Task Controlling Block,[1] Task Struct, or Switchframe) is a data structure in the ...
3
votes
3answers
2k 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
55 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
37 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
38 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
46 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
96 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
70 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. ...
4
votes
1answer
74 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 ...
1
vote
0answers
90 views

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

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 ...
1
vote
1answer
69 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 ~]$ ...
2
votes
4answers
211 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
104 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 ...
10
votes
1answer
7k views

What are software and hardware interrupts, and how are they processed?

I am not sure if I understand the concept of hardware and software interrupts. If I understand correctly, the purpose of a hardware interrupt is to get some attention of the CPU, part of implementing ...
0
votes
0answers
36 views

Disable CPU scaling with U 1404

I know there are a lot of things about this topic but I couldn't find anything not older than 4 years. As the stuff develops so fast I hope it is fine to ask again a few years later. What is ...
3
votes
0answers
41 views

Figuring out physical cache layout in FreeBSD

I'm trying to figure out they physical cache layout of my CPU in FreeBSD 10. I see the following from sysctl kern.sched.topology_spec kern.sched.topology_spec: <groups> <group level="1" ...
0
votes
2answers
4k views

Top “id” is using 50-99% of CPU

My i386 Lubuntu install is running with a constantly 100% CPU. Using top I have diagnosed "%id" as using up a lot of CPU, usually between about 50% and 99%. Why is this happening, and how can I stop ...
0
votes
0answers
253 views

NVIDIA: could not open the device file /dev/nvidia0 (Operation not permitted)

When I try to run chrome/ium on command line it says NVIDIA: could not open the device file /dev/nvidia0` (Operation not permitted) I don't know whether its related with high CPU usage on ...
1
vote
2answers
196 views

How to check the cpu temperatures core by core?

I have a Phenom X3-8450e which has a total of 3 cores. But when i ran "sensors" on a terminal this is what i get. user@PC ~ $ sensors atk0110-acpi-0 Adapter: ACPI interface ...
6
votes
3answers
742 views

How 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. ...
3
votes
2answers
161 views

Understanding %CPU while running top command [duplicate]

I am trying to understand what does %CPU means when I run top. I am seeing %CPU for my application as 400 or 500 most of the times. Does anyone knows what does this mean? What number is a high ...
1
vote
3answers
3k views

kswapd0 takes 99% to 100% CPU in RHEL 6.3

I have 5 systems on which I have just installed RHEL6. System configuration is CPU-i7 HDD-500 GB RAM-2 GB Swap- 4 GB I have installed the same software's and all the configuration as per ...
1
vote
2answers
48 views

What does % utilization mean in htop if only 1 process can execute at a time?

I see that the htop command reports respective the % of utilisation of each CPU core and also that of the processes. We know that only 1 process can execute at a time in the CPU. How is it possible ...
1
vote
3answers
155 views

detect process eating cpu without: top, htop, ps?

I went thru a problem where I could only guess what process was eating the cpu. My cpu usage was about 80% for all cores at psensor. I tried htop, top and ps -A -o pcpu,pid,cmd --sort +pcpu (the ...
3
votes
2answers
57 views

CPU percentage of a single process

How do I get the average CPU percentage (for every second) consumed by a single process since it starts until it ends (exists)? Could I make this with Top?
3
votes
1answer
95 views

What's the correct value to base the maximum number of CPU's to sched_setaffinity to?

I have some confusion as to what's the correct value to use for the number of CPU's I can use to make a CPU_SET for a sched_setaffinity call on my system. My /proc/cpuinfo file: processor : 0 ...
4
votes
3answers
2k views

How come I installed Ubuntu 64 bit on a Pentium 4 machine?

I have just tried booting the Ubuntu 10.10 64 bit live USB on this machine and to my amazement everything works fine. I even installed the system, after which I checked with uname -a and the result is ...
4
votes
1answer
64 views

Find out if CPU supports dynamic speed setting

I need to find out in my script if a (potentially legacy) CPU supports dynamic speed setting, and eventually get value of maximum and current speed. What makes it more complicated is that I need to ...