Skip to content
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

Removing the check about the size re: ray-project/ray#3450 #3464

Merged

Conversation

devin-petersohn
Copy link
Member

I have opened this in the interest of continuing the discussion here.

What do these changes do?

Removes the check causing #3450

This is important in Modin specifically to allow us to use the disk for plasma.

Related issue number

Resolves #3450

@robertnishihara
Copy link
Collaborator

Please don't merge this. If this happens it is almost always an error.

If we want to allow this then we need to make it's only happening in the case where the user passed in the object store memory and we need to provide a very scary warning.

@devin-petersohn
Copy link
Member Author

I guess we should decide whether users should be responsible for the results of specifying object_store_memory. Was this causing some bugs previously?

I do not think raising a scary warning would be helpful to Modin. Printing the same information that was previously printed would be good enough for our purposes.

@pcmoritz
Copy link
Contributor

pcmoritz commented Dec 4, 2018

I think the right thing to do here is to compare the object_store_memory with the size of the plasma_directory (for /tmp it would be the size of the disk, for /dev/shm it would be the size of the shared memory pool)

@atumanov atumanov assigned atumanov and devin-petersohn and unassigned atumanov Dec 4, 2018
@AmplabJenkins
Copy link

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Ray-PRB/9744/
Test FAILed.

@devin-petersohn
Copy link
Member Author

Updated PR given previous comments.

It is not possible to verify the size of the device that is mounted for the plasma_directory in the general case.

I moved the check inside the condition if plasma_directory is None.

@AmplabJenkins
Copy link

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Ray-PRB/9780/
Test FAILed.

@@ -1028,9 +1028,6 @@ def determine_plasma_store_config(object_store_memory=None,
"when calling ray.init() or ray start.")
object_store_memory = MAX_DEFAULT_MEM

if plasma_directory is not None:
plasma_directory = os.path.abspath(plasma_directory)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why remove this?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Ok, I see you just moved it.

Copy link
Collaborator

@robertnishihara robertnishihara left a comment

Choose a reason for hiding this comment

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

This looks good to me assuming tests pass.

Copy link
Contributor

@pcmoritz pcmoritz left a comment

Choose a reason for hiding this comment

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

fixed lint

@AmplabJenkins
Copy link

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Ray-PRB/9822/
Test FAILed.

@pcmoritz
Copy link
Contributor

pcmoritz commented Dec 6, 2018

jenkins retest this please

@pcmoritz pcmoritz merged commit 970babf into ray-project:master Dec 7, 2018
@AmplabJenkins
Copy link

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Ray-PRB/9827/
Test FAILed.

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.

Allow greater than memory allocation for plasma store on Mac
5 participants