![]() |
![]() |
||||
|
Run a Bunch of Jobs on the Compute ServersHow to Run a Bunch of Jobs on the Compute Servers:A Shell Script to Run Background Jobs SequentiallyWhen you have a number of jobs to run on the interactive compute servers, it's most efficient to run them sequentially, one after the other. That way, the jobs don't compete against each other for possibly scarce resources, you're sharing the computing system in an equitable manner, and you'll receive the results from your jobs more quickly than if you were to run them all at once on the same system. It is best, however, to run long jobs in the PBS batch system. See How
to Submit a Single Batch Job. The batch system has many CPUs at its
disposal, and will run up to 8 jobs per user at the same time, with each
job having exclusive access to a CPU. Checking Your Background ProcessesYour background job will continue to run after you logout. You can login again later on the same interactive compute server and check your job's progress , in terms of CPU time accumulated, with the command
The Why is it optimal to run jobs sequentially on an interactive server?Consider the situation where you have five identical jobs to run, each of which will take 24 hours to finish. The computer you're using has a single CPU. If you start all five jobs at the same time, they will share computer resources equally, and they will all finish at the same time -- five days after they start.On the other hand, if you run the jobs sequentially, one after the other, your first job will finish after one day, and you will be able to view its results. The second job will finish at the end of the second day, and you will then be able to view its results. And so forth, until the last job is complete. On the average, you'll see your results in 3 days, rather than 5 days! Most certainly, you'll see the results of four of the five jobs in less than 5 days, whereas if you had run all 5 jobs simultaneously, you would not see any results at all until the end of the fifth day. Furthermore, by running your jobs one at a time, you are minimizing the additional load on the computer to just one job. That helps keep the overall load on the interactive compute server down, making it more usable for everyone involved. |
|||||
![]() |
Services |
Get Connected |
Support |
Educational Resources |
NUIT
|
|