diff options
author | Igor Mammedov <imammedo@redhat.com> | 2014-12-01 17:29:25 +0000 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2014-12-04 15:29:10 +0100 |
commit | d4ae84a02bc65cec29608bc417a969fc2ec75449 (patch) | |
tree | fdf2e5f189783ca5a47407c5a64dbea7f243e86a /virt/kvm | |
parent | 7f379cff11fb9e00e0ff9eff8fbc39ddfd4b1bec (diff) | |
download | op-kernel-dev-d4ae84a02bc65cec29608bc417a969fc2ec75449.zip op-kernel-dev-d4ae84a02bc65cec29608bc417a969fc2ec75449.tar.gz |
kvm: search_memslots: add simple LRU memslot caching
In typical guest boot workload only 2-3 memslots are used
extensively, and at that it's mostly the same memslot
lookup operation.
Adding LRU cache improves average lookup time from
46 to 28 cycles (~40%) for this workload.
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'virt/kvm')
0 files changed, 0 insertions, 0 deletions