Hi,
i am using exclhost for every jobs , if jobs running on 1 or 2 cpus i am making node exclusive for jobs so rest of the cpus is idle
my question is can we make any setting in pbs server for node exclusive , means if i am using 1 or 2 ncpus in jobs but node is exclusive so i need to make accounting log should make entry for 32 cpus in use , it means full node use , i need to charge customer for full node not only 1 or 2 cpus
Hi Adarsh,
if user used to submit 2 ncpus jobs and pbs hook will given j.resources_used[“ncpus”] = 32 so that user jobs will run only in 2 ncpus or it will run on 32 cpus
i only need to make entry in PBS accounting for 32 cpus but job should run on 2 cpus
The job will run on 2 ncpus only.
execjob_epilog hook runs after the job script has executed and hence only updates the ncpus=32, so your accounting logs has the entry 32 ncpus instead 2 ncpus
Thats correct, the hook will make sure that entry is made in the accounting logs.