[torqueusers] assigning resources to a queue

Christina Salls christina.salls at noaa.gov
Tue Apr 24 15:28:54 MDT 2012


On Tue, Apr 24, 2012 at 4:23 PM, Axel Kohlmeyer <akohlmey at cmm.chem.upenn.edu
> wrote:

> On Tue, Apr 24, 2012 at 4:03 PM, Christina Salls
> <christina.salls at noaa.gov> wrote:
> >>
> >
> > Definitely worth a try - it makes perfect sense.  Thanks for the
> suggestion.
> >  The only roadblock I am concerned with is the fact that something within
> > torque dynamically modifies the nodes file.  I am hoping it will leave my
> > modifications intact.  I will let you know what happens.
>
> you can do this change dynamically from qmgr.
>
> qmgr -c 'set node mynode properties += myprop'
>
> it will rewrite your nodes file automatically
> and you don't have to restart torque.
>
> axel.
>
>
> Ok.  I did this by hand and it worked perfectly.  I just tested it.

[root at wings ~]# qmgr
Max open servers: 10239
Qmgr: set node n001 properties += generic
Qmgr: set node n002 properties += generic
Qmgr: set node n003 properties += generic
Qmgr: set node n004 properties += generic
Qmgr: set node n005 properties += generic
Qmgr: set node n006 properties += generic
Qmgr: set node n007 properties += generic
Qmgr: set node n008 properties += generic
Qmgr: set node n009 properties += generic
Qmgr: set node n010 properties += generic
Qmgr: set node n011 properties += generic
Qmgr: set node n012 properties += generic
Qmgr: set node n013 properties += generic
Qmgr: set node n014 properties += generic
Qmgr: set node n015 properties += generic
Qmgr: set node n016 properties += generic
Qmgr: set node n017 properties += generic
Qmgr: set node n018 properties += generic
Qmgr: set node n019 properties += generic
Qmgr: set node n020 properties += hydro
Qmgr: set queue batch resources_default.neednodes = generic
Qmgr: set queue hydrology resources_default.neednodes = hydro

Qmgr: print server
#
# Create queues and set their attributes.
#
#
# Create and define queue hydrology
#
create queue hydrology
set queue hydrology queue_type = Execution
set queue hydrology resources_default.neednodes = hydro
set queue hydrology enabled = True
set queue hydrology started = True
#
# Create and define queue batch
#
create queue batch
set queue batch queue_type = Execution
set queue batch resources_default.neednodes = generic
set queue batch enabled = True
set queue batch started = True
#
# Set server attributes.
#
set server scheduling = True
set server acl_hosts = admin.default.domain
set server acl_hosts += wings.glerl.noaa.gov
set server managers = root at wings.glerl.noaa.gov
set server managers += root@*
set server managers += salls at wings.glerl.noaa.gov
set server operators = root at wings.glerl.noaa.gov
set server operators += salls at wings.glerl.noaa.gov
set server default_queue = batch
set server log_events = 511
set server mail_from = adm
set server scheduler_iteration = 100
set server node_check_rate = 150
set server tcp_timeout = 6
set server mom_job_sync = True
set server keep_completed = 0
set server auto_node_np = True
set server next_job_number = 760
set server np_default = 12
set server record_job_info = True
set server record_job_script = True
set server job_log_keep_days = 10
Qmgr: quit
[root at wings ~]# pbsnodes -a
n001
     state = free
     np = 12
     properties = generic
     ntype = cluster
     status =
rectime=1335300427,varattr=,jobs=,state=free,netload=590944113,gres=,loadave=0.00,ncpus=12,physmem=20463136kb,availmem=27849964kb,totmem=28655128kb,idletime=536312,nusers=1,nsessions=1,sessions=30936,uname=Linux
n001 2.6.32-131.0.15.el6.x86_64 #1 SMP Tue May 10 15:42:40 EDT 2011
x86_64,opsys=linux
     gpus = 0

n002
     state = free
     np = 12
     properties = generic
     ntype = cluster
     status =
rectime=1335300419,varattr=,jobs=,state=free,netload=771508829,gres=,loadave=0.03,ncpus=12,physmem=24600084kb,availmem=31908192kb,totmem=32792076kb,idletime=536263,nusers=1,nsessions=1,sessions=29658,uname=Linux
n002 2.6.32-131.0.15.el6.x86_64 #1 SMP Tue May 10 15:42:40 EDT 2011
x86_64,opsys=linux
     gpus = 0

n003
     state = free
     np = 12
     properties = generic
     ntype = cluster
     status =
rectime=1335300399,varattr=,jobs=,state=free,netload=128461870,gres=,loadave=0.00,ncpus=12,physmem=24600084kb,availmem=31938400kb,totmem=32792076kb,idletime=536273,nusers=1,nsessions=1,sessions=29463,uname=Linux
n003 2.6.32-131.0.15.el6.x86_64 #1 SMP Tue May 10 15:42:40 EDT 2011
x86_64,opsys=linux
     gpus = 0

