The Siemens Community Catalyst program was co-created with our community to acknowledge technology leaders who consistently contribute to the Siemens Community. Nominations are accepted on a rolling basis.
When I use "qstat -a" or "qstat -f", I can get the cputime information, but is it possible to get in detail about kernel and user mode cputime?
Maybe I have to modify the "cgroup hook" script?Thank you.
Hi Luqman,
The cputime reported in qstat is user plus system cputime. There is no way to breakdown this reported cputime into user and system in qstat.
Hi Jake,
Thanks for the reply.As you said, seems like qstat cannot breakdown the cputime. However, it was possible to modify the cgroup hook script (pbs_cgroups.PY) and make it gathers the information from cgroup's cpuacct_user and cpuacct_sys. The result will be displayed inside the log files, or you check it using **tracejob <job_id>** command. I don't care even if it is not from qstat.```# tracejob 50[...]02/19/2024 17:29:36 M update_job_usage: CPU percent: 7002/19/2024 17:29:36 M update_job_usage: CPU usage: 29.934 secs02/19/2024 17:29:36 M update_job_usage: CPU usage_sys: 29.851 secs02/19/2024 17:29:36 M update_job_usage: CPU usage_user: 0.084 secs02/19/2024 17:29:36 M update_job_usage: Memory usage: mem=1892kb[...]```
However, seems like the pbs_cgroups.PY only works with cgroupv1, and it will not work with cgroupv2. Would be appreciated if there is a cgroup hook script for cgroupv2.
I am glad you were able to retrieve the information you needed.
As you have noticed, there is only support for cgroupv1. However, thank you for your feedback here.
As of February 2024, for distro that has started using the cgroupv2 (RHEL9, Ubuntu 22.04, etc), you need to change it to cgroupv1. (Reference: https://access.redhat.com/documentation/ja-jp/red_hat_enterprise_linux/9/html/managing_monitoring_and_updating_the_kernel/proc_mounting-cgroups-v1_assembly_using-cgroupfs-to-manually-manage-cgroups). The hook is executed using pbs_python command, and it you build it using python3.10 and above, the hook will not work. They are still working on how to make python3.10 and above supportable. So, right now, python3.9 is recommended.
The upcoming release of PBS Professional in 2024 would have support for CgroupsV2.Once the Cgroupsv2 supported version of PBS Professional is released, we will update this channel.
Join us for a community conversation on how High-Performance Computing (HPC) and Simcenter PSIM work together to meet the increasing demands of modern power electronics simulation. During this one-hour technical session, you'll discover how leveraging HPC can speed up simulations, improve scalability, and empower engineers…
Join us for a community conversation on accelerating your motor simulation workflow with Simcenter Simlab. In this beginner-friendly session, we'll introduce the platform's automated model-building capabilities and show how easy it is to set up your first electric motor analysis. You'll see the basic steps of geometry…
Join us for a Community Conversation where we'll discuss practical approaches to analyzing complex electromagnetic models using hybrid solver techniques. This session will provide a general overview of how different computational methods can be combined within a single simulation to address models containing varied…