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

Cannot allocate memory Failed to allocate when using build_binary #425

Open
amitliron opened this issue Mar 20, 2023 · 0 comments
Open

Cannot allocate memory Failed to allocate when using build_binary #425

amitliron opened this issue Mar 20, 2023 · 0 comments

Comments

@amitliron
Copy link

I have a arpa file which I created by the following command:

./lmplz -o 4 -S 1G <tmp_100M.txt >100m.arpa

Now I want to convert this arpa file to binary file:
./build_binary 100m.arpa 100m.bin

And I'm getting error:

mmap.cc:225 in void util::HugeMalloc(std::size_t, bool, util::scoped_memory&) threw ErrnoException because `!to.get()'.
Cannot allocate memory Failed to allocate 106122412848 bytes Byte: 80
ERROR

I tried to add -S parameter:
./build_binary -S 1G 100m.arpa 100m.bin
and I got the same error.

  1. How can I convert to binary file ?
  2. Why I'm getting this error ?
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

No branches or pull requests

1 participant