| commit | bbbf926c0cf5b4ecab6aa9ac870f8f5edc536d14 | [log] [tgz] |
|---|---|---|
| author | Frederick Mayle <fmayle@google.com> | Tue Sep 09 16:26:13 2025 -0700 |
| committer | Frederick Mayle <fmayle@google.com> | Tue Sep 09 16:32:54 2025 -0700 |
| tree | 8fae9a9fd5e2b097ca85142b0241405bc019e53f | |
| parent | 8fb4697bd6b66596c5a9f73015208a8ab287f329 [diff] |
testMinimumRequiredRAM: measure RSS instead of requested RAM
The requested RAM size is misleading because AVF automatically adds
protected VM overheads to the total, including the pvmfw region and
swiotlb.
Before:
[3/6] com.android.microdroid.benchmark.MicrodroidBenchmarks#testMinimumRequiredRAM[protectedVm=true,os=microdroid]: PASSED (22.647s)
avf_perf[hwrev_a0]/microdroid/minimum_required_memory: 32
[4/6] com.android.microdroid.benchmark.MicrodroidBenchmarks#testMinimumRequiredRAM[protectedVm=false,os=microdroid]: PASSED (44.754s)
avf_perf[hwrev_a0]/microdroid/minimum_required_memory: 35
After:
[3/6] com.android.microdroid.benchmark.MicrodroidBenchmarks#testMinimumRequiredRAM[protectedVm=true,os=microdroid]: PASSED (25.834s)
avf_perf[hwrev_a0]/microdroid/minimum_required_memory: 42
[4/6] com.android.microdroid.benchmark.MicrodroidBenchmarks#testMinimumRequiredRAM[protectedVm=false,os=microdroid]: PASSED (55.622s)
avf_perf[hwrev_a0]/microdroid/minimum_required_memory: 35
Switching to "assets/vm_config_io.json" for the guest and connecting to
the benchmark vsock service adds a bit of bloat that isn't needed, but
it is convenient for sharing code with the other benchmarks. Since the
non-protected case didn't increase, the effect seems to be small enough
to ignore.
Test: atest "MicrodroidBenchmarkApp:com.android.microdroid.benchmark.MicrodroidBenchmarks#testMinimumRequiredRAM"
Flag: EXEMPT .
Change-Id: Ifcc162308816489c00215e54d3054d23e9935da9
Android Virtualization Framework (AVF) provides secure and private execution environments for executing code. AVF is ideal for security-oriented use cases that require stronger isolation assurances over those offered by Android’s app sandbox.
Visit our public doc site to learn more about what AVF is, what it is for, and how it is structured. This repository contains source code for userspace components of AVF.
If you want a quick start, see the getting started guideline and follow the steps there.
For in-depth explanations about individual topics and components, visit the following links.
AVF components:
AVF APIs:
How-Tos: