Re: [PATCH 5/7] KVM: cache the last used slot

2011-02-22 Thread Avi Kivity
On 02/22/2011 10:13 AM, Xiao Guangrong wrote: Cache the last used slot, the hit ratio is more than 35% during my test If we sort the slots by size, or use a weighted balanced tree, this should come for free. -- error compiling committee.c: too many arguments to function -- To unsubscribe f

[PATCH 5/7] KVM: cache the last used slot

2011-02-22 Thread Xiao Guangrong
Cache the last used slot, the hit ratio is more than 35% during my test Signed-off-by: Xiao Guangrong --- include/linux/kvm_host.h |1 + virt/kvm/kvm_main.c | 11 +-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/include/linux/kvm_host.h b/include/linux/kvm_h