n004
     state = free
     np = 12
     properties = generic
     ntype = cluster
     status =
rectime=1335300407,varattr=,jobs=,state=free,netload=5983889356,gres=,loadave=0.00,ncpus=12,physmem=24600084kb,availmem=31914592kb,totmem=32792076kb,idletime=536300,nusers=1,nsessions=1,sessions=29625,uname=Linux
n004 2.6.32-131.0.15.el6.x86_64 #1 SMP Tue May 10 15:42:40 EDT 2011
x86_64,opsys=linux
     gpus = 0

n005
     state = free
     np = 12
     properties = generic
     ntype = cluster
     status =
rectime=1335300387,varattr=,jobs=,state=free,netload=128206689,gres=,loadave=0.00,ncpus=12,physmem=24600084kb,availmem=31921432kb,totmem=32792076kb,idletime=536240,nusers=0,nsessions=?
15201,sessions=? 15201,uname=Linux n005 2.6.32-131.0.15.el6.x86_64 #1 SMP
Tue May 10 15:42:40 EDT 2011 x86_64,opsys=linux
     gpus = 0

n006
     state = free
     np = 12
     properties = generic
     ntype = cluster
     status =
rectime=1335300404,varattr=,jobs=,state=free,netload=128036017,gres=,loadave=0.00,ncpus=12,physmem=24600084kb,availmem=31958100kb,totmem=32792076kb,idletime=536270,nusers=1,nsessions=1,sessions=29461,uname=Linux
n006 2.6.32-131.0.15.el6.x86_64 #1 SMP Tue May 10 15:42:40 EDT 2011
x86_64,opsys=linux
     gpus = 0

n007
     state = free
     np = 12
     properties = generic
     ntype = cluster
     status =
rectime=1335300422,varattr=,jobs=,state=free,netload=128890681,gres=,loadave=0.00,ncpus=12,physmem=24600084kb,availmem=31921664kb,totmem=32792076kb,idletime=536307,nusers=1,nsessions=1,sessions=29488,uname=Linux
n007 2.6.32-131.0.15.el6.x86_64 #1 SMP Tue May 10 15:42:40 EDT 2011
x86_64,opsys=linux
     gpus = 0

n008
     state = free
     np = 12
     properties = generic
     ntype = cluster
     status =
rectime=1335300426,varattr=,jobs=,state=free,netload=127780009,gres=,loadave=0.00,ncpus=12,physmem=24600084kb,availmem=31924172kb,totmem=32792076kb,idletime=536287,nusers=1,nsessions=1,sessions=29439,uname=Linux
n008 2.6.32-131.0.15.el6.x86_64 #1 SMP Tue May 10 15:42:40 EDT 2011
x86_64,opsys=linux
     gpus = 0

n009
     state = free
     np = 12
     properties = generic
     ntype = cluster
     status =
rectime=1335300416,varattr=,jobs=,state=free,netload=121987956,gres=,loadave=0.00,ncpus=12,physmem=24600084kb,availmem=31923464kb,totmem=32792076kb,idletime=536300,nusers=1,nsessions=1,sessions=28949,uname=Linux
n009 2.6.32-131.0.15.el6.x86_64 #1 SMP Tue May 10 15:42:40 EDT 2011
x86_64,opsys=linux
     gpus = 0

n010
     state = free
     np = 12
     properties = generic
     ntype = cluster
     status =
rectime=1335300386,varattr=,jobs=,state=free,netload=121643821,gres=,loadave=0.00,ncpus=12,physmem=24600084kb,availmem=31919024kb,totmem=32792076kb,idletime=536259,nusers=1,nsessions=1,sessions=28894,uname=Linux
n010 2.6.32-131.0.15.el6.x86_64 #1 SMP Tue May 10 15:42:40 EDT 2011
x86_64,opsys=linux
     gpus = 0

n011
     state = free
     np = 12
     properties = generic
     ntype = cluster
     status =
rectime=1335300403,varattr=,jobs=,state=free,netload=121509658,gres=,loadave=0.00,ncpus=12,physmem=24600084kb,availmem=31918700kb,totmem=32792076kb,idletime=536265,nusers=1,nsessions=1,sessions=28907,uname=Linux
n011 2.6.32-131.0.15.el6.x86_64 #1 SMP Tue May 10 15:42:40 EDT 2011
x86_64,opsys=linux
     gpus = 0

n012
     state = free
     np = 12
     properties = generic
     ntype = cluster
     status =
rectime=1335300394,varattr=,jobs=,state=free,netload=58333295055,gres=,loadave=0.00,ncpus=12,physmem=24600084kb,availmem=31890172kb,totmem=32792076kb,idletime=536261,nusers=1,nsessions=1,sessions=29498,uname=Linux
n012 2.6.32-131.0.15.el6.x86_64 #1 SMP Tue May 10 15:42:40 EDT 2011
x86_64,opsys=linux
     gpus = 0

n013
     state = free
     np = 12
     properties = generic
     ntype = cluster
     status =
