# Host utilisation

**URL:** <https://community.openpbs.org/t/host-utilisation/960>\
**Category:** Users/Site Administrators\
**Created:** [April 24, 2018, 11:39pm UTC](https://community.openpbs.org/t/host-utilisation/960 "2018-04-24T23:39:50Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![jon](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.openpbs.org/jon/32/23_2.png) [@jon](https://community.openpbs.org/u/jon)\
**Post date:** [April 26, 2018, 4:37pm UTC](https://community.openpbs.org/t/host-utilisation/960/2 "2018-04-26T16:37:57Z")

</div>

PBS does not track this information. This particular information is more node specific and not job specific. If you would like this information then you can create a exechost\_periodic hook that collects these values and then assigns them to custom resources that get assigned to the nodes. For example you could create 3 custom resources in qmgr

qmgr -c “create resource r15s r1m r15m type=float,flag=h”

then create a periodic mom hook like this.

import pbs  
import sys  
import os  
load = os.getloadavg()  
r1m = load[0]  
r5m = load[1]  
r15m = load[2]  
e = pbs.event()  
mynode = pbs.get\_local\_nodename()  
v = e.vnode\_list[mynode]  
v.resources\_available[“r1m”] = r1m  
v.resources\_available[“r5m”] = r5m  
v.resources\_available[“r15m”] = r15m  
pbs.logmsg(pbs.LOG\_DEBUG,“getloadavg: vnode %s, r1m = %f, r5m = %f, r15m = %f” % (repr(mynode), r1m, r5m, r15m))

Then import the periodic hook and you should start to see these values on the nodes for the users.

---

_[View the full topic](https://community.openpbs.org/t/host-utilisation/960)._
