Skip to content
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

[QA] Determine memory requirements for the antivirus service #10549

Open
mmattel opened this issue Nov 12, 2024 · 0 comments
Open

[QA] Determine memory requirements for the antivirus service #10549

mmattel opened this issue Nov 12, 2024 · 0 comments

Comments

@mmattel
Copy link
Contributor

mmattel commented Nov 12, 2024

References: #6803 (antivirus seems to keep files in memory)

With the comment from @wkloucek, we should consider implementing an own QA to determine the memory requirements necessary for different cases and settings for the antivirus service.

Because AV is crucial in production, any service blockage is impacting negatively.

The information about antivirus memory requirements is important for devs and admins and heavily depends on settings of ANTIVIRUS_WORKERS, ANTIVIRUS_MAX_SCAN_SIZE and GOMEMLIMIT.

Quote

What I tried with ANTIVIRUS_WORKERS == 1:

-> 700M memory for 50MB file -> factor 14
-> 7000M memory for 844MB file -> factor 8,3

This means you probably need to set memory limit = max file size x workers x factor 8 - 14. Even though that also depends on the GOMEMLIMIT you set.

The above is just guesswork. If you want to document the product capabilities, I think this needs to be tested and not guessed.

@ScharfViktor @kobergj

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

No branches or pull requests

1 participant