Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp3419764rwl; Mon, 27 Mar 2023 13:53:24 -0700 (PDT) X-Google-Smtp-Source: AKy350bk0Ikr4yOqEvSUGkTp3N4KEc8qPG4rVDMrYSEEZYNTj1xHwiE8Q/yjUGMWfUXjgiW9N0/5 X-Received: by 2002:a17:902:f546:b0:19c:be57:9c82 with SMTP id h6-20020a170902f54600b0019cbe579c82mr16515700plf.65.1679950404315; Mon, 27 Mar 2023 13:53:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679950404; cv=none; d=google.com; s=arc-20160816; b=db9Fj2tJkKgCDg3wu9z2v2L21hvXM12rXNhRFYF5oPxh+byIxXbEZe39NWfjz6kh9R 5EUN3ipb886ghuPOvIlmK6JkJGbqVLW70P+nSMjEeWRUficQMRaPaIOANt2XpvLJxRVC 9P6VWqd1klLjA4Yf41Op4fgsafB3f7mh4Ad1iv63xlP1VHtMbOWZSIrpVfF0TXDpfl9f 2mMpzAKLoEKHV6qx8QVgnPjZn0ZHRWszQHyS3Hl3gBx+5ewF+L5ErL9yc1hSJJo6Ezdh gk90BYiIaLgXUx+ctffSlcMnFHMfat+zIdBfdBWigyBsNhpPpEEqsqb9fC8JuDHE2mlG ys9Q== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=IgIrKz0UNBCn4PDiHW0xzrI6MTRBYSXxkJu/zMHUvKg=; b=qUXXVLg52e48oHZWq2lmPdk53HVigA8KZr7furPw6f+gMC1Zm+iC3/M3AdHRtgoTu+ mWaQ2tZZHEtMoOoGXdm0TqyiRQJH/QIteLjtsO/aSozoREynEsigSze+qURU7+pYv2h9 oyyH1bneQ6xN9yigQ5Vbv0U99I2Va+a/DhXSjU3UmAIHtv5hhjOeH4KbMW25DwmFMOnm f9gn0uY8e/TLzQrFIq6w6j62tOTMX4jjpsOfsWqraq1EMdiOsNK8thiG2aWWXWweLtsh SHC1WxRVBOgnHn8vY7L/bu67/7/87kyuPoYC1Zt04YVcJDeZIk3oRv+kC4xFkUYCBuj7 do3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=aTyTas8x; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 81-20020a630254000000b00513162c223bsi10474440pgc.298.2023.03.27.13.53.13; Mon, 27 Mar 2023 13:53:24 -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=@suse.com header.s=susede1 header.b=aTyTas8x; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230222AbjC0Ukm (ORCPT + 99 others); Mon, 27 Mar 2023 16:40:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37566 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229456AbjC0Ukk (ORCPT ); Mon, 27 Mar 2023 16:40:40 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4485F1719; Mon, 27 Mar 2023 13:40:39 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id DE16C1FE22; Mon, 27 Mar 2023 20:40:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1679949637; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=IgIrKz0UNBCn4PDiHW0xzrI6MTRBYSXxkJu/zMHUvKg=; b=aTyTas8xnndKQ+7rRpt7+uxegjLQTBesNPvbKnCfTN5qLbE6ycmNqY7poDyjI3gNMFpEEc q9Tr3ZJm7OP//76yYW4qy6Urq56r/oM+X/rPvVywvwdlCrSja9e+wB0YDmj0DVFfr2QMqj TEEofls4ExVM5wz3WIr2NkNvgkrZNJI= Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id C06BA13482; Mon, 27 Mar 2023 20:40:37 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id PIgTLEX/IWSFNAAAMHmgww (envelope-from ); Mon, 27 Mar 2023 20:40:37 +0000 Date: Mon, 27 Mar 2023 22:40:37 +0200 From: Michal Hocko To: Florian Schmidt Cc: Michal =?iso-8859-1?Q?Koutn=FD?= , Johannes Weiner , Roman Gushchin , Shakeel Butt , Muchun Song , Andrew Morton , cgroups@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [RFC] memcg v1: provide read access to memory.pressure_level Message-ID: References: <20230322142525.162469-1-flosch@nutanix.com> <20230324150350.fu7itbqqvtjmyf3s@blackpad> <6f4420d0-2f86-7294-01e1-6806ef7e4686@nutanix.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <6f4420d0-2f86-7294-01e1-6806ef7e4686@nutanix.com> X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 27-03-23 14:59:37, Florian Schmidt wrote: > Hi Michal, > > On 24/03/2023 15:03, Michal Koutn? wrote: > > On Wed, Mar 22, 2023 at 02:25:25PM +0000, Florian Schmidt wrote: [...] > > > (b) would you be interested to take this patch, or is it too niche a fix > > > for a legacy subsystem? > > > > I'd rather not extend this "unique way" with additionally unique dummy > > helpers. > > I understand that this is all code that has no modern user any more, which > is why I tried to keep the fix as self-contained as possible. > Another option would be to have a special handler in cgroup_file_mode(), but > that feels a lot klunkier to me, and leaks a v1-specific behaviour into the > shared cgroup code. Yes, this is effectivelly a deprecated interface but I do agree that we shouldn't really make life of users more complicated than necessary. If the simplest solution to address this is to provide an empty callback then be it. I am not sure but I do not think there are other cgroup interfaces to warrant a more generic solution. -- Michal Hocko SUSE Labs