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.