You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So far so good, but htop reports that 5789 MB residential memory is in use. In case something is freed after the iteration has finished, I modified the code a bit:
When doing that, htop reports a residential memory usage of 23 MB. That is what makes me believe that it's Next() that is causing the high memory usage.
I have dug into the code, trying to find the cause, but I am not able to find anything myself. I realize that this can be caused by lack of knowledge from my side, too.
Any ideas what this could be?
Details:
OS: openSUSE Tumbleweed 20240918
Kernel: Linux 6.10.9-1-default
Architecture: x86-64
Go version: go1.23.0 linux/amd64
The text was updated successfully, but these errors were encountered:
I've created a rather large database of 5.9 GiB. And then I run this code:
So far so good, but
htop
reports that 5789 MB residential memory is in use. In case something is freed after the iteration has finished, I modified the code a bit:But the
Sys
memory never exceeds 12 MiB.As a test I limited the iteration to 1000 entries:
When doing that,
htop
reports a residential memory usage of 23 MB. That is what makes me believe that it'sNext()
that is causing the high memory usage.I have dug into the code, trying to find the cause, but I am not able to find anything myself. I realize that this can be caused by lack of knowledge from my side, too.
Any ideas what this could be?
Details:
The text was updated successfully, but these errors were encountered: