# CPU and Mem usage info for end user - postscripts?

**URL:** <https://community.openpbs.org/t/cpu-and-mem-usage-info-for-end-user-postscripts/2001>\
**Category:** Users/Site Administrators\
**Created:** [February 12, 2020, 10:18pm UTC](https://community.openpbs.org/t/cpu-and-mem-usage-info-for-end-user-postscripts/2001 "2020-02-12T22:18:19Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![adarsh](https://avatars.discourse-cdn.com/v4/letter/a/f07891/32.png) [@adarsh](https://community.openpbs.org/u/adarsh)\
**Post date:** [February 13, 2020, 4:01pm UTC](https://community.openpbs.org/t/cpu-and-mem-usage-info-for-end-user-postscripts/2001/3 "2020-02-13T16:01:10Z")

</div>

> [@datakid](#):
>
> I presume I’m going to have to script this myself. Does PBS have postscript functionality?

> [@Design a Hook to monitor the Resources utilized by a Job](http://community.openpbs.org/t/design-a-hook-to-monitor-the-resources-utilized-by-a-job/1384/8):
>
> Please try the below as execjob\_epilogue hook: f=open(’/tmp/abc.txt’, ‘w+’) f.write("======================================================================================\n\n\t\t\tResource Usage on %s:\n\nJobId: %s \n\tJob\_Name = %s \n\tJob\_Owner = %s \n\tresource\_used.cpupercent = %s \n\tresource\_used.cput = %s \n\tresources\_used.mem = %s \n\tresources\_used.ncpus = %s \n\tresources\_used.vmem = %s \n\tresources\_used.walltime = %s \n\tqueue = %s \n\tserver = %s \n\tAccount\_Name = %s \n\tError…

> [@datakid](#):
>
> Also, what does resources\_used.mem measure - avg over cput or max over cput?

---

_[View the full topic](https://community.openpbs.org/t/cpu-and-mem-usage-info-for-end-user-postscripts/2001)._
