-
Notifications
You must be signed in to change notification settings - Fork 591
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
Allow to override the 1:1 ratio between Xmx & off-heap amounts #365
Conversation
I thought we could apply this to Runtime.getRuntime().maxMemory(), wouldn't that make more sense? |
Simplifying like that you mean? It does make more sense. |
And let's do the same for the second |
Sure. I put that operation in a variable named |
What about documentation, should we update the page on memory management by adding the following under Configuring Memory Limit?
|
I'm sorry, this doesn't actually work well. If we set Yes, we should also update DL4J's documentation there once we're done: https://github.com/eclipse/deeplearning4j/blob/master/docs/deeplearning4j/templates/config-memory.md |
Totally. Sorry about that, I'll get it fixed ASAP and submit a separate PR for documentation. |
OK, I've upgraded the PR so that:
Would result in:
|
I still feel this is more complexity than users should be dealing with though. Is a value like "0.1" parsed into I think I've just had an idea about a much cleaner way to deal with that. What about adding a new "unit" like |
I like that better indeed. Something like this?
|
Yes, that's how I see it. Inside that method |
I've updated the code accordingly and pushed it. I'm more concerned about tests, though. Even on master they are mostly failing on my machine. And even if they weren't, they look like black magic to me. Would you mind giving me a hand there? |
Yes, I know, it just didn't get added here like elsewhere for some reason: |
As discussed in deeplearning4j/deeplearning4j#8435