crosvm/swap
Shintaro Kawamura 3a38ca057a swap: swap in on a background thread
This is for optimizing swap in performance. This improves the app launch
latency during vmm-swap being disabled from 8s to 2s (while it was
originally 900ms if vmm-swap is disabled).

Each handler method is guarded by mutex.

There would be futher optimization to protect region index calculation
only and unblock UFFD_COPY on both main and swap-in threads. However we
must experiment the benefit and the complexity introduced to the
codebase from it first.

BUG=b:265606668
TEST=cargo test -p swap

Change-Id: I556d7a616da1843fbff8d02d80c85550c7eed93a
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4317028
Reviewed-by: David Stevens <stevensd@chromium.org>
Commit-Queue: Shin Kawamura <kawasin@google.com>
2023-03-22 06:01:44 +00:00
..
src swap: swap in on a background thread 2023-03-22 06:01:44 +00:00
tests swap: swap in on a background thread 2023-03-22 06:01:44 +00:00
Cargo.toml swap: use create_sandbox_minijail for the monitor process 2023-03-02 00:42:35 +00:00