Find the answer to your Linux question:
Results 1 to 2 of 2
Hi all, My system has Intel Xeon 4-core cpu(hyperthreading 8-core) and run 64-bit linux. I want to allocate one core for general process(kernel process & other processes). And then, I ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jul 2010
    Posts
    2

    How to allocate a cpu core for kernel process?


    Hi all,

    My system has Intel Xeon 4-core cpu(hyperthreading 8-core) and run 64-bit linux.
    I want to allocate one core for general process(kernel process & other processes).
    And then, I want to allocate the rest of core for the specific multi-thread program.

    Q1:
    I know that I can pthread_setaffinity() for user-mode thread and mpstat for monitoring. So, how can I allocate a core for kernel process and monitor it?

    Q2:
    How can I restrict use of the cores for the multi-thread program? I don't want kernel process to use the cores for the multi-thread program.

    Thanks.

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,633
    Please move this thread to "The Linux Kernel" forum. You'll get better answers there.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

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