From patchwork Mon Aug 26 07:31:04 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yang X-Patchwork-Id: 11114155 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 10C2914DB for ; Mon, 26 Aug 2019 07:31:45 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id E76F420874 for ; Mon, 26 Aug 2019 07:31:44 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E76F420874 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.intel.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 346906B0536; Mon, 26 Aug 2019 03:31:44 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 2F7926B0537; Mon, 26 Aug 2019 03:31:44 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 20E6A6B0538; Mon, 26 Aug 2019 03:31:44 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0244.hostedemail.com [216.40.44.244]) by kanga.kvack.org (Postfix) with ESMTP id 024B76B0536 for ; Mon, 26 Aug 2019 03:31:43 -0400 (EDT) Received: from smtpin03.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with SMTP id 8756352B6 for ; Mon, 26 Aug 2019 07:31:43 +0000 (UTC) X-FDA: 75863759286.03.floor89_6649597cbff07 X-Spam-Summary: 1,0,0,,d41d8cd98f00b204,richardw.yang@linux.intel.com,:akpm@linux-foundation.org:vbabka@suse.cz:kirill.shutemov@linux.intel.com:yang.shi@linux.alibaba.com::linux-kernel@vger.kernel.org:richardw.yang@linux.intel.com,RULES_HIT:30054:30070,0,RBL:134.134.136.31:@linux.intel.com:.lbl8.mailshell.net-62.18.0.100 64.95.201.95,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:24,LUA_SUMMARY:none X-HE-Tag: floor89_6649597cbff07 X-Filterd-Recvd-Size: 1774 Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by imf49.hostedemail.com (Postfix) with ESMTP for ; Mon, 26 Aug 2019 07:31:42 +0000 (UTC) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Aug 2019 00:31:41 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,431,1559545200"; d="scan'208";a="191648428" Received: from richard.sh.intel.com (HELO localhost) ([10.239.159.54]) by orsmga002.jf.intel.com with ESMTP; 26 Aug 2019 00:31:39 -0700 From: Wei Yang To: akpm@linux-foundation.org, vbabka@suse.cz, kirill.shutemov@linux.intel.com, yang.shi@linux.alibaba.com Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Wei Yang Subject: [PATCH 0/2] mm/mmap.c: reduce subtree gap propagation a little Date: Mon, 26 Aug 2019 15:31:04 +0800 Message-Id: <20190826073106.29971-1-richardw.yang@linux.intel.com> X-Mailer: git-send-email 2.17.1 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: When insert and delete a vma, it will compute and propagate related subtree gap. After some investigation, we can reduce subtree gap propagation a little. [1]: This one reduce the propagation by update *next* gap after itself, since *next* must be a parent in this case. [2]: This one achieve this by unlinking vma from list. After applying these two patches, test shows it reduce 0.4% function all for vma_compute_subtree_gap. Wei Yang (2): mm/mmap.c: update *next* gap after itself mm/mmap.c: unlink vma before rb_erase mm/mmap.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-)