Re: [RFC][PATCH 9/9] make kvm mmu shrinker more aggressive

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Dave Hansen
Date: Wednesday, June 16, 2010 - 8:25 am

On Wed, 2010-06-16 at 12:24 +0300, Avi Kivity wrote:

This is probably something that we need to go back and actually measure.
My suspicion is that, when memory fills up and this shrinker is getting
called a lot, it will be naturally fair.  That list gets shuffled around
enough, and mmu_shrink() called often enough that no VMs get picked on
too unfairly.

I'll go back and see if I can quantify this a bit, though.

I do worry about the case where you really have only a single CPU going
into reclaim and a very small number of VMs on the system.  You're
basically guaranteeing that you'll throw away nr_to_scan of the poor
victim VM's, with no penalty on the other guy.  


Does it always just go right now and free it, or is there any real
scanning that has to go on?


These applied to Linus's latest as of yesterday.

-- Dave

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC][PATCH 0/9] rework KVM mmu_shrink() code, Dave Hansen, (Tue Jun 15, 6:55 am)
[RFC][PATCH 5/9] break out some mmu_skrink() code, Dave Hansen, (Tue Jun 15, 6:55 am)
[RFC][PATCH 6/9] remove kvm_freed variable, Dave Hansen, (Tue Jun 15, 6:55 am)
[RFC][PATCH 7/9] make kvm_get_kvm() more robust, Dave Hansen, (Tue Jun 15, 6:55 am)
[RFC][PATCH 9/9] make kvm mmu shrinker more aggressive, Dave Hansen, (Tue Jun 15, 6:55 am)
Re: [RFC][PATCH 0/9] rework KVM mmu_shrink() code, Avi Kivity, (Wed Jun 16, 1:38 am)
Re: [RFC][PATCH 0/9] rework KVM mmu_shrink() code, Dave Hansen, (Wed Jun 16, 8:03 am)
Re: [RFC][PATCH 9/9] make kvm mmu shrinker more aggressive, Dave Hansen, (Wed Jun 16, 8:25 am)
Re: [RFC][PATCH 0/9] rework KVM mmu_shrink() code, Avi Kivity, (Thu Jun 17, 1:40 am)