LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-05-2009, 01:41 PM   #1
Kevin McLeod
LQ Newbie
 
Registered: Feb 2009
Location: Laguna Niguel
Posts: 10

Rep: Reputation: 0
Question How do I manage CPU affinity FBO multiple instances of an application in RHEL v5.x?


I am taking over the management and support for a workstation with 4 64-bit AMD dual core opterons with RHEL v5.x OS with all the updates. The user is complaining that when running 2 or more instances of a multi-threaded chemical process application, the same CPUs are being used instead of using other available CPUs that are idle. My task is to allocate through CPU affinity, different application instances to different CPUs. Keeping in mind I'm a novice in Linux, how do I do this? I would appreciate a step by step process due to my lack of Linux experience. Thanks!

Last edited by Kevin McLeod; 02-05-2009 at 01:53 PM.
 
Old 02-05-2009, 02:13 PM   #2
kentyler
Member
 
Registered: Dec 2008
Location: Newark Ohio
Distribution: Fedora Core
Posts: 270

Rep: Reputation: 38
Make sure you have the schedutils RPM installed and try taskset


http://kbase.redhat.com/faq/docs/DOC-1553

http://www.cyberciti.biz/tips/settin...r-process.html
 
Old 02-05-2009, 05:40 PM   #3
Kevin McLeod
LQ Newbie
 
Registered: Feb 2009
Location: Laguna Niguel
Posts: 10

Original Poster
Rep: Reputation: 0
Thanks. I appreciate the advice. Keep in mind since I have 4 dual core processors, I have 8 CPUs to assign. And now I have the problem of determining the PID. A different PID appears every time the application is run. Is it possible to use the main executable name in lieu of a PID number? And perhaps I can copy the main application executable and rename it? That way I could do something like this to run three simultaneous instances:

taskset 0x00000004 -p App1.exe
taskset 0x00000003 -p App2.exe
taskset 0x00000006 -p App3.exe

Or is there a way to preset the PID to the application executable each time it is run?
 
  


Reply

Tags
cpuaffinity, rhel


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
CPU binding - How to modify the CPU affinity mask? Thaidog Linux - General 1 03-15-2008 05:54 PM
cpu affinity process hlds multiple CosmicDebris Linux - Games 2 01-09-2008 01:55 PM
CPU affinity on kernel 2.4.14-SMP tsik Linux - Kernel 0 11-05-2007 09:27 PM
Multiple Application Instances Think_UNIX General 0 09-26-2007 07:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:30 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