Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp967819ybt; Wed, 17 Jun 2020 19:22:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx/IPYcRaDXgNCm0ZiLofkeLYIzx3oga7Gz5wM7jOuimTRma4Nj09GUKa28yH+DwjN+p2RA X-Received: by 2002:aa7:c74e:: with SMTP id c14mr1915897eds.322.1592446971438; Wed, 17 Jun 2020 19:22:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1592446971; cv=pass; d=google.com; s=arc-20160816; b=KfMwXqvT+zsMC2lWRGuh+0y0hRricG2qOFu8xA/NGKFVcrHC+cUWzJOAcI71Eg97fS Ggx/hc/WHOBZjNSGiyYQP8lpYpzJuNF4LaO0XrOLGCbJ+MJ20AqSfryEaemz1cI41zCb nxonKeTSGOkHCfUgZtFhAiavQgiOhu5TKb+iVELwFg6Abo8eZw7X9kelDIPaYsurataQ o9aOPCEFhfnKH3CF2yffqndp59RK3c8BIrwEsV6CxCx3Gldw8LdEZBWejUAEH9fAmChT 8Q1VssqEcCzICahfe4zNA7SpVCtFxZLeTcitm7GyFrjRF8orjp4Acu7jJztqhlKuUa+O qG4A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:in-reply-to :content-disposition:references:message-id:subject:cc:to:from:date :dkim-signature:dkim-signature; bh=wcx8YVBZHU75QQNWCyUI4ONPrV3RM4j1rlti8vgFFL8=; b=Uc40EiU6vIhS0AkGB+GX6AloM2/JDwm/BfQYXct7Nb2zWItdez/vcJgBtBPfI9pEqP 7YuymlK8di8ZnP50iL1cTbrq1bP5VpzO1uEy9GkqMYD0MalhyyVCWU8NL6/WBmpvxTf3 ZCZmDmbJxyc1eRSYSW0SLvfG0bVFkWCgcJglW7//cNgdwfJUX5ibgQzlK7zCDWCsDD/O gUmmDgnjQWvJwzSM5I/DBru0Y91DZGOPydeui7hFzxYb7gWQNcQUqDOzK09OUrgeuUeU iHmV9oSkZ5n+2p3x7pD4Czji0qjM68/lPJnHv+qA4Urb8kJSqJSN4eWuPfi+z4gbaVlr rDgg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@fb.com header.s=facebook header.b=DlkF8jyP; dkim=pass header.i=@fb.onmicrosoft.com header.s=selector2-fb-onmicrosoft-com header.b=YyiuqBUA; arc=pass (i=1 spf=pass spfdomain=fb.com dkim=pass dkdomain=fb.com dmarc=pass fromdomain=fb.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=fb.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z12si959241eju.555.2020.06.17.19.22.29; Wed, 17 Jun 2020 19:22:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@fb.com header.s=facebook header.b=DlkF8jyP; dkim=pass header.i=@fb.onmicrosoft.com header.s=selector2-fb-onmicrosoft-com header.b=YyiuqBUA; arc=pass (i=1 spf=pass spfdomain=fb.com dkim=pass dkdomain=fb.com dmarc=pass fromdomain=fb.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=fb.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731773AbgFRCSL (ORCPT + 99 others); Wed, 17 Jun 2020 22:18:11 -0400 Received: from mx0a-00082601.pphosted.com ([67.231.145.42]:6818 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730205AbgFRBTv (ORCPT ); Wed, 17 Jun 2020 21:19:51 -0400 Received: from pps.filterd (m0148461.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 05I1JahM023901; Wed, 17 Jun 2020 18:19:37 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.com; h=date : from : to : cc : subject : message-id : references : content-type : in-reply-to : mime-version; s=facebook; bh=wcx8YVBZHU75QQNWCyUI4ONPrV3RM4j1rlti8vgFFL8=; b=DlkF8jyPuH56kSaY53k4g/MgCFdf+lY9tXyoodbuNOd9p90j6b/GRaL45GbDuwyzkFSE Bq1JXSquQL3Muj1X59BMHG8PZ76vukOCDuNEHl6s53tOUog32V8IFMIOEfeUqqelB/CC oXA0D8xqWKN78koX4NjmG9VC7MCKIl4zywA= Received: from mail.thefacebook.com ([163.114.132.120]) by mx0a-00082601.pphosted.com with ESMTP id 31q644hkqp-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Wed, 17 Jun 2020 18:19:37 -0700 Received: from NAM04-SN1-obe.outbound.protection.outlook.com (100.104.98.9) by o365-in.thefacebook.com (100.104.94.197) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1979.3; Wed, 17 Jun 2020 18:19:04 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ihOmv1LGb2z2KJIdD+H2OZvPLXtTJijzgFphM035e6iRriq78guqaO/TZziMFjoshQV9LmKKv7deO99Ky6ltExtGW9Lmt9xr61uTcInSzjhP5SrpgRTX7C2uXIr/LXdjlccVndYGpxD1kwuW2Ni69dEdkhFAbkTbk5vrEfezzZPdln6xufdF2lO0xJY3Vv3T5EiIwfcsZ/L/JU8e6bYKrgCrSZ/JgBXl1tQU0lv1Ln4hZYL6f5YBTrtrLtrQ/+EntUODB26nnjgAal7sSXtjiMSaxU0R6oAPrJNr7PkBVJf9dxreRhAoVnBjtr0mkvcwKVFqA8sJvkmo4Ov0fMhiUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=wcx8YVBZHU75QQNWCyUI4ONPrV3RM4j1rlti8vgFFL8=; b=RRljhxp3sQqCKgjFIbA0hzYR7QoBWObDwtB2bw8HcidPIPL0XsY+aqU2DLKdT4hg2twpMrS4Gb8ivW/Mfil2ferJNIvkvOBkzxrHNNneNNvZJV8yQG/y7x6G08n9hRr54l1KVYSii30KnYhgh9S7Iua5wrDVZAscKW6KIod0NWrxihcwyvSrgfsHnwhZTofanobwxVBP85NZN8dDaTOZdxBMH3CdouY8EblYTQDKWDKe9ulvcUtxlsxGQ/3d96JfJjwePTaW8HHwVSrgOwQ+C/10Zi6Db+z6JxJZ1NNRotKNVqjoCvgwGX1kGoW0cMuN7IsTXwrRIUF3+8AkQcrEsw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=fb.com; dmarc=pass action=none header.from=fb.com; dkim=pass header.d=fb.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.onmicrosoft.com; s=selector2-fb-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=wcx8YVBZHU75QQNWCyUI4ONPrV3RM4j1rlti8vgFFL8=; b=YyiuqBUAFQZbx8daxKUEzV9DzREfYTw59Tk4u8OOsOaYfJn9W7CIKKAFDRvxWkKcCqGgbWa+Z4ebQvIZnOQhbxQN5LPGQWL0/42qQZ76afh5pmIUamIIB/1/kpkMKNN3f1fNHnbnLIcgHPIXuCV7Csi4wsnUKoZ5cSmiGwgEim4= Received: from SN6PR1501MB4141.namprd15.prod.outlook.com (2603:10b6:805:e3::14) by SN6PR15MB2397.namprd15.prod.outlook.com (2603:10b6:805:1c::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3109.21; Thu, 18 Jun 2020 01:19:02 +0000 Received: from SN6PR1501MB4141.namprd15.prod.outlook.com ([fe80::3046:2fa:5da3:73be]) by SN6PR1501MB4141.namprd15.prod.outlook.com ([fe80::3046:2fa:5da3:73be%7]) with mapi id 15.20.3088.028; Thu, 18 Jun 2020 01:19:02 +0000 Date: Wed, 17 Jun 2020 18:18:58 -0700 From: Roman Gushchin To: Shakeel Butt CC: Andrew Morton , Christoph Lameter , Johannes Weiner , Michal Hocko , Linux MM , Vlastimil Babka , Kernel Team , LKML Subject: Re: [PATCH v6 00/19] The new cgroup slab memory controller Message-ID: <20200618011858.GC24694@carbon.DHCP.thefacebook.com> References: <20200608230654.828134-1-guro@fb.com> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-ClientProxiedBy: BY3PR04CA0016.namprd04.prod.outlook.com (2603:10b6:a03:217::21) To SN6PR1501MB4141.namprd15.prod.outlook.com (2603:10b6:805:e3::14) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from carbon.DHCP.thefacebook.com (2620:10d:c090:400::5:9687) by BY3PR04CA0016.namprd04.prod.outlook.com (2603:10b6:a03:217::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3109.21 via Frontend Transport; Thu, 18 Jun 2020 01:19:01 +0000 X-Originating-IP: [2620:10d:c090:400::5:9687] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a16ada88-6052-41bf-40d3-08d8132595e9 X-MS-TrafficTypeDiagnostic: SN6PR15MB2397: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-FB-Source: Internal X-MS-Oob-TLC-OOBClassifiers: OLM:9508; X-Forefront-PRVS: 0438F90F17 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 8zFTndWHVNNGtD9y2m0Evv0yC/XMLRqOqGiVQrTnT679IiCntvn9KJtZ9uPQik8yuAPctq6Bowh3uU0yEI4TbWzIuUpQIOj6KJ84jxM7xc+znrEBHwhKZgwU0i0+ng+MvpNWAsgu/mgY002bxKuW3lRPbvTR55mny/Tb9yX9JYSzwdLmhUyipxKiSqL8ZtCLiAFmJzyzlDGmXzSG/BhV87K9v4JeXHaIsW7KYj44C6tvKE2EbD1iXGijUYVjcimGf/4ab20Y0haLpGNrNOJ4ZLadk5DT/AAkc0WoWPle7Ji6eiisqdaI1AT8qNEMfVBLdctN905kQhgP996Rf9IcKA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SN6PR1501MB4141.namprd15.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:(366004)(136003)(39860400002)(396003)(346002)(376002)(54906003)(2906002)(83380400001)(316002)(5660300002)(478600001)(4326008)(186003)(16526019)(86362001)(6666004)(7696005)(8676002)(52116002)(66476007)(66556008)(33656002)(66946007)(6916009)(6506007)(53546011)(4744005)(9686003)(8936002)(1076003)(55016002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData: YXQPT9FQjdzZyLAL/fTffFAeV9ae3ww88rEXWnY41N0DB43YYc0NLa5UXGwObXZiTkspAvPIslfsep4tSMYXXV520hsrs2BdyqyTPVcE3Ln+VpX9BiLfpUNwkk/TYMrZXLTvuGr32h+3xvpX/cnuIAeLleB1nKXjjyiC2Bf/P+7KJSkjbFnN153UrkO+1SnCjdsDwCRx3qjMNcVteLMvjw2izddt5vCv1CrUWNnmPuJdi/dlo0K7ZL6c7QwJoFXtuJwYXm+r5JYtoqPrMzozvqyM8SuUvWotapBY1HX+RocZhMMvH7FQwp1O94+ocWgVOCl+7zov+olFUTYsAM8Y5B4Y55+6UasEtKqA3qq8lDGyoQfHuuvoPKdYtsV4ZuewQBPdnwuirqhuL2dpX7VBgXm0v1u4MQGtKIwKWEGuneRRmoMO0Ro3oTegeFk+ZvtJR/Uyr+vt2GIaUj1VNll4prk+jyrtmBxF0PZbPpUMvs2wxYPPCikwZTgs65HmiIzOA51UCuXb2gcNyrtjZcp02A== X-MS-Exchange-CrossTenant-Network-Message-Id: a16ada88-6052-41bf-40d3-08d8132595e9 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jun 2020 01:19:02.4393 (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-CrossTenant-UserPrincipalName: kwdRVfYvtKnaJrROtiVC5Vd+nizCR6BzkGgVXgQyaXN1vZwIX+zjRggBK7av6XyK X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR15MB2397 X-OriginatorOrg: fb.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.216,18.0.687 definitions=2020-06-17_12:2020-06-17,2020-06-17 signatures=0 X-Proofpoint-Spam-Details: rule=fb_default_notspam policy=fb_default score=0 mlxscore=0 mlxlogscore=999 phishscore=0 spamscore=0 clxscore=1015 bulkscore=0 cotscore=-2147483648 suspectscore=1 adultscore=0 impostorscore=0 lowpriorityscore=0 malwarescore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2006180007 X-FB-Internal: deliver Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 16, 2020 at 06:46:56PM -0700, Shakeel Butt wrote: > On Mon, Jun 8, 2020 at 4:07 PM Roman Gushchin wrote: > > > > This is v6 of the slab cgroup controller rework. > > > > The patchset moves the accounting from the page level to the object > > level. It allows to share slab pages between memory cgroups. > > This leads to a significant win in the slab utilization (up to 45%) > > and the corresponding drop in the total kernel memory footprint. > > Is this based on just SLUB or does this have a similar impact on SLAB as well? Just got some fresh numbers on my desktop running 5.8-rc1 + slab controller v6. It's 8-cores Ryzen 1700 with 32 GB RAM running Fedora 32. I measured the size of slab memory just after logging into the system. SLUB SLAB Original: 463232 kB 312880 kB Patched: 194840 kB 193392 kB -58% -38% Plus perpcu memory usage is also a bit lower. Thanks!