Changes to PBS cgroups hook configuration file

Hello, I would like to make changes to the cgroups hook configuration. Specifically set the “ncpus_are_cores” as true (currently false).

I can retrieve the setting with:

$ sudo qmgr -c ‘export hook pbs_cgroups application/x-config default’
{
“cgroup_prefix” : “pbs_jobs”,
“exclude_hosts” : ,
“exclude_vntypes” : [“no_cgroups”],
“run_only_on_hosts” : ,
“periodic_resc_update” : true,
“vnode_per_numa_node” : false,
“online_offlined_nodes” : true,
“use_hyperthreads” : false,
“ncpus_are_cores” : false,

Since I would like to automate this for a cluster creation workflow, I would like to change the configuration via qmgr commandl line but it doesn’t appear to be a configure attribute.

$ sudo qmgr -c ‘set hook pbs_cgroups configuration = “{“ncpus_are_cores”: true,
“use_hyperthreads”: false}”’
qmgr obj=pbs_cgroups svr=default: Undefined attribute - configuration
qmgr: hook error returned from server

This leaves me to edit the /var/spool/pbs/server_priv/hooks/pbs_cgroups.CF file which I would prefer not to do. Does anyone know if there is a qmgr command to get this done? I’m using OpenPBS 23.06.06.

The PBS Cgroups hooks configuration file has to be imported to apply or re-apply the updates made in the configuration via qmgr -c “import hook HOOKNAME applicaiton/x-config default pbs_cgroups.json”. The configuration within the cgroups configuration are not PBS Server attributes, hence these configuration cannot be applied via qmgr , the way we do it for job_history_enable, flatuid or others