Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp824211ybk; Fri, 15 May 2020 14:48:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw+vu7HkATMyVbRfEa16nVOtyxyq7FMSklIHoveFJGHIrfmrsR976xd7DMrVVzdqfQJ7cEd X-Received: by 2002:a17:906:46d3:: with SMTP id k19mr4722700ejs.349.1589579295415; Fri, 15 May 2020 14:48:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589579295; cv=none; d=google.com; s=arc-20160816; b=nStGIAib+ZoBeLOhEIMEdOFBZn1V2LWiFXAY0oStYppUIAnPuOUV7BEyJ2KsGHs6Xa mHTAz2sXw4bfk9sgHIyO6gEc/a5CDg6Sd2DVPckaya9mHuxEDfaqbQZv1ha31vchctHY hCPn8aX/paVc5qU2IgKWefUhAC+Vsw1xiRP37Io0II+K62AVAaZt+Hy4NYlwXMuUi9x6 M4qTSRly9WTuvI+qXdlgBsMAcgJOuhuf+VaWzpG3KFmlMInIk3I5KQ3D1Edg2rELSQz8 7y7OoTR7jvu3WgjYnr9+PDlkSoaWt7duqtBOaHcTk4G85Akyi6iEqiUR4FB29jdx+e2/ gEXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=/btDKp36FsJrcZXBXj2YM6akH552X4TF5FlMuKxydpA=; b=bVhm2vryPE7rgrnYGnC0URqFGRKCxhLgAmg/W3b+EkhOodZdG4Qb2eaAelfLQjWXaO 2/TIe/YsAyAn9l8xnRmv24lEvhfOq1rCG1G0G8q3KkXk4UprH1tg/xClPbxkHc2rz2c/ GUmUON9VYEk+/ZY+10UiNHGLdu9USJUSAiDpqh0hBOT8iXldUO0tcoqNbFkGPZuKCS+N XC0GvLIW5bwS4YycS21xxqwKpfzHcxnw3sqAm8NMVu91IP//ulKBJYxtwed0zlWmAck4 WwjDz51NMfrjP4x1XTeV8yHOYOBZ5LBMw58u9CZ95j5l6btv0OOGnR5c9+Bbv8N0DM4P m6gw== ARC-Authentication-Results: i=1; mx.google.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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r11si1879329edq.390.2020.05.15.14.47.52; Fri, 15 May 2020 14:48:15 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727059AbgEOVpb (ORCPT + 99 others); Fri, 15 May 2020 17:45:31 -0400 Received: from gentwo.org ([3.19.106.255]:33900 "EHLO gentwo.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726228AbgEOVpb (ORCPT ); Fri, 15 May 2020 17:45:31 -0400 Received: by gentwo.org (Postfix, from userid 1002) id D25713EBE5; Fri, 15 May 2020 21:45:30 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by gentwo.org (Postfix) with ESMTP id D01E83EA5E; Fri, 15 May 2020 21:45:30 +0000 (UTC) Date: Fri, 15 May 2020 21:45:30 +0000 (UTC) From: Christopher Lameter X-X-Sender: cl@www.lameter.com To: Roman Gushchin cc: Andrew Morton , Johannes Weiner , Michal Hocko , linux-mm@kvack.org, kernel-team@fb.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 04/19] mm: slub: implement SLUB version of obj_to_index() In-Reply-To: <20200513005741.GA67541@carbon.dhcp.thefacebook.com> Message-ID: References: <20200423000530.GA63356@carbon.lan> <20200425024625.GA107755@carbon.lan> <20200427164638.GC114719@carbon.DHCP.thefacebook.com> <20200430171558.GA339283@carbon.dhcp.thefacebook.com> <20200504182922.GA20009@carbon.dhcp.thefacebook.com> <20200513005741.GA67541@carbon.dhcp.thefacebook.com> User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 12 May 2020, Roman Gushchin wrote: > > Add it to the metadata at the end of the object. Like the debugging > > information or the pointer for RCU freeing. > > Enabling debugging metadata currently disables the cache merging. > I doubt that it's acceptable to sacrifice the cache merging in order > to embed the memcg pointer? Well then keep the merging even if you have a memcg pointer. The disabling for debugging is only to simplify debugging. You dont have to deal with multiple caches actually using the same storage structures. > Figuring out all these details will likely take several weeks, so the whole > thing will be delayed for one-two major releases (in the best case). Given that > the current implementation saves ~40% of slab memory, I think there is some value > in delivering it as it is. So I wonder if the idea of embedding the pointer > should be considered a blocker, or it can be implemented of top of the proposed > code (given it's not a user-facing api or something like this)? Sorry no idea from my end here.