Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp881652yba; Thu, 18 Apr 2019 11:08:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqypg3AYBPgSlr/1pkbpT1WdDQP2mRnIbX3MdvjCeuie5vCzU7UYmStz51gUIAAPDm24n2Vk X-Received: by 2002:aa7:9151:: with SMTP id 17mr97596760pfi.192.1555610883161; Thu, 18 Apr 2019 11:08:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555610883; cv=none; d=google.com; s=arc-20160816; b=loVOJCgvW+/ihEtFY6RM37aZeskSfeDkaiRSQohAVJnC6YYrUinFPawcaZgkTndbfK C+Tbx1zq3+gWDcROE18fi1MWpI27w/3t/ml4BQwharQc/hsAJb8ZiURGknyxwVr/LpSt aP909KonGrklpexvSKXiHrxURI8PEDw64rqYA8Nvz23y8BXP9I6KCssD7v18GVsC0P/L 85F9+cfMa1Wct9N7zYOclW8zEHPRZBWQUjXm/6uPIDeT87q2TOe8PGwLHdsj9qcGwD+/ efwI3rlUEC83XDjP2s0fK+s20jVen8hwnLCRAyuzrjIdaEUQTvLHTjMF0XDfN8fbo9Ka XXig== 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=nyD1XsBQY82CeJGECiRnHzq5/mZwh+IClLs8oH+5N10=; b=aH6YsI/VSqhgdxHTPQtP/xqVz7tsrHrT88rsjAuPovYncVnwGJBgrZVixoSZZqjSFF fVFShDfq2yqcZTN3+iJM55r9PyF5w28XNue2WWmh18JYdgOKw/kd0+dUNAokOxEkfSG0 hFA3X3pWNpo30oHDSD8UUnRUvjceGz6p5dyJck4w9hmJ7QS9/U+uD2z9TFY6m6ZG3sGd k7uexb3UC1u8i7g7ZyQokQTUu9A3cI8yN2mXWXgSLBMCzdY8vN/crg8U3Pe+QWqwKIi8 Zb4doNcbuDeIWHDvNuYcQUXyeOZQpqDwce3NTv2bhzLQgVk2O06105IQvkxiVQvm2dJ3 7STA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fb.com header.s=facebook header.b=Sa0qcggn; dkim=pass header.i=@fb.onmicrosoft.com header.s=selector1-fb-com header.b=UbZ7bYAj; 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 o4si1750746plb.425.2019.04.18.11.07.48; Thu, 18 Apr 2019 11:08:03 -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=@fb.com header.s=facebook header.b=Sa0qcggn; dkim=pass header.i=@fb.onmicrosoft.com header.s=selector1-fb-com header.b=UbZ7bYAj; 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 S2391204AbfDRSEw (ORCPT + 99 others); Thu, 18 Apr 2019 14:04:52 -0400 Received: from mx0a-00082601.pphosted.com ([67.231.145.42]:56184 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391176AbfDRSEs (ORCPT ); Thu, 18 Apr 2019 14:04:48 -0400 Received: from pps.filterd (m0044010.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x3IHjbVE017692; Thu, 18 Apr 2019 11:04:31 -0700 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=nyD1XsBQY82CeJGECiRnHzq5/mZwh+IClLs8oH+5N10=; b=Sa0qcggn9/W1DCYcoKMn1EqwHPtOe/VOZdPTKrWFStfkochgbfuOjSksgVWUnFKSOJ8P 2PEiX50mr1rcRzp2wVI0QWRbgIUrraRVXGG8lgSp9IbzCMLE8I1w7sTp43mcyqS9kFJ0 9mUpo1JlCQwOu9IPkqX7FYJd9GINxpvTUpE= Received: from mail.thefacebook.com (mailout.thefacebook.com [199.201.64.23]) by mx0a-00082601.pphosted.com with ESMTP id 2rxj0bteap-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Thu, 18 Apr 2019 11:04:31 -0700 Received: from prn-hub01.TheFacebook.com (2620:10d:c081:35::125) by prn-hub02.TheFacebook.com (2620:10d:c081:35::126) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.1.1713.5; Thu, 18 Apr 2019 11:04:29 -0700 Received: from NAM05-BY2-obe.outbound.protection.outlook.com (192.168.54.28) by o365-in.thefacebook.com (192.168.16.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.1.1713.5 via Frontend Transport; Thu, 18 Apr 2019 11:04:29 -0700 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=nyD1XsBQY82CeJGECiRnHzq5/mZwh+IClLs8oH+5N10=; b=UbZ7bYAjhMOyu6cogHZN0iRwgYu0i3VJMqeSfFKKlrFml9HMrZDIWK0P43o2Kd8gyts66OszOXw0tn83ilevBIiQBm4legnczn4aBwIH2S1wjXj8RwY3IjpQgyhFMT+uBydsZzGQKH8dwVgghShISsbAlGkPL3hda8o9DvXygYo= Received: from BYAPR15MB2631.namprd15.prod.outlook.com (20.179.156.24) by BYAPR15MB2598.namprd15.prod.outlook.com (20.179.155.159) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1813.12; Thu, 18 Apr 2019 18:04:27 +0000 Received: from BYAPR15MB2631.namprd15.prod.outlook.com ([fe80::d1a1:d74:852:a21e]) by BYAPR15MB2631.namprd15.prod.outlook.com ([fe80::d1a1:d74:852:a21e%5]) with mapi id 15.20.1792.021; Thu, 18 Apr 2019 18:04:27 +0000 From: Roman Gushchin To: Christopher Lameter CC: Roman Gushchin , Andrew Morton , "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" , Kernel Team , Johannes Weiner , Michal Hocko , Rik van Riel , "david@fromorbit.com" , Pekka Enberg , Vladimir Davydov , "cgroups@vger.kernel.org" Subject: Re: [PATCH 4/5] mm: rework non-root kmem_cache lifecycle management Thread-Topic: [PATCH 4/5] mm: rework non-root kmem_cache lifecycle management Thread-Index: AQHU9WhFLwAo90XwHUSqs2s91sh5hqZB7DAAgABLTYA= Date: Thu, 18 Apr 2019 18:04:27 +0000 Message-ID: <20190418180421.GA11008@tower.DHCP.thefacebook.com> References: <20190417215434.25897-1-guro@fb.com> <20190417215434.25897-5-guro@fb.com> <0100016a30a83bcf-7f99039c-77ec-4c48-a1c4-92e398f8f185-000000@email.amazonses.com> In-Reply-To: <0100016a30a83bcf-7f99039c-77ec-4c48-a1c4-92e398f8f185-000000@email.amazonses.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: MWHPR10CA0061.namprd10.prod.outlook.com (2603:10b6:300:2c::23) To BYAPR15MB2631.namprd15.prod.outlook.com (2603:10b6:a03:152::24) x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [2620:10d:c090:200::3:497d] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: e06f99aa-5c21-4301-a429-08d6c4284c0b x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600141)(711020)(4605104)(2017052603328)(7193020);SRVR:BYAPR15MB2598; x-ms-traffictypediagnostic: BYAPR15MB2598: x-microsoft-antispam-prvs: x-forefront-prvs: 0011612A55 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(136003)(366004)(346002)(396003)(376002)(39860400002)(189003)(199004)(81156014)(7416002)(14454004)(316002)(54906003)(46003)(86362001)(186003)(11346002)(476003)(52116002)(446003)(99286004)(76176011)(6506007)(386003)(486006)(6512007)(9686003)(97736004)(53936002)(6246003)(5660300002)(102836004)(25786009)(1076003)(305945005)(6436002)(7736002)(4326008)(68736007)(256004)(6916009)(229853002)(6486002)(478600001)(4744005)(6116002)(81166006)(2906002)(33656002)(8936002)(71190400001)(8676002)(71200400001);DIR:OUT;SFP:1102;SCL:1;SRVR:BYAPR15MB2598;H:BYAPR15MB2631.namprd15.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A: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: JbZp0dA45yXhLdF+2x9L89yc3AUHz2IG9N6hffaKyL1t/FDi6LQjfyJ8Zict3qaZPYhJbfDa2Fi7I/lakWcpNosX80BQ9+DfDJHB1SL+FmVn8i91MlZ3Ts1Px+N09014IsaI8LjB8ZVjT5jv6meBE5cJ0J3tmAaeoUN4uRiW0x6RoJoAWID6ubpHE3Eh54mZICKwMWG1st5wiPLEYEE9SbbeFXNTTo7c5ofYUq41ABLo/GMyLmO/5qLwvp2fBbyn+7ElFwDES9hgyXH+MSV3L3r7SWg0fQCSU0E2HKyvMMRr0yxMZheEiKFrtHzuCmubcE46WbFMchfcL75R98jFuumue0VQS+ByNhNmyrdaZxw1WSZl6g5CALuVfriWGms4mC54x1kzsyRpFY0RLCyXrd9bfyW29PdEb5ci84XPXQk= 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: e06f99aa-5c21-4301-a429-08d6c4284c0b X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Apr 2019 18:04:27.5813 (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: BYAPR15MB2598 X-OriginatorOrg: fb.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-04-18_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, Apr 18, 2019 at 01:34:52PM +0000, Christopher Lameter wrote: > On Wed, 17 Apr 2019, Roman Gushchin wrote: >=20 > > Let's make every page to hold a reference to the kmem_cache (we > > already have a stable pointer), and make kmem_caches to hold a single > > reference to the memory cgroup. >=20 > Ok you are freeing one word in the page struct that can be used for other > purposes now? >=20 Looks so!