Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965044AbbLOLxt (ORCPT ); Tue, 15 Dec 2015 06:53:49 -0500 Received: from mga14.intel.com ([192.55.52.115]:45488 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964921AbbLOLxs (ORCPT ); Tue, 15 Dec 2015 06:53:48 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,431,1444719600"; d="scan'208";a="861077058" Date: Tue, 15 Dec 2015 13:53:42 +0200 From: "Kirill A. Shutemov" To: yalin wang Cc: "Kirill A. Shutemov" , Oleg Nesterov , akpm@linux-foundation.org, gang.chen.5i5j@gmail.com, mhocko@suse.com, kwapulinski.piotr@gmail.com, aarcange@redhat.com, dcashman@google.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [RFC] mm: change find_vma() function Message-ID: <20151215115342.GB75130@black.fi.intel.com> References: <1450090945-4020-1-git-send-email-yalin.wang2010@gmail.com> <20151214121107.GB4201@node.shutemov.name> <20151214175509.GA25681@redhat.com> <20151214211132.GA7390@node.shutemov.name> <5603C6DF-DDA5-4B57-9608-63335282B966@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <5603C6DF-DDA5-4B57-9608-63335282B966@gmail.com> User-Agent: Mutt/1.5.23.1 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 746 Lines: 17 On Tue, Dec 15, 2015 at 02:41:21PM +0800, yalin wang wrote: > > On Dec 15, 2015, at 05:11, Kirill A. Shutemov wrote: > > Anyway, I don't think it's possible to gain anything measurable from this > > optimization. > > > the advantage is that if addr don’t belong to any vma, we don’t need loop all vma, > we can break earlier if we found the most closest vma which vma->end_add > addr, Do you have any workload which can demonstrate the advantage? -- Kirill A. Shutemov -- 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/