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?
Thanks.
-----Original Message----- From: centos-bounces@centos.org [mailto:centos-bounces@centos.org] On Behalf Of mcclnx mcc Sent: Thursday, July 21, 2011 14:19 To: centos@centos.org Subject: [CentOS] 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
Denniston, Todd A CIV NAVSURFWARCENDIV Crane wrote:
-----Original Message----- From: centos-bounces@centos.org [mailto:centos-bounces@centos.org] On Behalf Of mcclnx mcc Sent: Thursday, July 21, 2011 14:19 To: centos@centos.org Subject: [CentOS] 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
-----Original Message----- From: centos-bounces@centos.org [mailto:centos-bounces@centos.org] On Behalf Of Ljubomir Ljubojevic Sent: Thursday, July 21, 2011 15:11 To: CentOS mailing list Subject: Re: [CentOS] how to assign program to run on dedicate CPU ?
Denniston, Todd A CIV NAVSURFWARCENDIV Crane wrote:
<SNIP>
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
Yep, yet more evidence that it "got typed to quickly". :)
22.07.2011 5:19, mcclnx mcc пишет:
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?
Thanks. _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
http://www.serverschool.com/dedicated-servers/how-to-assign-a-process-to-a-s...