Showing posts with label Job Scheduler. Show all posts
Showing posts with label Job Scheduler. Show all posts

PBS Important Commands & Attributes 2

How To Hold And Release Job in PBS
#qsig -s suspend command to suspend a job so that it won’t run. If you suspend a job, and then release it using the
#qsig -s resume command,
HOW TO HOLD THE PARTICULAR JOB.
For Example 54.
1)qstat -a 54 (list all the jobs id 54)
2)qhold 54 (hold the job 54)
3)qstat -a 54 (check the status)
4)qrls -h u 54 (release the job id 54)
5)qstat -a 54 (check the Status)

PBS Resource Management Useful Tips
1)qsub -l select=4:ncpus=1:mem=4gb -l place=free (Take the resource anywhere PLACE).
2)qsub -l select=1:ncpus=2:mem=50gb:host=zooland(Request job on specified NODE).
3)qsub -l select=2:ncpus=3:mem=6gb -l place=scatter (Request resource on different NODE).
4)qsub -l select=1:ncpus=1:mem=25gb -l place=pack:excl (Request a small number of CPUs but a large amount of memory, exclu-
sively)

User’s PBS Environment

User must be able to transfer files between hosts (e.g. via rcp or scp)
should add entry /usr/bin/scp in /etc/pbs.conf

PBS Error & Solution node down: communication closed


1)node down: communication closed
#pbsnodes -a
node1
Mom = node1.hcl.com
Port = 15002
pbs_version = PBSPro_12.0.1.130184
ntype = PBS
state = state-unknown,down
pcpus = 2
resources_available.host = node1
resources_available.ncpus = 2
resources_available.vnode = node1
resources_assigned.accelerator_memory = 0kb
resources_assigned.mem = 0kb
resources_assigned.naccelerators = 0
resources_assigned.ncpus = 0
resources_assigned.netwins = 0
resources_assigned.vmem = 0kb
comment = node down: communication closed
resv_enable = True
sharing = default_shared
license = l

master

PBS Important Commands & Attributes



1)Get the Details About the Server Attributes.
# qstat -Bf
Server: master
server_state = Active
server_host = master.hcl.com
scheduling = True
total_jobs = 0
state_count = Transit:0 Queued:0 Held:0 Waiting:0 Running:0 Exiting:0 Begun
:0
default_queue = workq
log_events = 511
mail_from = adm
query_other_jobs = True
resources_default.ncpus = 1
default_chunk.ncpus = 1
resources_assigned.mpiprocs = 0
resources_assigned.ncpus = 0
resources_assigned.nodect = 0
scheduler_iteration = 600
FLicenses = 0

Pbs Job Scheduler – Importants Commands1


PBS GUI Window
COMMAND PURPOSE
#xpbs PBS Graphical User Interface.
#xpbsmon PBS Graphical Monitoring Tool.

Qstat Command Special Option.
#qstat Get the Detail Information about
Server, Job ,Queue
#qstat -B Show Server Status
#qstat -Bf Show detail Information about Server Status
#qstat -Q List all the Queue
#qstat -Qf List Detail Information about Queue.
#qstat -f <JOB-ID> Show Detail Information about job.

qstat  Some Special New Option
-T Estimate Job starting time (When the job will start if it is Queue).
-p How much percentage job is completed.
-n Get List of nodes allocated to the job number(#qstat -n JOBID).