Re: [PATCH 7/8] KVM: make async_pf work queue lockless

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Gleb Natapov
Date: Wednesday, October 27, 2010 - 4:41 am

On Wed, Oct 27, 2010 at 05:09:41PM +0800, Xiao Guangrong wrote:
That depends on the load. I used memory cgroups to create very big
memory pressure and I saw hundreds of apfs per second. We shouldn't
optimize for very low numbers. With vcpu->async_pf.queue having more
then one element I am not sure your patch is beneficial.

You should do atomic_dec() and always break. We cannot inject two apfs during
one vcpu entry.


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

Messages in current thread:
[PATCH 1/8] KVM: fix tracing kvm_try_async_get_page, Xiao Guangrong, (Wed Oct 27, 2:01 am)
[PATCH 2/8] KVM: cleanup aysnc_pf tracepoints, Xiao Guangrong, (Wed Oct 27, 2:02 am)
[PATCH 4/8] KVM: avoid unnecessary wait for a async pf, Xiao Guangrong, (Wed Oct 27, 2:04 am)
[PATCH 6/8] KVM: simply wakup async pf, Xiao Guangrong, (Wed Oct 27, 2:07 am)
[PATCH 7/8] KVM: make async_pf work queue lockless, Xiao Guangrong, (Wed Oct 27, 2:09 am)
Re: [PATCH 1/8] KVM: fix tracing kvm_try_async_get_page, Gleb Natapov, (Wed Oct 27, 2:59 am)
Re: [PATCH 2/8] KVM: cleanup aysnc_pf tracepoints, Gleb Natapov, (Wed Oct 27, 3:10 am)
Re: [PATCH 6/8] KVM: simply wakup async pf, Gleb Natapov, (Wed Oct 27, 3:50 am)
Re: [PATCH 7/8] KVM: make async_pf work queue lockless, Gleb Natapov, (Wed Oct 27, 4:41 am)
Re: [PATCH 4/8] KVM: avoid unnecessary wait for a async pf, Xiao Guangrong, (Thu Oct 28, 12:06 am)
Re: [PATCH 6/8] KVM: simply wakup async pf, Xiao Guangrong, (Thu Oct 28, 12:59 am)
Re: [PATCH 7/8] KVM: make async_pf work queue lockless, Xiao Guangrong, (Thu Oct 28, 2:08 am)
Re: [PATCH 7/8] KVM: make async_pf work queue lockless, Gleb Natapov, (Thu Oct 28, 2:14 am)