Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp1429798rdh; Mon, 25 Sep 2023 12:31:13 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE8SVSLckQwtepqaGI5Ox20X37YRENNGfMJ0yeBe9qXuLeIx5jUoTi7fCMFVz+hNOSGbZJ3 X-Received: by 2002:a05:6a21:3d8a:b0:15d:e68d:a850 with SMTP id bj10-20020a056a213d8a00b0015de68da850mr7656373pzc.29.1695670273695; Mon, 25 Sep 2023 12:31:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695670273; cv=none; d=google.com; s=arc-20160816; b=GSOQhTD2hKtPyESJccNRktB9iUgkf+2ZrhHaEMNiXrg0Bgh4zccIiB8k1mhGark9JY OdcF0P3GXm76mzWSjr5Ws5aqJG6cNxBROUZ0OxmwXCbCNwjKS9aBxg+7otUnHTz98AsZ mPp+4HVg3MiF6RW6c0DYCLXIvxSrhQzsb/mwyWbXGrnM90DjDvxrNcqtRvL7zr2qb8Sz cdeTHRYx12qtU73JF7pJUSqSHnkZ0/5KOnAArmMZrX7+y+cGddgWmkHRKCmHzIGcJLCT Fh+iFc3FZdQWPqohy1Qn9PIbhTlUd1zXOzyQ72wEUJfiecnmijNZsmNSWJAIrn4Dglpe qolw== 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:date:dkim-signature; bh=CQnJityth03MjKwOvKQL0o16b7IPcbMBFQLaKRocuTI=; fh=NlV6/0VAW3ZkkVG6jo9VUteRIeadMAl75elV6j0EiLM=; b=t8Sjxu4tOPrV6t1GhcIdtb6j1D7261OVYTpE1kTkJZBjaGsAPkBOw+fEaVUuUn4d2a /tJTo87mTE7j/q3m4icxiHR12sGX3Ixs1P2hw0SyzxcykPPPUV+xSREnqE2neAmwl18I 35wjaPHn3COHWfT1ZEaA9MRSGr93nn+CAz68gS07fx9Bc4oiDaM8zeaC1T8Wox1gee+i jDoo9AdRxIG/fD2OUcXZMaqWfyTk2lXIfWDbbOnipDNG/X6dAnseCcrwzNqaN070JZwm 4ZPV2LT/CTms/jaeAyEbWya0fjLzYtBheq6e79PH95OqPHUM1tt60ROGJjMFIPTCXGaI HVVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b="kj08/0h4"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id fw3-20020a17090b128300b002639acf55c7si12721819pjb.7.2023.09.25.12.31.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Sep 2023 12:31:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b="kj08/0h4"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 6494A80784D8; Mon, 25 Sep 2023 00:41:50 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232320AbjIYHle (ORCPT + 99 others); Mon, 25 Sep 2023 03:41:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41064 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229561AbjIYHld (ORCPT ); Mon, 25 Sep 2023 03:41:33 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 31F28103; Mon, 25 Sep 2023 00:41:26 -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 E87051F38D; Mon, 25 Sep 2023 07:41:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1695627684; h=from:from:reply-to: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=CQnJityth03MjKwOvKQL0o16b7IPcbMBFQLaKRocuTI=; b=kj08/0h41LkrVpFjzbRDfKtPyfb8A9wff/lNCGoZORwH3/vbR7S1O0z7SQg/WlPBzlzRF9 psrRMbPTeardaGcQnl1uLAlznmSm7WRdR2+NiBarxr0RZup33ctRJwZsZWbILA95SR/1N7 2JSgKrJckBdee7P9tpf6LgjjwHT79jQ= 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 C775913A67; Mon, 25 Sep 2023 07:41:24 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id QMWyLaQ5EWXuQQAAMHmgww (envelope-from ); Mon, 25 Sep 2023 07:41:24 +0000 Date: Mon, 25 Sep 2023 09:41:24 +0200 From: Michal Hocko To: Roman Gushchin Cc: Jeremi Piotrowski , Shakeel Butt , Johannes Weiner , Muchun Song , Greg Kroah-Hartman , stable@vger.kernel.org, patches@lists.linux.dev, Tejun Heo , Andrew Morton , linux-kernel@vger.kernel.org, regressions@lists.linux.dev, mathieu.tortuyaux@gmail.com Subject: Re: [REGRESSION] Re: [PATCH 6.1 033/219] memcg: drop kmem.limit_in_bytes Message-ID: References: <20230917191040.964416434@linuxfoundation.org> <20230917191042.204185566@linuxfoundation.org> <20230920081101.GA12096@linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net> <101987a1-b1ab-429d-af03-b6bdf6216474@linux.microsoft.com> <4eb47d6a-b127-4aad-af30-896c3b9505b4@linux.microsoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, 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 lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Mon, 25 Sep 2023 00:41:50 -0700 (PDT) On Fri 22-09-23 16:00:30, Roman Gushchin wrote: > On Wed, Sep 20, 2023 at 03:47:37PM +0200, Michal Hocko wrote: > > On Wed 20-09-23 15:25:23, Jeremi Piotrowski wrote: > > > On 9/20/2023 1:07 PM, Michal Hocko wrote: > > [...] > > > > I mean, normally I would be just fine reverting this API change because > > > > it is disruptive but the only way to have the file available and not > > > > break somebody is to revert 58056f77502f ("memcg, kmem: further > > > > deprecate kmem.limit_in_bytes") as well. Or to ignore any value written > > > > there but that sounds rather dubious. Although one could argue this > > > > would mimic nokmem kernel option. > > > > > > > > > > I just want to make sure we don't introduce yet another new behavior in this legacy > > > system. I have not seen breakage due to 58056f77502f. Mimicing nokmem sounds good but > > > does this mean "don't enforce limits" (that should be fine) or "ignore writes to the limit" > > > (=don't event store the written limit). The latter might have unintended consequences. > > > > Yes it would mean that the limit is never enforced. Bad as it is the > > thing is that the hard limit on kernel memory is broken by design and > > unfixable. This causes all sorts of unexpected kernel allocation > > failures that this is simply unsafe to use. > > > > All that being said I can see the following options > > 1) keep the current upstream status and not export the file > > 2) revert both 58056f77502f and 86327e8eb94 and make it clear > > that kmem.limit_in_bytes is unsupported so failures or misbehavior > > as a result of the limit being hit are likely not going to be > > investigated or fixed. > > 3) reverting like in 2) but never inforce the limit (so basically nokmem > > semantic) > > Since it's a part of cgroup v1 interface, which is in a frozen state as a whole, > and there is no significant (performance, code complexity) benefit of > additionally deprecating kmem.limit_in_bytes, I vote for 2). > 1) is also an option. We have a stronger agrement over 3) http://lkml.kernel.org/r/ZRE5VJozPZt9bRPy@dhcp22.suse.cz. Please speak up if you disagree. -- Michal Hocko SUSE Labs