Re: Two questions about scheduling and threading.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Dan Noe
Date: Thursday, May 8, 2008 - 8:47 am

On 5/8/2008 11:15, Brian McGrew wrote:

There are some functions to set CPU affinity from user space:

sched_setaffinity()
sched_getaffinity()

And a user space program:

taskset

All have decent man pages.  They'll allow you to pin a process to a 
particular CPU, or set the normal behavior, which is to try and keep a 
process on the same CPU as long as possible.  There are some other 
utilities mentioned in the related section of the manpages - they allow 
you to tweak scheduler behavior.

Hope that helps.

Cheers,
Dan

-- 
                     /--------------- - -  -  -   -   -
                     |  Dan Noe
                     |  http://isomerica.net/~dpn/
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Two questions about scheduling and threading., Brian McGrew, (Thu May 8, 8:15 am)
Re: Two questions about scheduling and threading., Dan Noe, (Thu May 8, 8:47 am)
RE: Two questions about scheduling and threading., David Schwartz, (Thu May 8, 12:44 pm)