Repository navigation
SGECluster docs - #220
SGECluster docs#220
Conversation
guillaumeeb
left a comment
There was a problem hiding this comment.
Just a small proposition of change.
But again, this shall be documented for CPU too, I imagine?
| On systems which use SGE as the scheduler, ``SGECluster`` can be used: | ||
| On systems which use SGE as the scheduler, ``SGECluster`` can be used. | ||
|
|
||
| SGE systems have a lot of flexibility in how they are configured, hence it is not possible to use the ``memory`` keyword argument to automatically specify the amount of RAM used. Instead, you must request for resources according to how your system is configured. |
There was a problem hiding this comment.
"the amount of RAM requested" ?
"Instead, you should specify the resources (...), using the resource_spec kwarg."
There was a problem hiding this comment.
"the amount of RAM requested" ?
Yes! Thank you for the catch.
"Instead, you should specify the resources (...), using the resource_spec kwarg."
Yes again! I will change both.
There was a problem hiding this comment.
Add the link to the distributed doc about dask memory management: http://distributed.dask.org/en/latest/worker.html#memory-management
Yes, I'll add that to the PR. |
| memory='20GB') | ||
| processes=10, # we request 10 processes per worker | ||
| memory='20GB', # for memory requests, this must be specified | ||
| resource_spec='m_mem_free=20G', # for memory requests, this also needs to be specified |
There was a problem hiding this comment.
maybe here or in the text above specify that m_mem_free is scheduler specific and that you should check your cluster doc or ask your sys admin if you are unsure. Also, if that makes sense, adding the most commonly used memory names would be a good idea (from a quick googling) could be a good idea.
This is up to you whether you want to do that in this PR. My feeling is that the CPU is slightly more complicated, so I would be completely fine doing it in a separate PR. My personal bias: I'd rather merge small PRs in a few days rather than having almost-finished bigger PRs lying around for 1-2 weeks ... |
Agreed! |
Understood! Let's keep CPU docs for a different PR then.
Agreed! Let me fix that in the next push. |
|
I pushed some minor tweaks:
|
|
Merging this one, thanks a lot! A PR for CPU would be very welcome if you find the time! |
|
@lesteve thank you for the changes, and for reviewing! Same to you @guillaumeeb, for the reviews! |
This PR closes #219. It adds a docstring update to
SGECluster, and adds a note about memory resource requests in the Examples page.In the limited amount of time that I attempted this PR, I was not able to build the docs locally. Hence, I have no screenshot of whether they render correctly or not. However, if they don't render properly, I am happy to edit the PR further.