From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail172.messagelabs.com (mail172.messagelabs.com [216.82.254.3]) by kanga.kvack.org (Postfix) with SMTP id 854016B0071 for ; Wed, 23 Jun 2010 13:47:21 -0400 (EDT) Date: Wed, 23 Jun 2010 19:47:18 +0200 From: Andrea Arcangeli Subject: Re: [PATCH -mm 3/6] ksm: fix ksm swapin time optimization Message-ID: <20100623174718.GD16195@random.random> References: <20100621163146.4e4e30cb@annuminas.surriel.com> <20100621163439.4e76c2f8@annuminas.surriel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100621163439.4e76c2f8@annuminas.surriel.com> Sender: owner-linux-mm@kvack.org To: Rik van Riel Cc: linux-kernel@vger.kernel.org, akpm@linux-foundation.org, linux-mm@kvack.org, avi@redhat.com List-ID: On Mon, Jun 21, 2010 at 04:34:39PM -0400, Rik van Riel wrote: > From: Andrea Arcangeli > Subject: fix ksm swapin time optimization > > The new anon-vma code, was suboptimal and it lead to erratic invocation of > ksm_does_need_to_copy. That leads to host hangs or guest vnc lockup, or weird > behavior. It's unclear why ksm_does_need_to_copy is unstable but the point is > that when KSM is not in use, ksm_does_need_to_copy must never run or we bounce BTW, I'm debugging why ksm_does_need_to_copy breaks things... probably I found something already, maybe not. I'll let you know as soon as I have a fix. In the meantime the one above is a fix needed to avoid calling ksm_does_need_to_copy erratically even when KSM is off (which also avoids the bug to trigger). -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org