|
Article ID: 526
Last updated: 24 Oct, 2023
Occasionally, PBS jobs may fail due to mpiexec timeout problems at startup. If this happens, you will typically see several error messages similar to the following:
When mpiexec starts, several things must happen in a timely manner before the job runs; for example, every node must access the executable and load it into memory. In most cases, this process is successful and the job starts normally. However, if something slows down this process, mpiexec may timeout before the job can start. This can happen when the job is running an executable located on a filesystem that is not mounted during PBS prologue activities (for example, on a colleague's filesystem); mpiexec may timeout before the filesystem is mounted on each node. (Jobs running on a large number of nodes may be more likely to experience this problem than smaller jobs.) Workaround StepsIf you encounter an mpiexec startup failure, complete all of these steps to try and resolve the problem.
Alternative to Step 3: If it is difficult to add the several_tries tool to your job script—for example, if you have a complicated set of nested scripts and it's not clear where to insert the tool—try using the pdsh command instead, as follows: pdsh -w `uniq $PBS_NODEFILE | xargs | tr " " ","` Note: The pdsh command line above is shown on two lines for formatting reasons. It should be entered as one line. This does a parallel SSH into each node and loads the executable into each node's memory so that it's available when mpiexec tries to launch it. If the executable is already in your path, you do not need to include the entire path in the command line. Sample PBS Script with WorkaroundThe following sample script incorporates all three steps described in the previous section.
several_tries Script SettingsThe following environment variables are associated with the several_tries script:
|