Skip to content

lower memory and cpu usage - #100

Closed
matthyx wants to merge 6 commits into
mainfrom
memfix
Closed

matthyx wants to merge 6 commits into
mainfrom
memfix

Conversation

@matthyx

@matthyx matthyx commented Jul 22, 2023

Copy link
Copy Markdown
Contributor

This code can handle 10 burn-with-file-workers.
I think you might want to increate a bit GOMEMLIMIT, I did some tests at 600MiB but it might work at 400 too...
edit: after a while the GC cannot freeze enough memory and we throttle again the CPU.

The next optimization would be to remove the workerpool and use our own implementation of a pool, because it seems queueing funcs is more memory intensive than just putting strings...

matthyx added 6 commits July 20, 2023 23:17
Signed-off-by: Matthias Bertschy <matthias.bertschy@gmail.com>
Signed-off-by: Matthias Bertschy <matthias.bertschy@gmail.com>
Signed-off-by: Matthias Bertschy <matthias.bertschy@gmail.com>
Signed-off-by: Matthias Bertschy <matthias.bertschy@gmail.com>
Signed-off-by: Matthias Bertschy <matthias.bertschy@gmail.com>
Signed-off-by: Matthias Bertschy <matthias.bertschy@gmail.com>
@matthyx
matthyx requested a review from dwertent July 22, 2023 16:10
@github-actions

Copy link
Copy Markdown

Summary:

  • License scan: success
  • Credentials scan: success
  • Vulnerabilities scan: success
  • Unit test: success
  • Go linting: success

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

Successfully merging this pull request may close these issues.

1 participant