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
Extend OARCluster implementation to let OAR take into account the memory parameter #595
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left a few comments on details, but in the general principle this looks good to me! I don't see any blocker to have this in, especially if it can ease the use of dask-jobqueue on OAR based clusters!
Thanks a lot for the your quick review! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @ychiat35, this looks good to me!
A bit late to the party, sorry! Here are the few comments I had, this would be very welcome if they could be tackled in a further PR:
More questions (not related to this PR in particular but to OAR support more generally):
|
Thanks @lesteve for your comments! Please find my commit in #598
By the way, the OAR clusters that I use are Grid5000 and igrida :) |
Yep I missed it somehow, thanks! |
Following the issue #594 , we propose an extension of the existing OARCluster implementation to let OAR take into account the memory parameter.
The OAR scheduler does not deal with memory internally. Indeed, by default it is not possible to indicate to OAR to reserve a specific amount if memory on the wanted computing resources (e.g., one core with 256 GB memory). However, it is possible to leverage from OAR resource properties to ensure that the wanted resources have at least the wanted amount of memory.
Since the OAR property names are not standardized by OAR, their names might differ from one cluster to another. Consequently, we introduce a new parameter in OARCluster class:
oar_mem_core_property_name
. It lets users specify the name of the memory property of their own OAR cluster. This property will be used by adding a new#OAR -p
line to the OAR submission. If the parameter is not used or set to None, our modification does not modify the current behavior of the OARCluster class, but users will be warned that the memory parameter will not be taken into account by OAR.