Visitar URL original
Use io.CopyN with 4MiB buffer everywhere by stgraber · Pull Request #3192 · lxc/incus · GitHub
Skip to content

Use io.CopyN with 4MiB buffer everywhere - #3192

Merged
stgraber merged 19 commits into
lxc:mainfrom
stgraber:main
Apr 18, 2026
Merged

stgraber merged 19 commits into
lxc:mainfrom
stgraber:main

Conversation

@stgraber

Copy link
Copy Markdown
Member

This prevents us from ever holding more than 4MiB of data in memory when relaying data between network connections or between network and files. That should help stabilize the memory footprint of incusd when running on busy systems.

stgraber added 19 commits April 18, 2026 15:42
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
@stgraber
stgraber merged commit b368185 into lxc:main Apr 18, 2026
249 of 264 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants