Difference between revisions of "CPU"

From Linuxintro
imported>ThorstenStaerk
(Created page with "'''CPU''' ('''C'''entral '''P'''rocessing '''U'''nit)s consist of logic circuitry that interprets and executes the software instructions that drive a computer. For more infor...")
 
imported>ThorstenStaerk
 
(5 intermediate revisions by the same user not shown)
Line 2: Line 2:
  
 
= What CPUs do I have? =
 
= What CPUs do I have? =
To find out what CPUs you have at what speed, use [[hwinfo]] in a [[console]], e.g.:
+
To find out what CPUs you have at what speed, [[open a console]] and call [[hwinfo]], e.g.:
 
  $ hwinfo --cpu
 
  $ hwinfo --cpu
 
  01: None 00.0: 10103 CPU
 
  01: None 00.0: 10103 CPU
Line 14: Line 14:
 
   '''Clock: 1600 MHz'''
 
   '''Clock: 1600 MHz'''
 
   BogoMips: 4791.54
 
   BogoMips: 4791.54
   [[Cache]]: 4096 kb
+
   Cache: 4096 kb
 
   '''Units/Processor: 4'''
 
   '''Units/Processor: 4'''
 
   Config Status: cfg=new, avail=yes, need=no, active=unknown
 
   Config Status: cfg=new, avail=yes, need=no, active=unknown
Line 31: Line 31:
 
'''load average''' is a measure to tell how busy the [[CPU]] is. load average shows the average number of [[process]]es waiting for [http://en.wikipedia.org/wiki/Execution execution]. Usually there are three numbers presented where the first show average last minute, second average for last five minutes and the third show average load for the last fifteen minutes.
 
'''load average''' is a measure to tell how busy the [[CPU]] is. load average shows the average number of [[process]]es waiting for [http://en.wikipedia.org/wiki/Execution execution]. Usually there are three numbers presented where the first show average last minute, second average for last five minutes and the third show average load for the last fifteen minutes.
  
Show your computer's [[load average]] with the [[command]]s [[uptime]] or [[top]].
+
Show your computer's [http://en.wikipedia.org/wiki/Load_average load average] with the [[command]]s uptime or [[top]].
  
 
= See also =
 
= See also =
 +
* [[hardware]]
 
* [[top]] - what does your CPU do  
 
* [[top]] - what does your CPU do  
 
* [[diagnostics]] - what is your hardware and what does it do
 
* [[diagnostics]] - what is your hardware and what does it do
  
 
[[Category:Hardware]]
 
[[Category:Hardware]]

Latest revision as of 14:21, 20 April 2014

CPU (Central Processing Unit)s consist of logic circuitry that interprets and executes the software instructions that drive a computer. For more information, see http://en.wikipedia.org/wiki/Cpu

What CPUs do I have?

To find out what CPUs you have at what speed, open a console and call hwinfo, e.g.:

$ hwinfo --cpu
01: None 00.0: 10103 CPU
  [Created at cpu.301]
  Unique ID: rdCR.j8NaKXDZtZ6
  Hardware Class: cpu
  Arch: X86-64
  Vendor: "GenuineIntel"
  Model: 6.15.11 "Intel(R) Core(TM)2 Quad CPU    Q6600  @ 2.40GHz"
  Features: fpu,vme,de,pse,tsc,msr,pae,mce,cx8,apic,sep,mtrr,pge,mca,cmov,pat,pse36,clflush,dts,acpi,mmx,fxsr,sse,sse2,ss,ht,tm,pbe,syscall,nx,lm,constant_tsc,arch_perfmon,pebs,bts,rep_good,pni,monitor,ds_cpl,vmx,est,tm2,ssse3,cx16,xtpr,lahf_lm
  Clock: 1600 MHz
  BogoMips: 4791.54
  Cache: 4096 kb
  Units/Processor: 4
  Config Status: cfg=new, avail=yes, need=no, active=unknown

The block in this example is repeated 4 times because there this is a quad-core processor (Units/Processor: 4). The "clock" value is different because this is a 2.40GHz processor, running at 1600 MHz.

To reduce complexity:

$ hwinfo --cpu --short
cpu:
                       Intel(R) Core(TM)2 Quad CPU    Q6600  @ 2.40GHz, 1600MHz
                       Intel(R) Core(TM)2 Quad CPU    Q6600  @ 2.40GHz, 1600MHz
                       Intel(R) Core(TM)2 Quad CPU    Q6600  @ 2.40GHz, 1600MHz
                       Intel(R) Core(TM)2 Quad CPU    Q6600  @ 2.40GHz, 1600MHz

tells me I have a quad-core processor and 4 processor cores, so one processor with 4 cores, 2.4GHz ones running at 1600MHz.

Load average

load average is a measure to tell how busy the CPU is. load average shows the average number of processes waiting for execution. Usually there are three numbers presented where the first show average last minute, second average for last five minutes and the third show average load for the last fifteen minutes.

Show your computer's load average with the commands uptime or top.

See also