Find the answer to your Linux question:
Results 1 to 3 of 3
Hi All, I fi need to know how many threads and which threads running on linux machine? Is there any command to look those threads? As well as interrupts and ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Mar 2008
    Location
    Hyderabad
    Posts
    20

    How to look how many kernel threads running on linux machine


    Hi All,

    I fi need to know how many threads and which threads running on linux machine?
    Is there any command to look those threads?
    As well as interrupts and tasklets also.

    Could you please help for this.

    thanks
    --Venkatesh

  2. #2
    Just Joined!
    Join Date
    Oct 2008
    Posts
    6
    how about "ps auxwf":

    USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
    root 2 0.0 0.0 0 0 ? S< 15:03 0:00 [kthreadd]
    root 3 0.0 0.0 0 0 ? S< 15:03 0:00 \_ [migration/0]
    root 4 0.0 0.0 0 0 ? S< 15:03 0:00 \_ [ksoftirqd/0]
    root 5 0.0 0.0 0 0 ? S< 15:03 0:00 \_ [watchdog/0]
    root 6 0.0 0.0 0 0 ? S< 15:03 0:00 \_ [migration/1]
    root 7 0.0 0.0 0 0 ? S< 15:03 0:00 \_ [ksoftirqd/1]
    root 8 0.0 0.0 0 0 ? S< 15:03 0:00 \_ [watchdog/1]
    root 9 0.0 0.0 0 0 ? S< 15:03 0:00 \_ [events/0]
    root 10 0.0 0.0 0 0 ? S< 15:03 0:00 \_ [events/1]
    root 11 0.0 0.0 0 0 ? S< 15:03 0:00 \_ [khelper]
    root 64 0.0 0.0 0 0 ? S< 15:03 0:00 \_ [kblockd/0]

    tasklet and interrupts is too fine grain to see......u have to write a kernel module to see.

    for interrupt, its static info is here /proc/interrupts.

  3. #3
    Just Joined!
    Join Date
    Mar 2008
    Location
    Hyderabad
    Posts
    20

    Could you please give code kernel module

    Hi ,
    Thanks for giving reply, couldd you please give kernel module code to see tasklets and interrupts.

    Thanks,
    --Venkatesh

  4. $spacer_open
    $spacer_close

Posting Permissions

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