From patchwork Tue Sep 11 05:36:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aaron Lu X-Patchwork-Id: 10595061 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0503114E0 for ; Tue, 11 Sep 2018 05:36:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E9A602902E for ; Tue, 11 Sep 2018 05:36:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DC2E4292AD; Tue, 11 Sep 2018 05:36:26 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8599B2902E for ; Tue, 11 Sep 2018 05:36:26 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id AFBD68E0004; Tue, 11 Sep 2018 01:36:24 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id AACAD8E0001; Tue, 11 Sep 2018 01:36:24 -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 9C1F08E0004; Tue, 11 Sep 2018 01:36:24 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-pl1-f197.google.com (mail-pl1-f197.google.com [209.85.214.197]) by kanga.kvack.org (Postfix) with ESMTP id 68F9F8E0001 for ; Tue, 11 Sep 2018 01:36:24 -0400 (EDT) Received: by mail-pl1-f197.google.com with SMTP id 2-v6so10988286plc.11 for ; Mon, 10 Sep 2018 22:36:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-original-authentication-results:x-gm-message-state:from:to:cc :subject:date:message-id:in-reply-to:references; bh=KiBecR2mBeb9TgBE2ZnhO+HWNsjOBVfORucjIZAEwtI=; b=p9XqxVGj5XrkIkwhBde1X+3tv2w6xxBGTToaXSSPNyrF26sUMTLBRrm1m9jIMvgG6M rrWtHhw5KjYpcl9ROcsBwu7kB1JJKf48xYMFf+yQIHsD1sqggdcmrEQU5gWthR6p2ZPj t0WgtPkm3u0uZvQeFnGOTjy1s46uvPIWkrGNHzvUeXYQ+pNEU2nwSd3KF7Q7Fgb/gwfD 5AG4UYUvA4VQymFVjD0nX3+S05w9sBDKONBfW/3t2WG8/EjNLkVlkyoHInao4LLUB4ph aZeJ1FFqEGb49zqNZXETcIc1ZZb6lEfnEeY45u2gKD8V80DQeL4nhZvbFFa5FKuK+zJv 8/oQ== X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of aaron.lu@intel.com designates 192.55.52.93 as permitted sender) smtp.mailfrom=aaron.lu@intel.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com X-Gm-Message-State: APzg51CBoCWCX82BlD0FBVM5hnG1EX0kX6veX7anaei/aNe3qeeKejNt CbgfrrrPLP2aK4XvpCHLHnItcefuuYnzwLcHSPdIJiP7XTyek+XkB75Rq5VgYSisBkFUeqwUhhA HgB8+XNPcVuWhqO/a0vNoJsr/KQuG1PR4/FFN9j8j3Y7JiBmQXVrbcb/Hsf5H0tgifg== X-Received: by 2002:a62:b0e:: with SMTP id t14-v6mr26532020pfi.36.1536644184139; Mon, 10 Sep 2018 22:36:24 -0700 (PDT) X-Google-Smtp-Source: ANB0VdY8D9roxJh5tE+07y9vUFmOnDbZy8YU5aAjgpvKeVa6AkBTR2+s548rwKpvyGhTAENbEzGj X-Received: by 2002:a62:b0e:: with SMTP id t14-v6mr26531955pfi.36.1536644183442; Mon, 10 Sep 2018 22:36:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536644183; cv=none; d=google.com; s=arc-20160816; b=PNPx55j3CBo7hebhr5C6jBaOZoRT7kcC99D9D2vZnH3/tw/67JCktiU50uZxaAvKTq 7de7WBXQX6raPJqbp8JFcl9B9QLNHvfPpPlQQRJJhCwL35SjsxMgLJR7BDlfoUTq3qxr 291e/bRXmBKPHLdjMq5W57G47toOw5tKBJXJpwzeDeIiAdnjQ8z8ZlFM6Ga1Dc+K8Cp1 iBrwFUDBSxJb3wg1ZfajbUEZwz+dLC1lmtR7XNpBp6ECxA5IQbCkiqEe7A6GCm+JUdFf 1vZvGsUNUl0DUqhCpkZqwrw7fmU7OLNm1aa9BwDp8y5hRqWw4uicHo44iBRqAjVXNqLj DoSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from; bh=KiBecR2mBeb9TgBE2ZnhO+HWNsjOBVfORucjIZAEwtI=; b=Koq97BAwONHeaLxxRkIKcR9gsKJEa+qbh1qW7hwX1E+/6p31fgFVswUmEhGjcGjhlH eLhZcNUNy8DxXpgqkvK4dz4ZD5Lo4NDD3aL4fXTvUb5UEmOk+u7Mz0OBSxUvHKYpgYBR Qsjp3YeRaDPeHfHeopOynJzrIURz35FOQxiuwmc72t6gLE/iKfsR1ugvH92kJX8FvuPU WY6+ymAh6PUi2Zo/M2/edbsGq45THqHa3yDJkBI2w30YiE6IIrHR/pslYH96J8nepcrP sXkyc02E2EDc2Z94l3HbjFsZ1GEwpyc8ts+wK6OhiyXOhyUD2N+cm5c7AXXevDWTBmzp zQuQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of aaron.lu@intel.com designates 192.55.52.93 as permitted sender) smtp.mailfrom=aaron.lu@intel.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from mga11.intel.com (mga11.intel.com. [192.55.52.93]) by mx.google.com with ESMTPS id c19-v6si20646945pfc.18.2018.09.10.22.36.23 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 10 Sep 2018 22:36:23 -0700 (PDT) Received-SPF: pass (google.com: domain of aaron.lu@intel.com designates 192.55.52.93 as permitted sender) client-ip=192.55.52.93; Authentication-Results: mx.google.com; spf=pass (google.com: domain of aaron.lu@intel.com designates 192.55.52.93 as permitted sender) smtp.mailfrom=aaron.lu@intel.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga102.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> 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: X-Virus-Scanned: ClamAV using ClamSMTP 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);