Hi Hamid Rez Khaleghzadeh,
I was interested in the same information a few days ago. I read this
article that made the issue clear for me.
http://developers.sun.com/solaris/articles/solaris_processor.html
To summarise the article into the information that you are after.
The processor_bind will set an process/thread to run on a processor, but
other processes/threads may utilise that processor. The pset_bind will
only allow processes/threads that you specify using the pset_bind to run
on the processors specified within the "processor set" that you
allocated. So pset_bind, used correctly, can be used to both stop a
thread from being migrated and to prevent thread interference.
There is an limitation in pset_bind that you cannot allocate processor
0, whereas processor_bind will allow you to allocate processor 0.
Hope that helps.
Regards,
John
On 06/10/2011 05:44 AM, Hamid Reza Khaleghzadeh wrote:
Hi
Thanks for your answer, but I forgot determine OS. I am using Solaris
10. Now, Can you answer my question?
On Fri, Jun 10, 2011 at 6:27 AM, Ali Saidi <sa...@umich.edu
<mailto:sa...@umich.edu>> wrote:
sched_setaffinity() will do it
Ali
Sent from my ARM powered device
On Jun 9, 2011, at 5:15 AM, Hamid Reza Khaleghzadeh
<khaleghza...@gmail.com <mailto:khaleghza...@gmail.com>> wrote:
> Hi all,
>
> I want to bind a thread to a certain CPU where this thread is
only run on the certain CPU (can not be migrated else I want to
migrate it), and there are not any thread interferences (any
threads can not be mapped to that CPU). Could you tell me how I
can do it? Do I use pset_bind or processor_bind?
>
> Thanks for your answer in advance
> _______________________________________________
> gem5-users mailing list
> gem5-users@m5sim.org <mailto:gem5-users@m5sim.org>
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
_______________________________________________
gem5-users mailing list
gem5-users@m5sim.org <mailto:gem5-users@m5sim.org>
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
--
Hamid Reza Khaleghzadeh
_______________________________________________
gem5-users mailing list
gem5-users@m5sim.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
_______________________________________________
gem5-users mailing list
gem5-users@m5sim.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users