-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
scripts/lbnl_hw.nhc: nhc_hw_gather_data is slow at parsing /proc/cpuinfo #149
Comments
We have similar nodes, and NHC is somewhat faster: time nhcreal 0m3.018s OS: Rocky Linux 8.9 (Green Obsidian) |
This is running on a IDLE node where CPUs are set to powersave |
This is a problem on this given site because CPU throttling when a power supply is lost makes slurm draining the node :
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
on a cluster that I have installed for a client, the function
nhc_hw_gather_data()
spends a lot of time parsing/proc/cpuinfo
.With the proposed patch, the time is now reduced by a factor of 5+
The patch works by caching the content of
/proc/cpuinfo
in a local variableInformations :
0001-Makes-proc-cpuinfo-parsing-faster-by-caching-the-con.patch
The text was updated successfully, but these errors were encountered: