On 04/29/2012 06:13 PM, Takuya Yoshikawa wrote: > On Sun, 29 Apr 2012 18:00:03 +0300 > Avi Kivity <avi@xxxxxxxxxx> wrote: > > > > After your work, 8192 in my patch may better be lowered a bit. > > > > > > > Why not remove it altogether? Just change it to cond_resched_lock(). > > Two concerns: > > - too many checks may slow down GET_DIRTY_LOG. Yes. My expectation is that it's okay. If there is no contention, then the lock cache line will be local, and the check is cheap. If there is contention, then we need to drop it. > - cond_resched_lock() uses spin_needbreak(), and I am not sure if > this still does rescheduling for alleviating mmu_lock contention > without CONFIG_PREEMPT. IMO that's a feature. If kernel policy is not to lockbreak when !CONFIG_PREEMPT, then we should follow it, whether it's the right thing or not. If it's the wrong thing, change it in the kernel proper. > I need to read the code a bit more. > while (1) need_to_read_the_code_a_bit_more(); unfortunately. I keep finding new things in there, including stuff I wrote myself. -- error compiling committee.c: too many arguments to function -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html