Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    How to find which task is running on a particular core at a given intstance

    Hello ,

    I am using Kernel
    I have to find on which core a particular task is running on .
    I am ready to modify the kernel to do printk or some logging .
    I guess there used to be 2 fields called 'processor' and 'last_processor' in task_struct in older kernels which probably had this information .

    So what do I do to find out on which core a particular task is running on ?

    Or ,

    Are there any utilities that are simple-to-use and can display the tasks that are running on each of the cores , including the cpu core info ? top , mpstat etc do not tell you on which cpu core a task is running on .

    Thanks !

  2. #2
    Linux Guru jmadero's Avatar
    Join Date
    Jul 2007
    Almost positive this is impossible and that both cores simultaneously share tasks. Almost ten years of linux and I've never seen this type of software
    Bodhi 1.3 & Bodhi 1.4 using E17
    Dell Studio 17, Intel Graphics card, 4 gigs of RAM, E17

    "The beauty in life can only be found by moving past the materialism which defines human nature and into the higher realm of thought and knowledge"

Posting Permissions

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