Received: by 10.213.65.68 with SMTP id h4csp465205imn; Fri, 23 Mar 2018 08:21:38 -0700 (PDT) X-Google-Smtp-Source: AG47ELs5d65G5Wj2nqVTewfX4rGL6P3syzA1un6XCDAl7tDFrPc9nQgI8rOSx8zz/7DD0w6Z4/gB X-Received: by 10.98.166.196 with SMTP id r65mr24665735pfl.110.1521818498872; Fri, 23 Mar 2018 08:21:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521818498; cv=none; d=google.com; s=arc-20160816; b=DBVzv/IcDqXQU8J5doOhB8GlkRAFrDGft7CDtkySxlAqbz69XGKhdqH/TY4tgi61Fz zBJhYKI+w5Eho4y8EOGTFU8Y8Y5U9WM+61Rs1QBbRJG1y8LamYTy7WBkdNRFbvgKEz5K 16XkdJaPzMtTO5yf8oh8SnSBMFASf5+TpIYO6KcONALP43DWQRZU1U2SfCLXJk6kasTV bZm4WmlCLMqyK9j6XWtx3BralcM7a2durcG1J3pSRNzU+TBcpxii4rf+5iffHsREIZy7 M172wZwphbLNjnyWa35rK5FVbLHwRV+1IgeNDkOMDFwYP/7eHOwfkfnvZqySIJdZgmaB rMGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:message-id:date:subject:cc:to :from:dkim-signature:arc-authentication-results; bh=Kd1Fc7R4pmo15Z1b9rkVtkELIRrlyjPq275tQa2ZiaY=; b=MQD10lXmfA++yjSI+8JgU6d65ZbNF+sQJbLdmrYokCMzCO09PaWcQjwzy7+856d3Dg ZdYtVx8ndb6bua26EPDJrsHv6WPIJOKMU7QNh7wbm9xyS4HIA6SRB8X1WNTjg9htc5m0 WSEmcpxB7NxO+noplU9FEYeYsAKwiBIDOYfL27WMxJWQjhernMtvxh+ua99Gsu4CIFK1 esOTliYQgTknmN6PGsaa2sHVfO0RTNkXtqkrz4gGNZu6G6kLi061lqjBwKlQwOtswYP/ xd+dWomOAX3KWx/psWhKb/mSRYJoV3EnK/MgW9U5ufW0f/yO0PierS1SgF5bku6M1qC2 5Q9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=selector1 header.b=cRbRp+YG; 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=pass (p=NONE sp=NONE dis=NONE) header.from=virtuozzo.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a3-v6si8984004pld.167.2018.03.23.08.21.24; Fri, 23 Mar 2018 08:21:38 -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; dkim=pass header.i=@virtuozzo.com header.s=selector1 header.b=cRbRp+YG; 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=pass (p=NONE sp=NONE dis=NONE) header.from=virtuozzo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751993AbeCWPUE (ORCPT + 99 others); Fri, 23 Mar 2018 11:20:04 -0400 Received: from mail-he1eur01on0107.outbound.protection.outlook.com ([104.47.0.107]:19840 "EHLO EUR01-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751400AbeCWPUC (ORCPT ); Fri, 23 Mar 2018 11:20:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=virtuozzo.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=Kd1Fc7R4pmo15Z1b9rkVtkELIRrlyjPq275tQa2ZiaY=; b=cRbRp+YGN+MdCgcGnXuBo4qqxevbARGM4+9/u+kt71f/oWB9b/kaOTkVFbz7msxxMiwp01wEPxRl7QKFqY6Lgmav7Yp60qeH3JvYFqqoidZ0Kvfzy8CfSID6FXXyIePmKCZZ6bERPcAVesxSMCotJ1Uvjv9JKfwYn/YzJEZG5x0= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=aryabinin@virtuozzo.com; Received: from i7.sw.ru (195.214.232.6) by AM6PR08MB3253.eurprd08.prod.outlook.com (2603:10a6:209:47::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.609.10; Fri, 23 Mar 2018 15:19:56 +0000 From: Andrey Ryabinin To: Andrew Morton Cc: Andrey Ryabinin , Mel Gorman , Tejun Heo , Johannes Weiner , Michal Hocko , Shakeel Butt , Steven Rostedt , linux-mm@kvack.org, linux-kernel@vger.kernel.org, cgroups@vger.kernel.org Subject: [PATCH v2 0/4] vmscan per-cgroup reclaim fixes Date: Fri, 23 Mar 2018 18:20:25 +0300 Message-Id: <20180323152029.11084-1-aryabinin@virtuozzo.com> X-Mailer: git-send-email 2.16.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [195.214.232.6] X-ClientProxiedBy: HE1PR0101CA0011.eurprd01.prod.exchangelabs.com (2603:10a6:3:77::21) To AM6PR08MB3253.eurprd08.prod.outlook.com (2603:10a6:209:47::18) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 9a154fbc-0386-499b-0986-08d590d18952 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(5600026)(4604075)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020);SRVR:AM6PR08MB3253; X-Microsoft-Exchange-Diagnostics: 1;AM6PR08MB3253;3:OGb3A963BAUhQgemC1/7DwVRe3FclahU1CREu8JYTpSfW/GZN6bpTCDLVL9hSHgFTQcdQAE/OX4VeYoAHIl7/ENAODq4uvwH2hnnoipIpDyGUIkEsU26sS3354gruLVPOg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ATFmJpcekzWGzlPXSlR2MC//Wvc87h05U7jTXP1FPVNfjGFiS0EYXW+sD2tzIoLOnbIk9WA0HNKOl4qgMX+GbpN8aqVMr06sBJgcdMjxJx1hjZbVE4F45Wzw8+F1EFRHXi9ANhBbfsXPeunacec17iBFZpL72bBYsOSUGbcqwJYbLLXjVRFV/QpwC2FPMMCAZFznhkan/;4:8CliSozBgOZlhNRNzvr5F58ctN/TZE9xuC5ibOhGhKaP4nCa1qH6PHeNPELQaysZS5H91ll/Aycs29CiRO8/Hl5gc5jK0WXPRHN7MvAbWU7jkwzP18/ytr2sV4Nw5o0K5lt70Uz1XeWSKaonH7uIOeg9CG1XiHm0oPsU7Wwq72eayS2we+kdAxN5m1kLIQeaKvZrrB6v4fAHcZxiX2uwjNG1FQsDabilJGJfqbKE/ky7NNL4sOyFqC0IG1Zv6XBS8ORB3ft3TbvU15uElgLLtDOtONlnMzfcFGUGZ0iiAOjd4zjR3Fv9qePrIXl+5poG X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(788757137089); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040522)(2401047)(5005006)(8121501046)(3231221)(944501327)(52105095)(93006095)(93001095)(10201501046)(3002001)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123564045)(20161123560045)(20161123562045)(6072148)(201708071742011);SRVR:AM6PR08MB3253;BCL:0;PCL:0;RULEID:;SRVR:AM6PR08MB3253; X-Forefront-PRVS: 0620CADDF3 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(346002)(39850400004)(39380400002)(366004)(396003)(376002)(54534003)(189003)(199004)(36756003)(25786009)(186003)(97736004)(1076002)(3846002)(53416004)(478600001)(48376002)(50466002)(66066001)(47776003)(105586002)(106356001)(53936002)(305945005)(6512007)(4326008)(7736002)(50226002)(81156014)(8936002)(52116002)(6666003)(54906003)(81166006)(386003)(86362001)(6506007)(7416002)(2906002)(59450400001)(51416003)(316002)(68736007)(55236004)(6486002)(6116002)(6916009)(5660300001)(16586007)(8676002)(26005)(16526019);DIR:OUT;SFP:1102;SCL:1;SRVR:AM6PR08MB3253;H:i7.sw.ru;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; Received-SPF: None (protection.outlook.com: virtuozzo.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;AM6PR08MB3253;23:VlMrhQDTm26YfSDvu7aLvbwaSkuE+SL4k6/e98wpy?= =?us-ascii?Q?L/TLiBoogrXQBiXPLtsMse8YR13lRQA5IEsIOx/kBByzhKzzczCwoVQJt43h?= =?us-ascii?Q?sY58AGlbxD2p3QEm8Znlxg7XwrjKPfzQAwpigbkIzrDIC0gfUSgetv3FcuW+?= =?us-ascii?Q?Ut1hwDYBI2w1x85l0WM2tJGROPem9PZ3B7XSECmZkJwKRNGW/+4zUVQ59ALl?= =?us-ascii?Q?W7LqNE8PUzbUDd2eP2zFmD0gnhtlY7mlaVmzkZNiH/ReWipkD0XbSpeEzVl+?= =?us-ascii?Q?nPG4EBHbihuCQVvD9GAUhanKWTI1D1BVQnHWZWU/H5B2u+Jd8sVN4iX0927m?= =?us-ascii?Q?Yhdmmp6CW0HtvxWot0r5aXQlx335OwEbjdOEdO1eE30nLT8s7KlX5Admb0mR?= =?us-ascii?Q?5QbL50b79Cbb+fZZBjX+cYi0ot2ddFVKoEME9bGW4mAa3QNMHKNkstanWGfa?= =?us-ascii?Q?gwhZtbC0mLoRbKHi9R0sAv/d7TMerHIkbfd0lMzzPlM7fvTI3F6OL1nV76eh?= =?us-ascii?Q?OlU8pOkoA2ahjJsiXABcD+avC7GPdXX0sWWaiyk+uuNrTGIoqysGUqjsThyl?= =?us-ascii?Q?B6hxNksNSyPs4BUG7kwqyz2RwgIWNNA7J8KogvsYNgb5i/MZdh89vUkYXQt0?= =?us-ascii?Q?ddldo4pSUkwUxfh19pWu+x3LpKajZtDRE/AjF0oCmspCm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rCSdlBx4ZMo1jg/To5RsIxlTTekkyWruc= X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Mar 2018 15:19:56.1712 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9a154fbc-0386-499b-0986-08d590d18952 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR08MB3253 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Changes since v1: - Added acks. - Dropped "mm/vmscan: replace mm_vmscan_lru_shrink_inactive with shrink_page_list tracepoint" patch. It's better to avoid changing the tracepoint as some people may be used to it. Removing 'nr_scanned' and 'file' arguments is also not very good. Yes, these numbers could be obtained from mm_vmscan_lru_isolate tracepoint, but it's easier when it's all in one place. - Compare with nr_writeback,dirty, etc only isolated file pages as it always was. - Minor changelog tweaks. Andrey Ryabinin (4): mm/vmscan: Update stale comments mm/vmscan: remove redundant current_may_throttle() check mm/vmscan: Don't change pgdat state on base of a single LRU list state. mm/vmscan: Don't mess with pgdat->flags in memcg reclaim. include/linux/backing-dev.h | 2 +- include/linux/memcontrol.h | 2 + mm/backing-dev.c | 19 ++--- mm/vmscan.c | 166 ++++++++++++++++++++++++++++++-------------- 4 files changed, 122 insertions(+), 67 deletions(-) -- 2.16.1