-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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 #3488
Comments
Yes, this is very likely. Probably the OS was fine with a default index size of 100GiB, but rejects the default index size of 500GiB. Hi @newdev8, would you be interested in testing our |
@dureuill Sure! Give me a minute. |
OK great! To get the prototype, you can either use docker or build it from source.
🙏 Please do not use this in production though, it is a prototype If everything goes well with testing, then we'll release these changes in v1.1 |
Ah sorry @newdev8 I gave the wrong prototype name in my previous message. I just fixed it above. |
Thank you so much for trying the prototype and reporting on it, @newdev8 ! Just to make sure, was the issue happening on adding the first index to your Meilisearch instance, or after adding some number of indexes? In v0.30, were you using the (now removed) |
The issue was happening after adding the first index, it was a fresh instance. |
Thank you so much for coming back to us. The information you provided will help us refine the prototype for v1.1! |
this problem also occurs on one of my android |
Hello @xywf221 👋 for my information, how are you obtaining meilisearch binaries for android? Are you compiling them from source? We're not testing android ourselves at the moment, so it would help us if you could maybe try the prototype I linked above and tell us if it resolves the issue for you. In case it doesn't, I'm putting a second prototype out by tomorrow I think. Thank you for the time taken to help us improve meilisearch ❤️ |
hi @dureuill I'm using docker cannot be used for some reason, I don't know anything about |
Hello again @xywf221 I don't have experience with cross-compiling Rust to aarch64, sorry! |
Hello @newdev8, I just released a second prototype (on tag
Thank you for helping make Meilisearch better ❤️ |
Hello @dureuill I've tested your prototype, I can't say if the startup time is faster as both versions start really fast (I would say at the same time). Your prototype does work in my machine. The three lines are: |
Wow, thank you for the tests! I'm glad to learn that startup is still fast, and that it works with this new approach. As you can see from the logs, you have about 350GiB of virtual address space, which is why the v1.0, that opens indexes with a mmap of 500GiB in size, did not work. This new prototype accounts for this by computing the exact "budget" of virtual address space you have, and allocating a part of that to opening indexes. The previous prototype woul open the indexes with very small mmap and resize on the fly, but this came with a heavy performance hit when an index needed resize. Thank you again for the tests, I'm very happy to learn it works for you ❤️ |
I'm happy to test the Meilisearch dev versions and I'll be awaiting the next release! |
Describe the bug
When creating an index in a freshly created Meilisearch instance I get the error
Cannot allocate memory (os error 12)
To Reproduce
Steps to reproduce the behavior:
Expected behavior
As it happens in the previous version of Meilisearch (v0.30.5), it should create an index.
Screenshots
Not applicable
Meilisearch version:
v1.0.0
Additional context
Meilisearch works perfectly fine in the previous version (v0.30.5), but not in the newest one (v1.0.0).
It's a freshly created instance, with no current indexes/documents.
Running on the latest version of DietPi (v8.14.2) on a Raspberry Pi 4b with 8GB of RAM.
The text was updated successfully, but these errors were encountered: