to keep a process on a specific CPU, look up processor affinity. Meanwhile, dmesg reports as it bring up each CPU the physical # and Core #. [ 88.931544] CPU: Physical Processor ID: 0 [ 88.931545] CPU: Processor Core ID: 2
And, if you have multiple physical processors, it assigns each core to a scheduling domain for each Physical CPU (from a dual-xuad-xeon): [ 80.251504] Brought up 8 CPUs [ 80.251546] CPU0 attaching sched-domain: [ 80.251548] domain 0: span 03 [ 80.251549] groups: 01 02 [ 80.251552] domain 1: span ff [ 80.251553] groups: 03 0c 30 c0 [ 80.251556] CPU1 attaching sched-domain: [ 80.251557] domain 0: span 03 [ 80.251558] groups: 02 01 [ 80.251560] domain 1: span ff [ 80.251561] groups: 03 0c 30 c0 [ 80.251563] CPU2 attaching sched-domain: [ 80.251564] domain 0: span 0c [ 80.251566] groups: 04 08 [ 80.251567] domain 1: span ff [ 80.251568] groups: 0c 30 c0 03 [ 80.251571] CPU3 attaching sched-domain: [ 80.251572] domain 0: span 0c [ 80.251573] groups: 08 04 [ 80.251575] domain 1: span ff [ 80.251576] groups: 0c 30 c0 03 [ 80.251579] CPU4 attaching sched-domain: [ 80.251580] domain 0: span 30 [ 80.251581] groups: 10 20 [ 80.251583] domain 1: span ff [ 80.251584] groups: 30 c0 03 0c [ 80.251586] CPU5 attaching sched-domain: [ 80.251587] domain 0: span 30 [ 80.251588] groups: 20 10 [ 80.251590] domain 1: span ff [ 80.251591] groups: 30 c0 03 0c [ 80.251594] CPU6 attaching sched-domain: [ 80.251595] domain 0: span c0 [ 80.251596] groups: 40 80 [ 80.251598] domain 1: span ff [ 80.251599] groups: c0 03 0c 30 [ 80.251601] CPU7 attaching sched-domain: [ 80.251602] domain 0: span c0 [ 80.251604] groups: 80 40 [ 80.251605] domain 1: span ff [ 80.251607] groups: c0 03 0c 30 On Fri, May 9, 2008 at 12:10 PM, Moshe Gorohovsky <[EMAIL PROTECTED]> wrote: > Hi, > > Tzafrir Cohen wrote: >> On Thu, May 08, 2008 at 12:59:59PM +0300, Shlomi Fish wrote: >>> On Thursday 08 May 2008, Moshe Gorohovsky wrote: >>>> Hi linux-il, >>>> >>>> Hag Sameah! >>>> >>>> I recently set up a linux PC with Intel Core2 Duo CPU. >>>> >>>> I had started the PC up from a knoppix v5.3.1 DVD. >>>> Linux kernel on this DVD uses graphical framebuffer console and >>>> shows two penguin images on start-up. My previous machine >>>> showed a single penguin image. It was AMD K7 CPU (single core). >>>> >>>> Why linux kernel shows two penguin images on boot? >>>> Does it count CPU cores? >>>> >>> In a way. The number of penguins is indicative of the number of processors >>> the >>> machine has. I'm getting two processors on my relatively old P4-2.4GHz >>> machine which just has the so-called "Hyper-Threading" feature. >> >> As far as Linux is concerened, those are two separate "processors", for >> the most part. >> >> e.g: you'll see two CPUs in /proc/cpuinfo . >> > Indeed, cat /proc/cpuinfo shows two processors: > processor : 0 > ..... > processor : 1 > ..... > > Is there a Linux tool to start and run a program till it exits > on specific processor or core? > > Moshe. > > > ================================================================= > To unsubscribe, send mail to [EMAIL PROTECTED] with > the word "unsubscribe" in the message body, e.g., run the command > echo unsubscribe | mail [EMAIL PROTECTED] > > ================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