rectime=1335300428,varattr=,jobs=,state=free,netload=119704698,gres=,loadave=0.00,ncpus=12,physmem=24600084kb,availmem=31918100kb,totmem=32792076kb,idletime=536310,nusers=1,nsessions=1,sessions=28869,uname=Linux
n013 2.6.32-131.0.15.el6.x86_64 #1 SMP Tue May 10 15:42:40 EDT 2011
x86_64,opsys=linux
     gpus = 0

n014
     state = free
     np = 12
     properties = generic
     ntype = cluster
     status =
rectime=1335300391,varattr=,jobs=,state=free,netload=119141203,gres=,loadave=0.00,ncpus=12,physmem=24600084kb,availmem=31921004kb,totmem=32792076kb,idletime=536248,nusers=0,nsessions=?
15201,sessions=? 15201,uname=Linux n014 2.6.32-131.0.15.el6.x86_64 #1 SMP
Tue May 10 15:42:40 EDT 2011 x86_64,opsys=linux
     gpus = 0

n015
     state = free
     np = 12
     properties = generic
     ntype = cluster
     status =
rectime=1335300401,varattr=,jobs=,state=free,netload=118595178,gres=,loadave=0.06,ncpus=12,physmem=24600084kb,availmem=31920968kb,totmem=32792076kb,idletime=536270,nusers=1,nsessions=1,sessions=28897,uname=Linux
n015 2.6.32-131.0.15.el6.x86_64 #1 SMP Tue May 10 15:42:40 EDT 2011
x86_64,opsys=linux
     gpus = 0

n016
     state = free
     np = 12
     properties = generic
     ntype = cluster
     status =
rectime=1335300390,varattr=,jobs=,state=free,netload=118831227,gres=,loadave=0.00,ncpus=12,physmem=24600084kb,availmem=31926336kb,totmem=32792076kb,idletime=536271,nusers=1,nsessions=1,sessions=28918,uname=Linux
n016 2.6.32-131.0.15.el6.x86_64 #1 SMP Tue May 10 15:42:40 EDT 2011
x86_64,opsys=linux
     gpus = 0

n017
     state = free
     np = 12
     properties = generic
     ntype = cluster
     status =
rectime=1335300405,varattr=,jobs=,state=free,netload=118973541,gres=,loadave=0.14,ncpus=12,physmem=24600084kb,availmem=31919772kb,totmem=32792076kb,idletime=536297,nusers=1,nsessions=1,sessions=28922,uname=Linux
n017 2.6.32-131.0.15.el6.x86_64 #1 SMP Tue May 10 15:42:40 EDT 2011
x86_64,opsys=linux
     gpus = 0

n018
     state = free
     np = 12
     properties = generic
     ntype = cluster
     status =
rectime=1335300392,varattr=,jobs=,state=free,netload=257644933486,gres=,loadave=0.00,ncpus=12,physmem=24600084kb,availmem=31858760kb,totmem=32792076kb,idletime=536236,nusers=0,nsessions=?
15201,sessions=? 15201,uname=Linux n018 2.6.32-131.0.15.el6.x86_64 #1 SMP
Tue May 10 15:42:40 EDT 2011 x86_64,opsys=linux
     gpus = 0

n019
     state = free
     np = 12
     properties = generic
     ntype = cluster
     status =
rectime=1335300395,varattr=,jobs=,state=free,netload=114280868,gres=,loadave=0.00,ncpus=12,physmem=24600084kb,availmem=31924588kb,totmem=32792076kb,idletime=536265,nusers=0,nsessions=?
15201,sessions=? 15201,uname=Linux n019 2.6.32-131.0.15.el6.x86_64 #1 SMP
Tue May 10 15:42:40 EDT 2011 x86_64,opsys=linux
     gpus = 0

n020
     state = free
     np = 12
     properties = hydro
     ntype = cluster
     status =
rectime=1335300389,varattr=,jobs=,state=free,netload=58243822999,gres=,loadave=0.02,ncpus=12,physmem=24600084kb,availmem=31868648kb,totmem=32792076kb,idletime=536274,nusers=0,nsessions=?
15201,sessions=? 15201,uname=Linux n020 2.6.32-131.0.15.el6.x86_64 #1 SMP
Tue May 10 15:42:40 EDT 2011 x86_64,opsys=linux
     gpus = 0



> >
> > Thanks!
>
> --
> Dr. Axel Kohlmeyer    akohlmey at gmail.com
> http://sites.google.com/site/akohlmey/
>
> Institute for Computational Molecular Science
> Temple University, Philadelphia PA, USA.
> _______________________________________________
> torqueusers mailing list
> torqueusers at supercluster.org
> http://www.supercluster.org/mailman/listinfo/torqueusers
>



-- 
Christina A. Salls
GLERL Computer Group
help.glerl at noaa.gov
Help Desk x2127
Christina.Salls at noaa.gov
Voice Mail 734-741-2446
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.supercluster.org/pipermail/torqueusers/attachments/20120424/3cb89c75/attachment-0001.html 


More information about the torqueusers mailing list