-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
add uses a lot of ram and cpu #1222
Comments
the RAM usage is primarily because we allocate memory for ever file read in, and while it does get 'released' the gc is slower than the allocator, causing large portions of your available RAM to be eaten. This can be helped by having a buffer pool like we do in go-msgio. I havent noticed much CPU usage while testing, but as we get closer to the ~200MB/s limit of sha256 hashing, i beleive we will start cranking that. The primary bottleneck right now as far as time though, is the datastore, we do directory syncs for every write and this slows us down a lot. If we could batch together multiple writes, it would save us a lot of time. |
This bug is particularly bad on a smaller VPS, where |
Add has been improved significantly since this. I'm gonna call it closed, open new issues for new add perf issues |
an add operation on one of my servers (single core, 1GB ram) is taking all the CPU up, and as much ram as it can eat. watching memory usage from expvarmon, i see it allocating large amounts of memory, then running a GC, over and over again.
I suspect some of this is eventlog, i saw similar behaviour in bitswap due to eventlog, i will take a look at some profiles and try to get more info.
The text was updated successfully, but these errors were encountered: