add note on lmod cache when loading an EESSI module#731
add note on lmod cache when loading an EESSI module#731smoors wants to merge 1 commit intoEESSI:mainfrom
Conversation
|
@ocaisa Is that the best we can do here? |
|
Ha, I just pinged Alan as well. His words: disabling the cache will be very expensive. @smoors I'm wondering why you are running into this usse. I have the feeling that rather then just disabling the cache, there is an actual issue that should be fixed instead. |
|
I think we need to understand what is going wrong here first, ignoring the cache is very expensive for things like My suspicion would be that there is a user spider cache there for |
there is no local cache in my account, which is only generated if there is no system cache, and we do have a system cache. our Lmod is more recent than the one from EESSI. |
|
Oh, that's worse, now I would really like to know what it is going on. |
|
note that i only have to disable the cache when loading an EESSI module, not when subsequently loading any modules in the EESSI stack. this works perfectly: |
|
This looks relevant: TACC/Lmod#780 , and specifically TACC/Lmod#780 (comment) |
|
I think the less impactful suggestion here is |
that doesn't work for me. i really don't think setting |
|
That may be true, the risk is that people misinterpret and think "you know what, I'll just Also, understanding the issue better will also help us to give more targetted advice. I.e. if it was the issue that Alan linked to, we could give much more concrete advice "if you see XXX and are running with LMOD version YYY or older, either update to version ZZZ or load the EESSI module with ... WARNING: do NOT |
of course, i fully agree! i wasn't suggesting we shouldn't try to fix/understand it better, i was merely responding to Alan's "less impactful" suggestion. |
|
I do think it is pretty likely that someone would export |
|
Just to note, we do have in our module file, which matches what is seen in TACC/Lmod#780 (comment). You could put version protection around that, but it is there for a reason as otherwise a cache will be created/updated for the EESSI paths. If we can find a way to create a cache for |
|
i did some testing and digging. it's an issue with Lmod itself, specifically in the file removing the original cache didn't help, and adding a cache for the EESSI modules didn't help either. |
|
This is a tricky thing to fix or work around. One thing we could do is have the module print a load message for that version range, that's better than doing it in the docs because they can act on it straight away. |
|
Hmm, there may be a way to get the behaviour we would need with |
|
I can't reproduce this, I've tried a few different Lmod versions in the range. |
|
i finally found what's causing this in our site: it's our require("strict")
local cosmic = require("Cosmic"):singleton()
cosmic:assign("LMOD_ADMIN_FILE", "/etc/lmod/admin.list")
cosmic:assign("LMOD_AUTO_SWAP", "no")
cosmic:assign("LMOD_CACHED_LOADS", "yes")
cosmic:assign("LMOD_CASE_INDEPENDENT_SORTING", "yes")
cosmic:assign("LMOD_DISABLE_SAME_NAME_AUTOSWAP", "yes")
cosmic:assign("LMOD_EXTENDED_DEFAULT", "no")
cosmic:assign("LMOD_PACKAGE_PATH", "/etc/lmod")
cosmic:assign("LMOD_PIN_VERSIONS", "yes")
cosmic:assign("LMOD_REDIRECT", "yes")
cosmic:assign("LMOD_SHORT_TIME", 86400)
cosmic:assign("LMOD_SITE_MSG_FILE", "/etc/lmod/lang.lua")
cosmic:assign("LMOD_SITE_NAME", "VUB_HPC")if i comment out the line with |
|
@ocaisa can you try to repro with |
|
Similar behaviour for me (in a way), if I export that variable it seems to have no effect and I can still successfully load the module |
|
No, sorry, I am wrong, this does indeed reproduce the problem |
Uh oh!
There was an error while loading. Please reload this page.