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

Allocate LMDB keys in tcs.Vec object #686

Merged
merged 1 commit into from
Apr 18, 2016

Conversation

gheinrich
Copy link
Contributor

Luajit heap size must be located in the lower 2GB of addressable memory.
There is therefore a limit of 2GB on heap size when using Luajit.
This change moves LMDB keys to a tds.Vec object, where memory does not rely on the Lua allocator.

close #659

Luajit heap size must be located in the lower 2GB of addressable memory.
There is therefore a limit of 2GB on heap size when using Luajit.
This change moves LMDB keys to a tds.Vec object, where memory does not rely on the Lua allocator.

close NVIDIA#659
@TimZaman
Copy link
Contributor

TimZaman commented Apr 17, 2016

Don't pull this in yet, see #687 ; for me luajit gobbles up all the cpu resources it can for no obvious reason. edit: it seems luajit also gobbles up the cpu resources with tds off

@gheinrich
Copy link
Contributor Author

From #687 (comment)

you have definitely solved the memory issue by using tds, that's for sure, and that one can be merged i think.

@gheinrich gheinrich merged commit 76b3668 into NVIDIA:master Apr 18, 2016
@lukeyeager
Copy link
Member

lukeyeager commented Apr 18, 2016

Hmm, this breaks compatibility with the latest packaged version of Torch. Is there any way to fall back to a normal array in case tds isn't loaded?

EDIT As I'm reading more about this issue, maybe we should just let it fail? Sounds like not having tds is bad news.

@TimZaman
Copy link
Contributor

TimZaman commented Apr 18, 2016

On the other hand, it shouldn't be difficult, it's just a one-liner really:
local Keys = tds.Vec()
should be ye old
local Keys = {}
when tds isnt loaded

@gheinrich gheinrich deleted the dev/torch-lmddb-key-memory branch May 24, 2016 11:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Torch + LMDB, not enough memory
3 participants