Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7829507
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T10:48:12+00:00 2026-06-02T10:48:12+00:00

I have a Linux machine with 16 cores in it. // uname -a Linux

  • 0

I have a Linux machine with 16 cores in it.

// uname -a
Linux lndbxdev01 2.6.24.7-108.el5rt #1 SMP PREEMPT RT 
Mon Mar 23 10:58:10 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux

// OS detail
Red Hat Enterprise Linux Server release 5.3 (Tikanga)

I would like to schedule process affinity so that 1 CPU will be
entirely dedicated to 1 process.

When I say entirely dedicated I mean that I want really to bound
any other running deamons, IRQ-nnnn, rpciod/nn, etc. to all CPUs
available except for the one my process is interested.
( on my OS I can count around 500 processes ).

  1. by doing that is it safe or should I care for letting some of them on the CPU where they are currently running?
  2. If I bind at least IRQs will the performance be better?

Since these are connected to interrupts, which are triggered frequently,
they induce a frequent process context switch since the kernel has to call those.

I am expecting the following benefits:

  1. because there will be one single process running a single CPU
    there will be NO process context switch at all.
  2. the time slice assigned to my process on that CPU
    will be increased so it will run longer before a process context switch ( if any ).

Kind Regards
AFG

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T10:48:13+00:00Added an answer on June 2, 2026 at 10:48 am

    I guess cpusets can help you overcome this problem. You can define an exclusive cpuset for one of the CPUs and bind the process to that specific cpuset.

    http://www.kernel.org/doc/man-pages/online/pages/man7/cpuset.7.html

    You might find cset usefule:

    http://code.google.com/p/cpuset/

    If you are not willing to use any of them, then you need to write your own c code to schedule the process on a specific cpu (using sched_setaffinity) and disable all interrupts on that specific cpu.

    I hope it helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two Linux Machine,1st is machine X ,other is machine Y i want
I have compiled my application on Linux (Intel) machine using this command gcc –g
I have some files which need to be sftp from machine B ( linux
I have multiple linux machine. I want to share my .vimrc , .hgrc .
I am a newbie in APE. I have a linux machine that runs the
I have installed sun jdk 1.6 x64 and tomcat in a linux x64 machine
I have a Linux machine ( Red Hat Linux 5.1), and I need to
I am seeing a strange problem: I have a linux machine, installed JDK1.6 on
We have a linux app that depends on the speed with which the user
I have a linux VPS that uses an older version of python (2.4.3). This

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.