Date: | Tue, 13 Apr 2010 14:13:18 -0500 |
---|---|
From: | sparsh mittal ISU <sparsh@xxxxxxxxxxx> |
Subject: | Re: [Gems-users] Trying to run multi-program |
Hello Thanks for the responses. I think the number of processors should be power of two. So, if I try to use processor_bind, then I have tried the following program. #include<sys/types.h> #include <sys/processor.h> #include <sys/procset.h> int main() { processor_bind(272, 316, 0,NULL); processor_bind(272, 317, 0, NULL); return 0; } Here 316 and 317 are the PIDs of two benchmarks and 272 is the PPID, as shown by command ps -el. So, I compiled the program, by gcc process.c -o procExe and then I execute it ./procExe Is that all? I still see the CPU utilizations to be around 50% and never two processes are simultaneously running. Thanks Sparsh On Tue, Apr 13, 2010 at 1:33 PM, Dan Gibson <degibson@xxxxxxxx> wrote: I don't know the details, but somehow psrset_bind is stronger than processor_bind, though the latter allows 'binding' to processor zero. I would call processor_bind(). -- Thanks and Regards Sparsh Mittal Graduate Student Electrical and Computer Engineering Iowa State University, Iowa, USA |
[← Prev in Thread] | Current Thread | [Next in Thread→] |
---|---|---|
|
Previous by Date: | Re: [Gems-users] Trying to run multi-program, Dan Gibson |
---|---|
Next by Date: | Re: [Gems-users] Trying to run multi-program, Dan Gibson |
Previous by Thread: | Re: [Gems-users] Trying to run multi-program, Dan Gibson |
Next by Thread: | Re: [Gems-users] Trying to run multi-program, Dan Gibson |
Indexes: | [Date] [Thread] |