Find the answer to your Linux question:
Results 1 to 5 of 5
Hi, Is there any way through which we can map the cpu core to the physical processors? Say, i need to do something like cpu core number 10 belongs to ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2008
    Posts
    3

    Method to map cpu cores to physical processor


    Hi,

    Is there any way through which we can map the cpu core to the physical processors?
    Say, i need to do something like cpu core number 10 belongs to physical processor number 4.
    Is there any way to do the same?
    My machine configuration is SLES 10 SP2 for x86_64 and IA64 architecture.

    I beleive there will be different way to find out the same on above mentioned architecture.

    Waiting for quick response.
    Thanks.

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    11,167
    And you care because?
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Just Joined!
    Join Date
    Jun 2007
    Posts
    12
    If you just want to know for knowing sake here is a nice doc from redhat. kbase.redhat.com/faq/docs/DOC-7715

  4. #4
    Just Joined! wildpossum's Avatar
    Join Date
    Apr 2008
    Location
    Sydney/Australia
    Posts
    92

    Wink

    At this stage - the Linux Kernel is not capable of assigning a CPU to a process by the user, as the Scheduler handles this directly.

    However, if you where to use KVM, Xen etc. there are methodologies by which certain CPU/cores may/can be attached to certain processes. Apart from this, I am unaware of any direct method of doing so.

    On the Distributor level, non cover your requirements I sure.

    Hope this assists.
    Cheers!

  5. #5
    Just Joined!
    Join Date
    Sep 2008
    Posts
    3
    Yup...i got one hint that...in /proc/cpuinfo "physical id" denotes the physical cpu mapped to the logical processor.
    Am i right this way to get the physical cpu number?
    If yes, what can i do for the ia64 architecture?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •