LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-25-2009, 08:41 PM   #1
qspares
LQ Newbie
 
Registered: Oct 2004
Posts: 14

Rep: Reputation: 0
Set CPU mask on thread level


Hi! All: Not sure if this has been asked before.

Is it possible to set CPU mask on thread level? Essentially, something like sched_setaffinity(),
but not on process level.

I am asking this question because, I need a high-precision performance measurement tool. Thinking
of using TSC, but TSC is not synced among different CPUs, and I certainly don't want to limit my
entire process into just one CPU. If I could just fix one of my thread into one specific CPU that
would solve the issue.

Any suggestions will be great! Thanks!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Find - battery life, CPU Usage,Wireless Signal Level , Congestion Level md_imranullah Programming 2 05-20-2008 09:45 PM
CPU binding - How to modify the CPU affinity mask? Thaidog Linux - General 1 03-15-2008 06:54 PM
set your default run level so you will boot to a default run level - vga console Adam555 Linux - Newbie 1 01-21-2008 05:55 PM
thread level signals arunachalam Linux - Software 2 09-02-2007 10:51 AM
how to check cpu level? naijaguy Linux - Newbie 7 02-05-2005 03:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration