LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-27-2013, 02:40 AM   #1
Rantu
LQ Newbie
 
Registered: Feb 2013
Posts: 2

Rep: Reputation: Disabled
use of command taskset


Hi,

I have 48 cores in my server. I want to assign 50% of the cores to certain programs and rest to some other programms. I found the command "taskset" very good option to assign cpu afinity to already running programms or newly created programms.

But the problem is even if i set a cron to change the newly created PID's by a specific user, it will take effect only every minute. So if PID's are created in seconds, then this command "taskset" fails to assign cpu affinity to newly created PID's.

So is there any way I can modify the user settings so that everytime a new PID is created with that user ownership, then my taskset commands runs automatically.
 
Old 03-01-2013, 08:19 AM   #2
vishesh
Member
 
Registered: Feb 2008
Distribution: Fedora,RHEL,Ubuntu
Posts: 661

Rep: Reputation: 66
I think, the available option is either start process with given affinity or alter affinity using shell script after every few seconds .


Thanks
 
  


Reply



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
The contrary effect taken by using taskset command to set processor affinity sobrier Linux - Kernel 2 07-25-2010 01:59 AM
CPU affinity / taskset does not always work. lwi Ubuntu 3 03-01-2010 12:49 PM
taskset and affinity masks tethysgods Linux - Software 1 01-16-2010 12:29 PM
Taskset on multicore cpu DinoFly Linux - General 4 10-31-2009 05:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:09 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
Open Source Consulting | Domain Registration