Hi, Am 05.12.2016 um 08:00 schrieb John_Tai:
> Newbie here, hope to understand SGE usage. > > I’ve successfully configured virtual_free as a complex for telling SGE how > much memory is needed when submitting a job, as described here: > > https://docs.oracle.com/cd/E19957-01/820-0698/6ncdvjclk/index.html#i1000029 > > How do I do the same for telling SGE how many CPU cores a job needs? For > example: > > qsub -l mem=24G,cpu=4 myjob Will you use the consumable virtual_free here instead mem? > Obviously I’d need for SGE to keep track of the actual CPU utilization in the > host, just as virtual_free is being tracked independently of the SGE jobs. For parallel jobs you need to configure a (or some) so called PE (Parallel Environment). Purpose of this is, to make preparations for the parallel jobs like rearranging the list of granted slots, prepare shared directories between the nodes,... These PEs were of higher importance in former times, when parallel libraries were not programmed to integrate automatically in SGE for a tight integration. Your submissions could read: qsub -pe smp 4 myjob # allocation_rule $peslots, control_slaves true qsub -pe orte 16 myjob # allovation_rule $round_robin, control_slaves tue where smp resp. orte is the chosen parallel environment for OpenMP resp. Open MPI. Its settings are explained in `man sge_pe`, the "-pe" parameter to in the submission command in `man qsub`. -- Reuti _______________________________________________ users mailing list users@gridengine.org https://gridengine.org/mailman/listinfo/users