mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-11 04:26:38 +00:00
The pages which are frequently used by the VM are likely not to be unpinned. So an optimization is to skip the unpin scan for those pages in the LRU unpin policy. The unpin_gen_threshold defines a threshold number that, if a page cannot be unpinned in a period of (unpin_gen_threshold* unpin_interval) seconds, then this page will be marked as inactive. Those inactive pages will be scanned every (unpin_gen_threshold* unpin_interval) seconds if there is no enough active pages to unpin. BUG=b:188481989 TEST=Boot a VM with coiommu lru unpin policy + pass through devices. Change-Id: Ie020173097b6f4f925cafc121a802243ef65f165 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3292941 Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: David Stevens <stevensd@chromium.org> |
||
---|---|---|
.. | ||
src | ||
.build_test_serial | ||
Cargo.toml |