Skip to content
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

Too many calls to "module use ..." #1661

Closed
ocaisa opened this issue Mar 9, 2016 · 6 comments · Fixed by #1735
Closed

Too many calls to "module use ..." #1661

ocaisa opened this issue Mar 9, 2016 · 6 comments · Fixed by #1735
Milestone

Comments

@ocaisa
Copy link
Member

ocaisa commented Mar 9, 2016

During a dry run of Qt I did a debug log and counted over 1100 calls to module use with a HMNS...and the eb command took 3.5 minutes to complete. With a flat naming scheme it was still almost 700 calls and 2.7 minutes. I'm pretty sure that this is because module use is pretty expensive for lmod.

Can we reduce the number of calls? Or configure our lmod use so that it's not so expensive? Thoughts @boegel @wpoely86 @rtmclay ?

@ocaisa ocaisa changed the title Too many instances of "module use ..." Too many calls to "module use ..." Mar 9, 2016
@wpoely86
Copy link
Member

wpoely86 commented Mar 9, 2016

Yeah, I see exactly the same: building Perl (+extensions) takes 4-5 hours because of excessive calls to Lmod.

@boegel boegel added this to the v2.8.0 milestone Mar 15, 2016
@boegel
Copy link
Member

boegel commented Mar 31, 2016

The stats collected in #946 (comment) help with confirming that there's way too many use calls...

I hope to chase this down really soon.

@pescobar
Copy link
Member

I have also experienced this issue. When having many modules just launching easybuild to install a new easyconfig takes minutes.

@boegel
Copy link
Member

boegel commented Apr 13, 2016

OK, I just spent some time on hunting this down. Here's the bottom line:

Possible solutions:

  • cache output of --version (since it's not going to change)
  • avoid calling modules_tool over and over again; exactly once per installation and passing around the instance should be sufficient
  • avoid blindly calling use over and over again to make sure $MODULEPATH is what it should be; at the very least, we should check whether $MODULEPATH is already what it should be, and just skip the use calls in case it is (it's likely the skipping can be done quite often)

The combination of all of the above should result in a fix for the reported issue...

I'll look into this, hopefully very soon.

@boegel
Copy link
Member

boegel commented Apr 22, 2016

should be fixed by #1735
@ocaisa please test?

@boegel
Copy link
Member

boegel commented Apr 27, 2016

fix in #1735 confirmed

@boegel boegel closed this as completed Apr 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants