T6484: Smoketest: Increase KVM memory limit #656
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Change Summary
Types of changes
Related Task(s)
https://vyos.dev/T6484
Component(s) name
smoketest
Proposed changes
When running smoketests in the vyos-build container, an error message similar to the following appears:
DEBUG - test_fastnetmon (__main__.TestServiceIDS.test_fastnetmon) ... [ 4213.579433] Out of memory: Killed process 543005 (fastnetmon) total-vm:2301048kB, anon-rss:7432kB, file-rss:1812608kB, shmem-rss:0kB, UID:0 pgtables:3804kB oom_score_adj:0
Further investigation reveals that the KVM created for the smoketests is limited to 3GB of memory. Increasing this to 4GB allows the smoketests to complete and pass.
How to test
Run smoketests with
make test
after building ISO. When the KVM memory limit is set to 3GB, the smoketests will fail asfastnetmon
is OOM killed. When it is set to 4GB, the smoketests pass.Checklist: