Re: how to assign program to run on dedicate CPU ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Denniston, Todd A CIV NAVSURFWARCENDIV Crane wrote:
>> -----Original Message-----
>> From: centos-bounces@xxxxxxxxxx [mailto:centos-bounces@xxxxxxxxxx] On
>> Behalf Of mcclnx mcc
>> Sent: Thursday, July 21, 2011 14:19
>> To: centos@xxxxxxxxxx
>> Subject:  how to assign program to run on dedicate CPU ?
>>
>> We have CENTOS 5.X on DELL servers.  I know on Windows environment I
>> can use "imagecfg.exe" to assign program run on dedicate CPU.
>>
>> Can anyone tell me how to do this on LINUX?
>>
> 
> I should probably have just answered `man taskset`, but the below got
> typed too quickly.
> 
> CONTROLEDPID=`ps aux |grep 'name of process I want to control`
> PROCESSORTORUNON=3
> Taskset -p -c $PROCESSORTORUNON $ PROCESSORTORUNON

You meant:
taskset -p -c $PROCESSORTORUNON $CONTROLEDPID

-- 

Ljubomir Ljubojevic
(Love is in the Air)
PL Computers
Serbia, Europe

Google is the Mother, Google is the Father, and traceroute is your
trusty Spiderman...
StarOS, Mikrotik and CentOS/RHEL/Linux consultant
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux