# Need swap usage in qstat -f details

**URL:** <https://community.openpbs.org/t/need-swap-usage-in-qstat-f-details/1485>\
**Category:** Users/Site Administrators\
**Created:** [March 1, 2019, 4:49am UTC](https://community.openpbs.org/t/need-swap-usage-in-qstat-f-details/1485 "2019-03-01T04:49:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![padmaja](https://avatars.discourse-cdn.com/v4/letter/p/e9bcb4/32.png) [@padmaja](https://community.openpbs.org/u/padmaja)\
**Post date:** [March 1, 2019, 4:49am UTC](https://community.openpbs.org/t/need-swap-usage-in-qstat-f-details/1485/1 "2019-03-01T04:49:17Z")

</div>

Hello,

qstat -f shows the mem, cput, cpupercent used by the job. We also need information on the swap space used by the job. Is it possible to configure this so that it can be reported in qstat -f details?

Thanks.

---

<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:** [March 2, 2019, 10:16pm UTC](https://community.openpbs.org/t/need-swap-usage-in-qstat-f-details/1485/2 "2019-03-02T22:16:37Z")

</div>

qstat -f or qstat -fx gives the detailed job information.

mem = actual memory  
vmem = mem + swap (a kind of)

**Ref:** PBS Professional 18.2.3 Installation & Upgrade Guide IG-100  
If you were using vmem at the queue or server level before the upgrade, then after upgrading you must add vmem to the new resource\_unset\_infinite sched\_config option. Otherwise jobs requesting vmem will not run.

If “vmem” is part of the job request, then it will become part of qstat -f or -fx output  
For example: qsub -l select=1:ncpus=1:mem=10gb:vmem=1gb

Otherwise, you can inject available swap and used swap into the job’s data using execjob\_epilogue.

---

<div class="post-metadata">

**Author:** ![padmaja](https://avatars.discourse-cdn.com/v4/letter/p/e9bcb4/32.png) [@padmaja](https://community.openpbs.org/u/padmaja)\
**Post date:** [March 3, 2019, 10:35pm UTC](https://community.openpbs.org/t/need-swap-usage-in-qstat-f-details/1485/3 "2019-03-03T22:35:04Z")

</div>

Hi Adarsh,

Is it possible to inject the swap usage into the jobs’ data on a periodic basis during the job’s run?

Thanks,

---

<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:** [March 4, 2019, 3:36pm UTC](https://community.openpbs.org/t/need-swap-usage-in-qstat-f-details/1485/4 "2019-03-04T15:36:08Z")

</div>

It is possible to inject swap usage upon the completion of the job in the execjob\_epilogue hook.  
I am not sure whether you can inject swap usage while the job is running into the jobs data (displayed in the qstat -f output of the job ).
