-
-
Notifications
You must be signed in to change notification settings - Fork 578
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
Memory allocation while indexing data #291
Comments
Also I had an issue getting the amount of data inside the sonic. How can I get that? Cause sonic has no API for getting the volume size. Is it just using commands like |
The allocator frees its memory, it’s just not given back to the system. In this case you should restart Sonic. This only occurs at import with a certain import speed that’s high. |
On the total data size, yes, you should use regular filesystem commands to check that. Sonic doesn’t provide anything to get the total size. |
Thanks for your answering Valerain, |
Sonic only uses this directory to store its data. You can expect everything to be stored in this single folder. It should contain a kv and a fst folder. |
Try to check how many clients are connected during ingesting. telnet ::1 1491
START control <PASSWORD>
INFO
QUIT It will print something like this: RESULT uptime(33270) clients_connected(35) commands_total(437461) command_latency_best(1) command_latency_worst(490) kv_open_count(0) fst_open_count(0) fst_consolidate_count(0) |
Hi @valeriansaliou ,
I had a great experience while using sonic, but the point is while indexing lots of data into sonic, the RAM usage will grow which is so ratinale. After finishing the indexing the RAM usage won't decrease as it is like sonic holds the memory. Would you have any suggestion for that?
PS: As I delete the container and recreate it the memory usage will be about 5 MBs
The text was updated successfully, but these errors were encountered: