You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
LSF scheduler seems to have redundant memory keyword #205
It looks like specifying the lsf scheduler requires two memory keywords (mem, and memory). Should mem on the LSF scheduler be turned into memory so that it lines up with other schedulers and the core object?
Historically, the memory keyword was for the dask-worker command --memory-limit option. Now it is the overall memory that should be used by all the dask worker processes. In default cases in most dask-jobqueue systems implementations, it is also used as the memory reservation for the scheduler. But in every implementations, you have either a resource_spec, job_mem, mem kwarg that can be used to override this value if the user wants to, but you can leave it as None.
We discussed leaving or not the duplicated ncpus or mem kwarg in #82 or more recently in #172 (comment), and maybe in #181 too.
I'm still undecided on this, especially for the memory kwarg. It seems unlikely that a user wants to have a different reservation that what it uses on dask_side. And in this case, maybe he could implement it with job_extra kwarg.
Okay, I don't have a strong preference either way except that I got a little confused.
Also I assume we would want the input form for the two to match (Using unit in the name as a string, vs passing an int for memory). To update this I assume we'd want to test the type for an int or str on mem keyword and do the conversion that way so as to not break previously existing scripts? Or would you rather it is just updated for both to take a str?
Hm, I think it would be a minor breaking change and not impact a lot of people. I'd be more in favor of just update mem to be a string, and update the code using it.
Activity
josephhardinee commentedon Nov 27, 2018
Also it appears that memory should be of form '24 GB', but mem need to be passed as an integer number of bytes.
guillaumeeb commentedon Nov 27, 2018
Historically, the memory keyword was for the
dask-workercommand--memory-limitoption. Now it is the overall memory that should be used by all the dask worker processes. In default cases in most dask-jobqueue systems implementations, it is also used as the memory reservation for the scheduler. But in every implementations, you have either aresource_spec,job_mem,memkwarg that can be used to override this value if the user wants to, but you can leave it as None.We discussed leaving or not the duplicated ncpus or mem kwarg in #82 or more recently in #172 (comment), and maybe in #181 too.
I'm still undecided on this, especially for the memory kwarg. It seems unlikely that a user wants to have a different reservation that what it uses on dask_side. And in this case, maybe he could implement it with
job_extrakwarg.josephhardinee commentedon Nov 27, 2018
Okay, I don't have a strong preference either way except that I got a little confused.
Also I assume we would want the input form for the two to match (Using unit in the name as a string, vs passing an int for memory). To update this I assume we'd want to test the type for an int or str on mem keyword and do the conversion that way so as to not break previously existing scripts? Or would you rather it is just updated for both to take a str?
guillaumeeb commentedon Nov 27, 2018
Hm, I think it would be a minor breaking change and not impact a lot of people. I'd be more in favor of just update
memto be a string, and update the code using it.guillaumeeb commentedon Aug 30, 2022
I think we can do two things to clarify this:
job_.