# How to local pbs\_cgroups.CF (host specific cgroups settings)

**URL:** <https://community.openpbs.org/t/how-to-local-pbs-cgroups-cf-host-specific-cgroups-settings/1982>\
**Category:** Users/Site Administrators\
**Created:** [January 31, 2020, 1:47pm UTC](https://community.openpbs.org/t/how-to-local-pbs-cgroups-cf-host-specific-cgroups-settings/1982 "2020-01-31T13:47:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sge](https://avatars.discourse-cdn.com/v4/letter/s/67e7ee/32.png) [@sge](https://community.openpbs.org/u/sge)\
**Post date:** [January 31, 2020, 1:47pm UTC](https://community.openpbs.org/t/how-to-local-pbs-cgroups-cf-host-specific-cgroups-settings/1982/1 "2020-01-31T13:47:24Z")

</div>

Dear everyone,

I am currently trying to set PBS to read host specific pbs\_cgroups.CF to discriminate mem and cpu reservations on office machines, i.e. potentially used by users, and empty machines.\*

While modifying the local pbs\_cgroups.CF of a MoM is straight forward and will set the proper resources\_available (pbsnodes ), all changes are lost upon restarting the PBS server. This is unsufficient as I need a solution that is not lost upon a restart of the pbs server.

Trying a bunch of things my last effort was to rewrite the python script pbs\_cgroups.PY such that the hook searches for a custom (hostname specific) configuration file. While the hook reports to read the file on the MoM, the resulting “resources\_available” are not affect… Somewhere the settings from pbs\_cgroups.PY are overwritten…

Any help is appriciated,  
Sascha

\*Lets say i want to exclude one cpu and reserve 2gb of ram for common office tasks, such that jobs running are not slowed down, as a result of their high nice levels.

---

<div class="post-metadata">

**Author:** ![mkaro](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.openpbs.org/mkaro/32/85_2.png) [@mkaro](https://community.openpbs.org/u/mkaro)\
**Post date:** [January 31, 2020, 7:47pm UTC](https://community.openpbs.org/t/how-to-local-pbs-cgroups-cf-host-specific-cgroups-settings/1982/2 "2020-01-31T19:47:17Z")

</div>

We are currently working on a solution for what you described. The pull request is under review here:

> <https://github.com/PBSPro/pbspro/pull/1487>
