Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp4277199ioo; Tue, 31 May 2022 00:15:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzvBz2DZgZ9D+jDMcnauW+WzoDOiMJGUeOaZG9evqc/BXFK3JfHKS2yfPoO0oVmnE/OpiVF X-Received: by 2002:aa7:cb8f:0:b0:42a:e9bd:3b5f with SMTP id r15-20020aa7cb8f000000b0042ae9bd3b5fmr62587749edt.8.1653981344990; Tue, 31 May 2022 00:15:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653981344; cv=none; d=google.com; s=arc-20160816; b=NBazSjcaIW18WoEnpM+5o7lkZ9XChuHmAZHAWe91zgzxx6g83jrk/sXSsa0jE3yPXN x4QgYwx/rNaCfCHmIibeYLVgeb6SS2Z4sVRaWdZRiCRqbTcC9tucajfrRpE1e2FATTOk oqq2Jd2Tjt53hEKGA4as9NIzOeP5+U3MfT473dERj02GTKLktZzC0Ud2kK7lQpEF9vo9 KkaeyQcUxu+XAryKODtVsFvKLM5eYxtyOjkcUO/BF7GasnBlhrUUpLP/onKAycCBUabM uRG4iT+a3WuaMrlHF0NP8uf6lHIHmWjdqg/Pp4ft2pCuLkyTRbmi4cZUnDWgVJZmNxpG 2/Ww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:dkim-signature:date; bh=CWLskQLKMPVKxlcT8cF2mhzS9rXCoBmCHqKI67gGiCw=; b=YFSU4/FEgEHPFfJUOibhX/BWlFzUuePYDBCIxoah2qNL5lQjI7FhrIEuKijXzqupIG ad+OlubCs+6mA/fZBgWXtnPjMQEBocJtjknN6UQGJK4LGlNrdM9ZLyNjzvbFQWh/iGrD oNf7q+EEEsv3F+o2mADHr8vxzWVX5WongPDWd9j2/rs/cZWpBDyt2Oy1bVQ5YHPVJJCY qUvyKehQ2IFU72AWGl2gXWKnX6cfnLLjUB3ogXO3QkH8UiZ1MeMXVqtfyQ208cU9Eqqz GYD8tVcV24PvBFZ9kf/fXS13MMEC1qmmALC59gR+Jwhm0du56anNteTRAq0xRmhrXdAR pDYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=f5jx0zSo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sa10-20020a1709076d0a00b006e85e292dadsi15124426ejc.657.2022.05.31.00.15.20; Tue, 31 May 2022 00:15:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=f5jx0zSo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243643AbiEaCqc (ORCPT + 99 others); Mon, 30 May 2022 22:46:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60286 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232746AbiEaCqb (ORCPT ); Mon, 30 May 2022 22:46:31 -0400 Received: from out0.migadu.com (out0.migadu.com [IPv6:2001:41d0:2:267::]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0FDFF94185; Mon, 30 May 2022 19:46:30 -0700 (PDT) Date: Mon, 30 May 2022 19:46:20 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1653965188; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=CWLskQLKMPVKxlcT8cF2mhzS9rXCoBmCHqKI67gGiCw=; b=f5jx0zSo1IDRLLA2GZuXmPBxAvu6IPoXlGGFIPAW6XeA5oP8KzsIUya+c1dZtZ3UwqO1Y6 alTzIKwUDxFq+Ya5GGK63RBl/slscys5MmU+WjXwPXiLMFoPRataIRfeAwFWACW+GEE26w rUWXxNveDigVU/2Y0MKCi5DvmbtlULU= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Roman Gushchin To: Andrew Morton Cc: Muchun Song , hannes@cmpxchg.org, mhocko@kernel.org, shakeelb@google.com, cgroups@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, duanxiongchun@bytedance.com, longman@redhat.com Subject: Re: [PATCH v5 00/11] Use obj_cgroup APIs to charge the LRU pages Message-ID: References: <20220530074919.46352-1-songmuchun@bytedance.com> <20220530141711.6cf70dcf200e28aa40407f6e@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220530141711.6cf70dcf200e28aa40407f6e@linux-foundation.org> X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: linux.dev X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 30, 2022 at 02:17:11PM -0700, Andrew Morton wrote: > On Mon, 30 May 2022 15:49:08 +0800 Muchun Song wrote: > > > This version is rebased on v5.18. > > Not a great choice of base, really. mm-stable or mm-unstable or > linux-next or even linus-of-the-day are all much more up to date. > > Although the memcg reviewer tags are pretty thin, I was going to give > it a run. But after fixing a bunch of conflicts I got about halfway > through then gave up on a big snarl in get_obj_cgroup_from_current(). > > > RFC v1: https://lore.kernel.org/all/20210330101531.82752-1-songmuchun@bytedance.com/ > > Surprising, that was over a year ago. Why has is taken so long? It's partially my fault: I was thinking (and to some extent still are) that using objcg is not the best choice long-term and was pushing on the idea to used per-memcg lru vectors as intermediate objects instead. But it looks like I underestimated the complexity and a potential overhead of this solution. The objcg-based approach can solve the problem right now and it shouldn't bring any long-term issues. So I asked Muchun to revive the patchset. Thanks!