Jonny's Sandbox

Jonny's Sandbox

Parallel Environments (PEs)

Parallel Environments (PEs)

Parallel Environments (or PEs) are a feature of the Sun Grid Engine to allow the management of parallel jobs in the system.  From a user's perspective, they can be thought of as a set of rules that a parallel job will comply with.  When a user's parallel job script indicates that it will use a particular PE, the SGE will do several useful things that are a little different from a normal job:

  • create a machines file appropriate for the job, listing the machines in the cluster that the job will run on; this will be used by software such as OpenMPI's mpirun and the like to know which machines to use for the job

  • launch a shepherd process to help monitor the job and its distributed parts

  • use the shepherd process to clean up after the job is finished, making sure there are no orphaned processes left behind

To see which PEs are available, login to one of the clusters and enter the following command:

    qconf -spl

On the teal cluster, for example, the output of this command is:
[user@teal ~/]# qconf -spl
gold_test_pvm
make
mvapich_test
ompi
ompi2
ompi_16
ompi_24
ompi_32
ompi_8
ompi_psm
openfoam_mpi
smp
vasp

As their names indicate, the PEs are configured for certain purposes. To see how a PE is configured, run the command
qconf -sp <PE name>
For example, to see how the ompi PE was configured, enter the command "qconf -spl ompi" at the command prompt:
[user@teal ~/]# qconf -spl ompi
pe_name ompi
slots 2553
user_lists NONE
xuser_lists NONE
start_proc_args /bin/true
stop_proc_args /bin/true
allocation_rule $fill_up
control_slaves TRUE
job_is_first_task FALSE
urgency_slots min

And for the smp PE,
[user@teal ~/]# qconf -spl
pe_name smp
slots 1829
user_lists NONE
xuser_lists NONE
start_proc_args /bin/true
stop_proc_args /bin/true
allocation_rule $pe_slots
control_slaves FALSE
job_is_first_task TRUE
urgency_slots min

The "allocation rule" of a PE may be of importance to a user.  Depending on this rule, a job's parts may be freely distributed among the machines in the cluster, or held to only one machine.  EXPLAIN.  (stopping 1:11pm 05/13/2021)

Add a simp,le  example, expected outcomes, etc.  Don't get too lengthy is this too lengthy already I dunno