qsub ncpus and taskset

qsub ncpus and taskset

Dear MTLers,Is there a way to specify the taskset (sched_affinity) already with qsub?As I understand, qsub's ncpus option allows to request a certain number of cores, but it does not specify which cores. By the time the job starts on a batch node, a taskset command could conflict with other jobs running on that node? (At least if the other jobs requested a particular sched_affinity.)If so, the only way to allocate specific cores (e.g., 10 cores on one CPU) would be to request exclusive access to a batch node, i.e., set ncpus=40?Thanks,Bernd

2 Beiträge / 0 neu
Letzter Beitrag
Nähere Informationen zur Compiler-Optimierung finden Sie in unserem Optimierungshinweis.

You are basically correct - the qsub ncpus only just requests a number of CPUs from the total available on the batch server. There is no coloration between with the number of CPUs requested and what cores they relate too.

As you said you could specify ncpus=40 to get exclusive access to a whole batch server and then use taskset within your qsub job to specify which cores you wish to use. Another alternative is to specify a particular batch server (i.e. acano03 or acano04) - both of these batch node always run in exclusive mode, so even specifying ncpus=1, on one of these servers, will get youthe entire batch node. Only acano02 is currecntly configured to run in shared mode.

Kommentar hinterlassen

Bitte anmelden, um einen Kommentar hinzuzufügen. Sie sind noch nicht Mitglied? Jetzt teilnehmen