Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758495AbZDRO7t (ORCPT ); Sat, 18 Apr 2009 10:59:49 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753591AbZDRO7h (ORCPT ); Sat, 18 Apr 2009 10:59:37 -0400 Received: from mx2.redhat.com ([66.187.237.31]:46386 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753408AbZDRO7g (ORCPT ); Sat, 18 Apr 2009 10:59:36 -0400 Date: Sat, 18 Apr 2009 16:58:06 +0200 From: Andrea Arcangeli To: Andrew Morton Cc: Izik Eidus , linux-kernel@vger.kernel.org, kvm@vger.kernel.org, linux-mm@kvack.org, avi@redhat.com, chrisw@redhat.com, mtosatti@redhat.com, hugh@veritas.com, kamezawa.hiroyu@jp.fujitsu.com Subject: Re: [PATCH 4/4] add ksm kernel shared memory driver. Message-ID: <20090418145806.GA15228@random.random> References: <1239249521-5013-1-git-send-email-ieidus@redhat.com> <1239249521-5013-2-git-send-email-ieidus@redhat.com> <1239249521-5013-3-git-send-email-ieidus@redhat.com> <1239249521-5013-4-git-send-email-ieidus@redhat.com> <1239249521-5013-5-git-send-email-ieidus@redhat.com> <20090414150929.174a9b25.akpm@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090414150929.174a9b25.akpm@linux-foundation.org> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 756 Lines: 16 On Tue, Apr 14, 2009 at 03:09:29PM -0700, Andrew Morton wrote: > We need a comment here explaining why we can't use the much preferable > lock_page(). > > Why can't we use the much preferable lock_page()? We might but then it'd risk to waste time waiting. It's not worth waiting, we want kksmd to be allowed to keep one (in future more than one as we scale it smp/numa) CPU busy at all times running memcmp and not schedule (other than for need_resched()) to try to free memory at the fastest peace possible. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/