Replies: 1 comment 9 replies
-
If there is no content-size there is no way it can know that it will not need the full window will not be needed. It allocates 1MB more so it doesn't have to continually move the window. I don't know where the rest is going. Setting the max window will not really do anything, since it only is a check for the max window size. Similar for max memory only restricts the output size. My main recommendation would be to just stick to the max 8MB window size when encoding. The bigger window really doesn't gain you much. Probably |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am trying to understand the reasons for high memory usage when decompressing within u-root.
I see that the decompression of a 15MB Linux kernel (resulting in a 66MB decompressed output) allocates 467 MB of Go memory.
The detected WindowSize by is 128MB and even enforcing the following results in the same figures:
I am not sure if this is a leak, bug or intended memory allocation.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions