In this lab you are going to test the scheduler.
Run the following command to submit a simple job to the queue:
echo “hostname;date;sleep 180;date” | qsub
- This will run the hostname, date, sleep and again the date command in a job.
- The argument to the sleep command is seconds, so the job will run for three minutes.
- The numeric part of the output from invoking the qsub command is the job number or job id.
- While the job is running, answer the following questions :
- What does showq -u <your-login-name> show you?
- What does myjobs show you?
- What does showq -r -u <your-login-name> show you?
- What does myjobs -r show you?
- What does qshow show you?
- What does qr show you?
- What does qstat -u <your-login-name> show you?
- What does myqstat show you?
- Run checkjob <job-id>
- Which node is the job running on?
- After the job completes there should be two files in your HOME directory that are named, STDIN.o<job-id> and STDIN.e<job-id>
- The .e file will contain errors that the job generates.
- The .o file contains that output of the job along with prologue and epilogue information.
- STDIN is the name of the job since the qsub received the commands from STanDard INput.
- The prologue shows requested resources and the epilogue shows received resources.
- What are the requested and received walltime values?
- The output between the prologue and epilogue should look similar to the following:
Tue Feb 7 12:11:22 EST 2013
Tue Feb 7 12:14:22 EST 2013