Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 04-06-2009, 09:29 AM   #1
LQ Newbie
Registered: Jan 2009
Posts: 18

Rep: Reputation: 0
Using taskset to set process affinity on multi-core/hyperthreading


I have an Intel i7 machine (4 cores, 2 hyperthreads per core).
I would like to explicitly use 3 cores for a certain process - and run all the other processes (including system services and kernel processes) on the remaining core.
I've tried to "fish out" all the current pids (using ps -e combined in a perl script) and then run:
taskset -p 3 <pid>
(this sets the affinity mask to all the process so that'll see only core 0 - with its 2 hyperthreads)

This hangs the machine causing a kernel panic.

Any ideas why?
Is there an alternative way to carry out this procedure?



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
Can you set processor affinity on Linux? Thaidog Linux - General 1 02-27-2008 09:31 AM
cpu affinity process hlds multiple CosmicDebris Linux - Games 2 01-09-2008 01:55 PM
dual-core AND hyperthreading? gandalf3 Linux - Hardware 3 09-28-2006 10:14 AM
multi-thread VS multi-process ltcstyle Programming 3 12-04-2004 06:53 PM
Multi process cebug mickstaff Programming 11 06-10-2004 08:33 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:49 PM.

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