-
Notifications
You must be signed in to change notification settings - Fork 2.1k
[feature/pcie] feat: add swiotlb=noforce to default kernel command line #5336
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
[feature/pcie] feat: add swiotlb=noforce to default kernel command line #5336
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## feature/pcie #5336 +/- ##
=============================================
Coverage 80.36% 80.36%
=============================================
Files 265 265
Lines 30828 30828
=============================================
Hits 24775 24775
Misses 6053 6053
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
384403e
to
fdc9b4e
Compare
Since the problem is specifically swiotlb, maybe |
All of the mentions I saw in the kernel are about
Also, the definition of
|
I just noticed from the A/B test run that ARM didn't improve. I may have to look better at it (and maybe use |
fdc9b4e
to
22e0fca
Compare
|
swiotlb=noforce disables SWIOTLB, which is enabled by the kernel if the physical addresses exceed 32b. This is not needed for us and causes 64MB to be wasted on the microvm. Signed-off-by: Riccardo Mancini <[email protected]>
22e0fca
to
9b892fb
Compare
c2e4088
into
firecracker-microvm:feature/pcie
Changes
Add
iommu=off
to the default command line to disable SWIOTLB.Reason
The kernel enables SWIOTLB when the physical address range exceeds 32b, which ends up wasting 64MB of the VM memory, which translates to higher RSS.
License Acceptance
By submitting this pull request, I confirm that my contribution is made under
the terms of the Apache 2.0 license. For more information on following Developer
Certificate of Origin and signing off your commits, please check
CONTRIBUTING.md
.PR Checklist
tools/devtool checkbuild --all
to verify that the PR passesbuild checks on all supported architectures.
tools/devtool checkstyle
to verify that the PR passes theautomated style checks.
how they are solving the problem in a clear and encompassing way.
in the PR.
CHANGELOG.md
.Runbook for Firecracker API changes.
integration tests.
TODO
.rust-vmm
.