mardi 7 mars 2017

pysys startProcess with numactl

numactl is a process which can set processor affinity. it takes the process in which to pin to a cpu as a parameter:

numactl -physcpubind 0 <process> <args>

I can successfully run my process using the pysys startProcess command:

BaseTest.startProcess('processA argsA') 

However the below causes a defunct python process according to ps -ef [PID].

BaseTest.startProcess('numactl -physcpubind 0 processA argsA') 

Any thoughts on how startProcess() can be used to call a process (numactl) which:

  • itself has arguments (-physcpubind 0)
  • one of said arguments is another process (processA), which itself has arguments (argsA)

TIA

Aucun commentaire:

Enregistrer un commentaire