Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp949624img; Thu, 28 Feb 2019 10:24:40 -0800 (PST) X-Google-Smtp-Source: APXvYqyl2FR1vZvPzBT169HHEDFCSFrsJMdQT3q9dDAfBA9lKLs15vxdlP0I2ewhTRmN2cwf5V3+ X-Received: by 2002:a65:4348:: with SMTP id k8mr468721pgq.289.1551378280076; Thu, 28 Feb 2019 10:24:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551378280; cv=none; d=google.com; s=arc-20160816; b=L6x+ocwdtZwSWUfOOFraRoaipO5reHtCpgMV/OeY68izXsyxuwLPtiKatYOJAbERE4 lyueDQIX2mpfQlwSOjv8lu5cAIp586Rkmq0UhTyVWiO2+z1rKBcXxpB8cePa9jPZ6ske IOBXNEPvHHBzyAITtYO0Qu5CajSzQqjuOZsXRXNEz0AWELKeWPqiqIhPXV1gmkGB11iv 2GNetCu4W4xYm3rKhLTJiEW8WWVeQYYCNq+cvKkQQI5z761Y86sNrDKZDzWrXWjFAPmu V+a62VeB87GD8olLXwV5ZjvRvi7r+eGv2T/fKtVdbxpmoTw1SZJpTrLfMmktsRR3HxgE tLgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature:dkim-signature; bh=J3TkBkbgJLidYXQwndc5Y9K0JpBhnEgIwXZ3Hj0Jilw=; b=UJkU7bXF6gIGvbs+Fnn5c0zfhwSox8dv4jlCUu2ymC0/jC9vTfBJk6KGPfqJCwpgjj 7ccA9eIbVeDPNVRIugch2uaL5sAnSY1b9g5GPr7aoRuF5KZNLX8B5SBIImhIfrjAe/6a eh4JcwFKEgYlcd1eGwwYRKDAGBnkJ7a87Nu9OZEoBTEC0pq87YW+DUU7cD9hPAc2mPni v2JPg++Cy8LdL6RhSjFH+KfOZS/qg6n55rEjROABk9K50Pd7nFhXfLjy5As9GjhpooxQ KWqo4vvNfEYdsNhV+jA7lEc6cQhdwPoCFqJM2KiPAiUQS5T7C5AR9HnN5/i1Xm7nX8AX DfLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fb.com header.s=facebook header.b=PdTYtuKz; dkim=pass header.i=@fb.onmicrosoft.com header.s=selector1-fb-com header.b=DlU9Iw75; 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=fb.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j22si19171751pgg.463.2019.02.28.10.24.24; Thu, 28 Feb 2019 10:24:40 -0800 (PST) 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=@fb.com header.s=facebook header.b=PdTYtuKz; dkim=pass header.i=@fb.onmicrosoft.com header.s=selector1-fb-com header.b=DlU9Iw75; 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=fb.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732177AbfB1Qna (ORCPT + 99 others); Thu, 28 Feb 2019 11:43:30 -0500 Received: from mx0a-00082601.pphosted.com ([67.231.145.42]:40290 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726717AbfB1Qn3 (ORCPT ); Thu, 28 Feb 2019 11:43:29 -0500 Received: from pps.filterd (m0044008.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x1SGTPLR012708; Thu, 28 Feb 2019 08:43:26 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-id : content-transfer-encoding : mime-version; s=facebook; bh=J3TkBkbgJLidYXQwndc5Y9K0JpBhnEgIwXZ3Hj0Jilw=; b=PdTYtuKzCtdu7/AkoHQwy8yoDgjX1G/aw3pkyoiTqNFyEWF+/zR6DaMpw8OUFJSrjwnC LNKwDRfDZHucZiqMsJDhYbp1wZHCU1eVmFwh3MhJclXcmAor1cud5lW4HGPiwfS0sAyn 4Tx/s2xkUHRXkbngn+PUUnwuydZo4Ux+y00= Received: from maileast.thefacebook.com ([199.201.65.23]) by mx0a-00082601.pphosted.com with ESMTP id 2qxjqt869r-10 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Thu, 28 Feb 2019 08:43:25 -0800 Received: from frc-hub03.TheFacebook.com (2620:10d:c021:18::173) by frc-hub02.TheFacebook.com (2620:10d:c021:18::172) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.1.1531.3; Thu, 28 Feb 2019 08:42:43 -0800 Received: from NAM03-BY2-obe.outbound.protection.outlook.com (192.168.183.28) by o365-in.thefacebook.com (192.168.177.73) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.1.1531.3 via Frontend Transport; Thu, 28 Feb 2019 08:42:43 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.onmicrosoft.com; s=selector1-fb-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=J3TkBkbgJLidYXQwndc5Y9K0JpBhnEgIwXZ3Hj0Jilw=; b=DlU9Iw75/ITd5HVG3W+TNbiB0rOudfHNMirVPZkbVWrNczFMHfCvYMQOumu9bVKPc85t+CnEOcuapGCVsN7y+hiTOJtvXKlUNwauA3z3ywqEGHMud5FmO1CdaBPZG+lVkvysPwjFR8A2C2r/ig9UmRgRUyuPKj2vyaZX8s3PnTU= Received: from BYAPR15MB2631.namprd15.prod.outlook.com (20.179.156.24) by BYAPR15MB2613.namprd15.prod.outlook.com (20.179.155.218) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1643.16; Thu, 28 Feb 2019 16:42:41 +0000 Received: from BYAPR15MB2631.namprd15.prod.outlook.com ([fe80::ecc7:1a8c:289f:df92]) by BYAPR15MB2631.namprd15.prod.outlook.com ([fe80::ecc7:1a8c:289f:df92%3]) with mapi id 15.20.1665.015; Thu, 28 Feb 2019 16:42:41 +0000 From: Roman Gushchin To: Johannes Weiner CC: Andrew Morton , Tejun Heo , "linux-mm@kvack.org" , "cgroups@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Kernel Team Subject: Re: [PATCH 0/6] mm: memcontrol: clean up the LRU counts tracking Thread-Topic: [PATCH 0/6] mm: memcontrol: clean up the LRU counts tracking Thread-Index: AQHUz4L9n1k+P/DTd06CcNJjAIxXeaX1ajQA Date: Thu, 28 Feb 2019 16:42:41 +0000 Message-ID: <20190228164236.GA26032@tower.DHCP.thefacebook.com> References: <20190228163020.24100-1-hannes@cmpxchg.org> In-Reply-To: <20190228163020.24100-1-hannes@cmpxchg.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: BYAPR01CA0020.prod.exchangelabs.com (2603:10b6:a02:80::33) To BYAPR15MB2631.namprd15.prod.outlook.com (2603:10b6:a03:152::24) x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [2620:10d:c090:200::1:d847] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: ca868cf1-04d0-4662-6835-08d69d9bc189 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600127)(711020)(4605104)(2017052603328)(7153060)(7193020);SRVR:BYAPR15MB2613; x-ms-traffictypediagnostic: BYAPR15MB2613: x-microsoft-exchange-diagnostics: 1;BYAPR15MB2613;20:CdH1bil/aSwZNUcLnnmHBIMrTZMVhFjvsRJOenhOSIThgn6Qi340uxG5duQk0dVXjq7DairCWLiQnmE06ho6DuprQgHSR6Mg9DYocYuT8kwpRbbCyFbhOFSlHu+tG2r/8aycZX1TMsxzuJNHDU4gv07uVlW+tgskuy2Xno4KUpE= x-microsoft-antispam-prvs: x-forefront-prvs: 0962D394D2 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(39860400002)(396003)(376002)(346002)(366004)(136003)(199004)(189003)(54906003)(81166006)(81156014)(6246003)(25786009)(71200400001)(71190400001)(8676002)(68736007)(8936002)(4326008)(7736002)(6916009)(305945005)(478600001)(97736004)(316002)(2906002)(6512007)(9686003)(256004)(86362001)(14454004)(46003)(1076003)(33656002)(229853002)(6486002)(52116002)(106356001)(53936002)(446003)(105586002)(11346002)(6436002)(76176011)(102836004)(6116002)(5660300002)(6506007)(486006)(99286004)(186003)(476003)(386003);DIR:OUT;SFP:1102;SCL:1;SRVR:BYAPR15MB2613;H:BYAPR15MB2631.namprd15.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: fb.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: JEeQyWXCJK2lSNNhTR5JCD9AwZv/MglfP9Hxw1zi5G7NNrSaLsEXsTUAAGF1kfDRspiPJdeGsJasnUXNFZCHVufNsM1/CPoyHMoUY3yEN2m6jIZT4e++apvZXsnJEfloEmuGkUsJOpRhSr66ewbXeqLES5kL6Qj5AeHNbLMDlvhd5FKMhvm2vY6ylZvcP2dCslq4xEaXBxhgz5kSSm2UhIogMwJj+503l++ByYbo45e5ovOQ+y4KeCgugRHBsF7hhxfeOV6o/cN+EdxuwXX5G/UD5keGnWvIed5OIVexlBm/bUO0Tn8OnR/I1Lum8nlq1Dju6ST8KiFeir8E2E5sIE8+ulj4Y4ro9iRMM4CoPPvuF8fzCIEP8g2VQTodNh9Tqv89GmRMn4ceNVesfnX6C8/il+Iwv2F7Do2yZyBLit0= Content-Type: text/plain; charset="us-ascii" Content-ID: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: ca868cf1-04d0-4662-6835-08d69d9bc189 X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Feb 2019 16:42:41.4955 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 8ae927fe-1255-47a7-a2af-5f3a069daaa2 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR15MB2613 X-OriginatorOrg: fb.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-02-28_08:,, signatures=0 X-Proofpoint-Spam-Reason: safe X-FB-Internal: Safe Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 28, 2019 at 11:30:14AM -0500, Johannes Weiner wrote: > [ Resend #2: Sorry about the spam, I mixed up the header fields in > git-send-email and I don't know who did and didn't receive the > garbled previous attempt. >=20 > Resend #1: Rebased on top of the latest mmots. ] >=20 > The memcg LRU stats usage is currently a bit messy. Memcg has private > per-zone counters because reclaim needs zone granularity sometimes, > but we also have plenty of users that need to awkwardly sum them up to > node or memcg granularity. Meanwhile the canonical per-memcg vmstats > do not track the LRU counts (NR_INACTIVE_ANON etc.) as you'd expect. >=20 > This series enables LRU count tracking in the per-memcg vmstats array > such that lruvec_page_state() and memcg_page_state() work on the enum > node_stat_item items for the LRU counters. Then it converts all the > callers that don't specifically need per-zone numbers over to that. >=20 > include/linux/memcontrol.h | 28 --------------- > include/linux/mm_inline.h | 2 +- > include/linux/mmzone.h | 5 --- > mm/memcontrol.c | 85 +++++++++++++++++++++++++---------------= ---- > mm/vmscan.c | 2 +- > mm/workingset.c | 5 +-- > 6 files changed, 54 insertions(+), 73 deletions(-) >=20 >=20 The patchset looks very good to me! Reviewed-by: Roman Gushchin Thanks!