Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp599661yba; Thu, 18 Apr 2019 06:37:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqyZToP1OazMbT6/kmLe3IEE1iQCBk5mA3ct7iBI9rDq263RlIHh5E4wn4F6YynKopzX23a+ X-Received: by 2002:a17:902:820e:: with SMTP id x14mr95257966pln.207.1555594656305; Thu, 18 Apr 2019 06:37:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555594656; cv=none; d=google.com; s=arc-20160816; b=CTU5WXuVfPDiFRqP9xSgOsWpYJW+Hh7+Dh6SasLg2MsTlVZs8Ipx6wzKNCz/C06lxY /1KmNO2MQxETnMBufBMjj34vlj2GFBqoutpX14rMiJhevezgoxHPZetg1RKl7AypIe24 pDI3TPOZWmyEgh3PGefHWk5vFESvOWNeC4VgDmbpKCg3vdUu2TAWKvnndbpVQ9Fk2+4D yw5mE/W7LwZfdS4ccdf8/HRc6rfVjgREQItPvi182e3cxrOfMA/mvop2wzO21Su42v3O P+8cMI06CRzo0qRSop+bI0DYL65wSPPk4MiykqhCgZ9Eja+f7iiiHT6h96gYmjLlXDjm ezAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:feedback-id:mime-version:user-agent :references:message-id:in-reply-to:subject:cc:to:from:date :dkim-signature; bh=tGKbg7T4m2hja67VSnD+5sN45YQjy0gEHiOhoXRYwnE=; b=eTaj+NL2u4t4PeGq/jnMZGmfUpsWmOTn6McxO/DXuHmAV+EUCqha9nKNXlzaoHP4ZC tSP5Y1ZPAQ84PjhpwtUfsRdUEZ/Qlp6XYy9gyREVPHzuRCpB5dHIerUT9jLKDc1KUMzD s8bcMsaY2DXFd3BXLT4b+dOgdl30qhLaQhbzv8Od4zkBzS3R+Yf5jb+r0xkjG74UXMlT JIEvNXdMRmhg5JYLWTwFujv0Tt1ittPNaGoHyU7aG/EE66R/VNl7dHh9qyKJt7Qn3CN3 LXyHvtq62Z8XFde5nFv7+ExRGE4++5dwlMtO1amEt3XmxdxrppJ1GALqMwR7n4Uh4BEQ drcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazonses.com header.s=6gbrjpgwjskckoa6a5zn6fwqkn67xbtw header.b=ab1gt2ub; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a17si2049032plm.25.2019.04.18.06.37.20; Thu, 18 Apr 2019 06:37:36 -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=@amazonses.com header.s=6gbrjpgwjskckoa6a5zn6fwqkn67xbtw header.b=ab1gt2ub; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388834AbfDRNey (ORCPT + 99 others); Thu, 18 Apr 2019 09:34:54 -0400 Received: from a9-32.smtp-out.amazonses.com ([54.240.9.32]:49086 "EHLO a9-32.smtp-out.amazonses.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727807AbfDRNey (ORCPT ); Thu, 18 Apr 2019 09:34:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=6gbrjpgwjskckoa6a5zn6fwqkn67xbtw; d=amazonses.com; t=1555594493; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:MIME-Version:Content-Type:Feedback-ID; bh=tGKbg7T4m2hja67VSnD+5sN45YQjy0gEHiOhoXRYwnE=; b=ab1gt2ubDBnvlERvCSi1ce9rbtCoG/YS77M3OGWWcVMUjDZG7kdCTAIh3pFVU73u JBYkidNGYMpwtlzEcOGCrYV7+GGxIkApxsJL4FIYB0Sro4vm00cQ7klrHZkK5gkWFTd +5z2ftsGtTwkIdbIkR74gay/PBi7mTjrZi0orids= Date: Thu, 18 Apr 2019 13:34:52 +0000 From: Christopher Lameter X-X-Sender: cl@nuc-kabylake To: Roman Gushchin cc: Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, kernel-team@fb.com, Johannes Weiner , Michal Hocko , Rik van Riel , david@fromorbit.com, Pekka Enberg , Vladimir Davydov , cgroups@vger.kernel.org, Roman Gushchin Subject: Re: [PATCH 4/5] mm: rework non-root kmem_cache lifecycle management In-Reply-To: <20190417215434.25897-5-guro@fb.com> Message-ID: <0100016a30a83bcf-7f99039c-77ec-4c48-a1c4-92e398f8f185-000000@email.amazonses.com> References: <20190417215434.25897-1-guro@fb.com> <20190417215434.25897-5-guro@fb.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-SES-Outgoing: 2019.04.18-54.240.9.32 Feedback-ID: 1.us-east-1.fQZZZ0Xtj2+TD7V5apTT/NrT6QKuPgzCT/IC7XYgDKI=:AmazonSES Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 17 Apr 2019, Roman Gushchin wrote: > 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. Ok you are freeing one word in the page struct that can be used for other purposes now?