Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3627841imm; Mon, 10 Sep 2018 22:36:43 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYXJbxcJj7KT/kKjddxOBdP/+7LSK5UD0jDu5UvRBMc7cIECspLFN7eybsXMszMB9jW9u4S X-Received: by 2002:a17:902:d24:: with SMTP id 33-v6mr24919492plu.211.1536644203250; Mon, 10 Sep 2018 22:36:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536644203; cv=none; d=google.com; s=arc-20160816; b=wj1u3vqW33fJ1B25zVDYqr/PzUWxOCDKE5+RPLuCYmq9gMB6PrQKQZ8R+eGuhGb+yo Jr+/Hb8KSotwAdWEBr950qbG8XzSg6OdwNifneChcQFtHar28l9AqdyFaTc5sk/DTVN4 /yLyKgdGDH2kduQIZC/vtKoJ8KoKPqNMZLxBElZmJ4zFLYw0fMSbwgMmBbNJSpq0NU10 HAuehl24Gd8v3f7FemgY3Ujxo1+EKWlDfMMCtRtLLoCZSzaE/MjynnHXWCMUm1jjnPI9 9YdgmVKcs3lpsCsnQ45/hv/AIhN9JbV7bnZk+jHsHdibn0TppDQx6rSpC9/iCCh8tstz Xfyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=KiBecR2mBeb9TgBE2ZnhO+HWNsjOBVfORucjIZAEwtI=; b=KN8jLKaEl1Pk27z4ZrqeiosvFXw2J+XuSoFou9vBmnpQlBun1EjkeTMCRiYiz3bYlT sqjpvZc20cSwFAp8J9gly3SDsQLyHQR3t1VgzLEzb+3fDL1hQeWnXvJh01zGFBSYd+rp DoApITPdQ/vA2XYX+h1p2vnAZAwT8RjdLHfBAEv3RmtkNBLbU2IV7V7ScOVvuZTcsbX3 GaNPb/kG8GyF/mrK0EznOI3CX3TQBzeLD2i1I1OT3plMlW/kx8rlJIYPkyoZrTs9Wi+9 5/k36kq/GkA73EsCqSJcxRGoOe0hislTnpkYIStFICUiqfq2YUAkkm6KwVZjUmseHT6E Jj1A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h69-v6si19044810pfc.121.2018.09.10.22.36.27; Mon, 10 Sep 2018 22:36:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726839AbeIKKd5 (ORCPT + 99 others); Tue, 11 Sep 2018 06:33:57 -0400 Received: from mga17.intel.com ([192.55.52.151]:62518 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726525AbeIKKd4 (ORCPT ); Tue, 11 Sep 2018 06:33:56 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Sep 2018 22:36:23 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.53,359,1531810800"; d="scan'208";a="262426314" Received: from aaronlu.sh.intel.com ([10.239.159.44]) by fmsmga006.fm.intel.com with ESMTP; 10 Sep 2018 22:36:20 -0700 From: Aaron Lu To: linux-mm@kvack.org, linux-kernel@vger.kernel.org Cc: Andrew Morton , Dave Hansen , Michal Hocko , Vlastimil Babka , Mel Gorman , Matthew Wilcox , Daniel Jordan , Tariq Toukan , Yosef Lev , Jesper Dangaard Brouer Subject: [RFC PATCH 1/9] mm: do not add anon pages to LRU Date: Tue, 11 Sep 2018 13:36:08 +0800 Message-Id: <20180911053616.6894-2-aaron.lu@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180911053616.6894-1-aaron.lu@intel.com> References: <20180911053616.6894-1-aaron.lu@intel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org For the sake of testing purpose, do not add anon pages to LRU to avoid LRU lock so we can test zone lock exclusively. Signed-off-by: Aaron Lu --- mm/memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/memory.c b/mm/memory.c index c467102a5cbc..080641255b8b 100644 --- a/mm/memory.c +++ b/mm/memory.c @@ -3208,7 +3208,7 @@ static vm_fault_t do_anonymous_page(struct vm_fault *vmf) inc_mm_counter_fast(vma->vm_mm, MM_ANONPAGES); page_add_new_anon_rmap(page, vma, vmf->address, false); mem_cgroup_commit_charge(page, memcg, false, false); - lru_cache_add_active_or_unevictable(page, vma); + //lru_cache_add_active_or_unevictable(page, vma); setpte: set_pte_at(vma->vm_mm, vmf->address, vmf->pte, entry); -- 2.17.1