I have a quad core CPU running Centos5. When I use top, I see that running processes use 245% instead of 100%. If I use gkrellm, I just see one core being used 100%. top: PID USER PR NI VIRT RES SWAP SHR S %CPU %MEM TIME+ COMMAND 18037 thba 31 15 304m 242m 62m 44m R 245.3 4.1 148:58.72 ic Also in the log of some programs I see this strange factor: CPU Seconds = 2632 Wall Clock Seconds = 1090 There are all single threaded programs, so it's not that more cores are being used. [thba at fazant]$ uname -a Linux fazant 2.6.18-128.1.6.el5 #1 SMP Wed Apr 1 09:10:25 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux [thba at fazant]$ cat /proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 26 model name : Intel(R) Core(TM) i7 CPU 940 @ 2.93GHz stepping : 4 cpu MHz : 1600.000 cache size : 8192 KB physical id : 0 siblings : 4 core id : 0 cpu cores : 4 apicid : 0 fpu : yes fpu_exception : yes cpuid level : 11 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpimmx fxsr sse sse2 ss ht tm syscall nx rdtscp lm constant_tsc ida nonstop_tsc pni monitor ds_cpl vmx est tm2 cx16 xtpr popcnt lahf_lm bogomips : 5871.54 clflush size : 64 cache_alignment : 64 address sizes : 36 bits physical, 48 bits virtual power management: [8] Any ideas? Thanks, Theo
On Thu, Jun 4, 2009 at 1:37 PM, Theo Band <theo.band at greenpeak.com> wrote:> I have a quad core CPU running Centos5. > > When I use top, I see that running processes use 245% instead of 100%. > If I use gkrellm, I just see one core being used 100%.Theo, by any chance are you using cumulative mode on top? -- Hakan (m1fcj) - http://www.hititgunesi.org
On Thu, Jun 4, 2009 at 1:37 PM, Theo Band <theo.band at greenpeak.com> wrote:> I have a quad core CPU running Centos5. > > When I use top, I see that running processes use 245% instead of 100%. > If I use gkrellm, I just see one core being used 100%.Press 1 in top to see the per CPU info> > top: > ? PID USER ? ? ?PR ?NI ?VIRT ?RES SWAP ?SHR S %CPU %MEM ? ?TIME+ ?COMMAND > 18037 thba ? ? ?31 ?15 ?304m 242m ?62m ?44m R 245.3 ?4.1 148:58.72 ic > > Also in the log of some programs I see this strange factor: > ?CPU Seconds = 2632 ? Wall Clock Seconds = 1090 > > There are all single threaded programs, so it's not that more cores are > being used. > > [thba at fazant]$ uname -a > Linux fazant 2.6.18-128.1.6.el5 #1 SMP Wed Apr 1 09:10:25 EDT 2009 > x86_64 x86_64 x86_64 GNU/Linux > > > [thba at fazant]$ cat /proc/cpuinfo > processor ? ? ? : 0 > vendor_id ? ? ? : GenuineIntel > cpu family ? ? ?: 6 > model ? ? ? ? ? : 26 > model name ? ? ?: Intel(R) Core(TM) i7 CPU ? ? ? ? 940 ?@ 2.93GHz > stepping ? ? ? ?: 4 > cpu MHz ? ? ? ? : 1600.000 > cache size ? ? ?: 8192 KB > physical id ? ? : 0 > siblings ? ? ? ?: 4 > core id ? ? ? ? : 0 > cpu cores ? ? ? : 4 > apicid ? ? ? ? ?: 0 > fpu ? ? ? ? ? ? : yes > fpu_exception ? : yes > cpuid level ? ? : 11 > wp ? ? ? ? ? ? ?: yes > flags ? ? ? ? ? : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge > mca cmov pat pse36 clflush dts acpimmx fxsr sse sse2 ss ht tm syscall nx > rdtscp lm constant_tsc ida nonstop_tsc pni monitor ds_cpl vmx est tm2 > cx16 xtpr popcnt lahf_lm > bogomips ? ? ? ?: 5871.54 > clflush size ? ?: 64 > cache_alignment : 64 > address sizes ? : 36 bits physical, 48 bits virtual > power management: [8] > > Any ideas? > > Thanks, > Theo > > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos >
on 6-4-2009 5:37 AM Theo Band spake the following:> I have a quad core CPU running Centos5. > > When I use top, I see that running processes use 245% instead of 100%. > If I use gkrellm, I just see one core being used 100%. >This one is easy. 4 cpu's, 100% total each, a maximum of 400%. Since one core is at 100%, the other 145% is spread across the other 3 cores. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 258 bytes Desc: OpenPGP digital signature URL: <http://lists.centos.org/pipermail/centos/attachments/20090604/39dbc5ef/attachment-0001.sig>
Scott Silva wrote:> on 6-4-2009 5:37 AM Theo Band spake the following: >> I have a quad core CPU running Centos5. >> >> When I use top, I see that running processes use 245% instead of 100%. >> If I use gkrellm, I just see one core being used 100%. >> > This one is easy. 4 cpu's, 100% total each, a maximum of 400%. > > Since one core is at 100%, the other 145% is spread across the other 3 cores.Is there any reasonable way to figure out the available CPU capacity from an SNMP monitoring tool? (You want to know if the reported >100% usage is a problem but you don't know anything else about the machine). -- Les Mikesell lesmikesell at gmail.com
Hi, On Thu, Jun 4, 2009 at 08:37, Theo Band <theo.band at greenpeak.com> wrote:> When I use top, I see that running processes use 245% instead of 100%. > If I use gkrellm, I just see one core being used 100%. > There are all single threaded programs, so it's not that more cores are > being used.Are you sure? You can type "H" in top to show separate threads, that way it would show up if you have more than one thread running in one of those programs. HTH, Filipe
Scott Silva wrote:> on 6-4-2009 5:37 AM Theo Band spake the following: > >> I have a quad core CPU running Centos5. >> >> When I use top, I see that running processes use 245% instead of 100%. >> If I use gkrellm, I just see one core being used 100%. >> >> > This one is easy. 4 cpu's, 100% total each, a maximum of 400%. > > Since one core is at 100%, the other 145% is spread across the other 3 cores. >Not quite. If I run 4 processes (4 times cpuburn-in) I see this: Cpu(s): 50.2%us, 0.9%sy, 48.9%ni, 0.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st 14696 thba 25 0 2064 984 1080 308 R 244.9 0.0 0:40.57 cpuburn-in 14695 thba 25 0 2064 984 1080 308 R 243.2 0.0 0:43.21 cpuburn-in 14698 thba 25 0 2064 984 1080 308 R 242.9 0.0 0:34.47 cpuburn-in 14697 thba 25 0 2068 988 1080 308 R 162.0 0.0 0:25.86 cpuburn-in 14402 made 31 15 117m 24m 93m 11m R 40.9 0.4 1:11.56 eldo_64.exe 13746 kedo 39 15 696m 611m 85m 23m R 40.3 10.3 34:29.50 common_shell_ex So in total 100% (first line) and counting the process % (244.9+243.2+242.9+162.0+40.9+40.3=974%). One of the cores runs three processes also totaling up to (162+40.9+40.3)=243% To me it looks like all values are just multiplied by 2.43 (400%x2.43=972%) I did disable hyperthreading in the bios. The machine would otherwise show up with 8 CPU. Hyperthreading does benefit my application. Theo
Apparently Analagous Threads
- My current directory is lost in a bash shell
- autofs update brakes nested automount
- backup question
- How to set fromuser in sip.conf so each user gets it's own callerid?
- DO NOT REPLY [Bug 6746] New: file from link-dest-source is copies and not linked for identical files