-
Notifications
You must be signed in to change notification settings - Fork 113
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
Improve performance when loading a given module with numerous alternative versions or non-modulefile #561
Comments
Additional ideas come up on the mailing-list regarding this issue: new modulefile commands may be introduced to define the path pattern to ignore or to only take into account. A new In the issue described on the mailing-list, modulefiles are a few files among large amount of other kind of files (installed software files). In this case another command may be useful, Preferably, such commands should be set in the top If user mentions a file that matches a
|
I really like where this is heading. My main hurdle of using Lmod is that it's so slow compared to env-modules. If the overhead gets the same in both its would be really annoying IMHO. Another approach could be to build the names of the modules, only based on file-names. Then when loading, only those files that get loaded are actually sourced. |
One use case for the ignore/only feature:
Additional design information:
|
Another feature idea comes up on the mailing-list: defining the file extension of the Tcl modulefile to take into account. Like if |
At some point this issue may be refined/splited as 3 different feature ideas are expressed:
|
Additional benchmark information:
Such use case may be improved by working on the optimize direct access to a version file part |
do you try your test on a nfs mount or a local disk ? |
@cdorbell2 This is an input received on the mailing-list. I am able to reproduce somehow this performance on a local SSD as described on #564 (but not the exactly the same magnitude). |
As a follow-up to a discussion on the modules-interest mailing-list, bad performance is observed on
module load
when targeting a qualified name/version module if the modpath/name directory contains:The ancient 3.2 version of Modules was not affected by such performance issue as only the specified modulefile were analyzed. Newer version of modules evaluate all files within modpath/name directory to correctly fetch all symbols applying to the specified modulefile.
Introducing an option to avoid looking at other files next to specified modulefile is interesting to restore performance similar to version 3.2 on setup where modulefiles are mixed with a large amount of versions for same module and non-modulefiles.
The text was updated successfully, but these errors were encountered: