Skip to content

SGECluster docs - #220

Merged
lesteve merged 5 commits into
dask:masterfrom
ericmjl:sgecluster-docs
Jan 18, 2019
Merged

lesteve merged 5 commits into
dask:masterfrom
ericmjl:sgecluster-docs

Conversation

@ericmjl

@ericmjl ericmjl commented Jan 15, 2019

Copy link
Copy Markdown
Contributor

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.

@ericmjl ericmjl changed the title Sgecluster docs SGECluster docs Jan 15, 2019

@guillaumeeb guillaumeeb left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a small proposition of change.

But again, this shall be documented for CPU too, I imagine?

Comment thread docs/source/examples.rst Outdated
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.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"the amount of RAM requested" ?
"Instead, you should specify the resources (...), using the resource_spec kwarg."

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@guillaumeeb:

"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.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ericmjl

ericmjl commented Jan 16, 2019

Copy link
Copy Markdown
Contributor Author

But again, this shall be documented for CPU too, I imagine?

Yes, I'll add that to the PR.

Comment thread docs/source/examples.rst
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

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@lesteve

lesteve commented Jan 17, 2019

Copy link
Copy Markdown
Member

But again, this shall be documented for CPU too, I imagine?

Yes, I'll add that to the PR.

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 ...

@guillaumeeb

Copy link
Copy Markdown
Member

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!

@ericmjl

ericmjl commented Jan 17, 2019

Copy link
Copy Markdown
Contributor Author

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 ...

Understood! Let's keep CPU docs for a different PR then.

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.

Agreed! Let me fix that in the next push.

@lesteve

lesteve commented Jan 18, 2019

Copy link
Copy Markdown
Member

I pushed some minor tweaks:

  • breaking long lines
  • using mem_req rather than h_vmem. My understanding is that h_vmem is virtual memory so I think it confuses matter. On my cluster, using PyTorch h_vmem needs to be set way higher than mem_req (probaby because of CUDA uniform memory but also maybe because PyTorch is doing some memmapping on import)

@lesteve

lesteve commented Jan 18, 2019

Copy link
Copy Markdown
Member

Merging this one, thanks a lot! A PR for CPU would be very welcome if you find the time!

@lesteve
lesteve merged commit 850ea74 into dask:master Jan 18, 2019
@ericmjl

ericmjl commented Jan 18, 2019

Copy link
Copy Markdown
Contributor Author

@lesteve thank you for the changes, and for reviewing! Same to you @guillaumeeb, for the reviews!

@ericmjl
ericmjl deleted the sgecluster-docs branch January 18, 2019 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Memory specification on SGECluster

3 participants