Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp43616rdh; Sat, 23 Sep 2023 00:22:35 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEdFdtd/plzieZpXozSmdlMkyGdjw512cAinLKkPS5kgd920XiGgEOmb2a1SdVmJGgypcTb X-Received: by 2002:a17:902:e888:b0:1c5:ba50:2b28 with SMTP id w8-20020a170902e88800b001c5ba502b28mr2138967plg.25.1695453755252; Sat, 23 Sep 2023 00:22:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695453755; cv=none; d=google.com; s=arc-20160816; b=dAcb8PwZSglVFu/aE805kyzbDmy5Bf0ptaZ3j3C7Npjby2999+W7dIFa5DtkL77NMW 0ifliSbeoEvQZ5TZm6Us+5YJtz3HDlmoVmvCp6knd2JMGh5teZBsfBcBquUhcSy+MFbc JnFdUgsS65kVircXMcVhGqy0wFwvtQ5H+l8YWcYZeTR1dxa+hkM+koX1ffbC1+imP4QJ MCSwmnWbr3Yw1TIwjO+4N/2ZuCN2ZGS6EGoSwm4iV1016d54+1jWMFgzEIydEroWvG3G TBb8U2+ZeA6j6tHP06eCVo4m8a28nKuXT89GHYjqiyMvQFId/JIHrN7j5yrQdWZO6NDQ 0zYQ== 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=xnLthAI2KKZwUYazrEPUSMFwID0MKjI3FCNZtFBM4m4=; fh=ovqyHRwFpyy6wvoKnJJ3ZY0C2dNmPLTvWqDc0jb6a9U=; b=RCtQelvtTVsW0XtutgY6SwTEXvV+kpqvpFWVRGzE01DcrYdR7vcvuD2IygWLGSBauk OO202CLjnWEGyt2ZUk6vCDmfYjpNp5KT94cXhMMR5Oyz/X/ONLdurCAIa5pkvYEGW982 vaQ5s6S8n5iQtrtV9kThwajmuT54CPtVV1bqcINgLFc7lyd/ZVVbM5TaYHUyc0WCjY/H P8skAPyYm8LHkI1pP4w/dZy+5zRehUXb4UCEC1iMN4x/WGNrS5sbTJ88Y5F3VvYLBLWd A4/29OuR7TNliotxQvul3/sTisDV3yBLEkX+aUtJJK9+vLUC7CfcubIRRSzCyT1ngPF7 KOLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=E35HnXox; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id n6-20020a17090ade8600b002631e44f48csi5396507pjv.179.2023.09.23.00.22.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Sep 2023 00:22:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=E35HnXox; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id D4644837FEDA; Fri, 22 Sep 2023 16:08:38 -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 S230247AbjIVXIj (ORCPT + 99 others); Fri, 22 Sep 2023 19:08:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35128 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230246AbjIVXIi (ORCPT ); Fri, 22 Sep 2023 19:08:38 -0400 X-Greylist: delayed 473 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Fri, 22 Sep 2023 16:08:32 PDT Received: from out-206.mta1.migadu.com (out-206.mta1.migadu.com [IPv6:2001:41d0:203:375::ce]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1AF0719A for ; Fri, 22 Sep 2023 16:08:32 -0700 (PDT) Date: Fri, 22 Sep 2023 16:00:30 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1695423637; 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=xnLthAI2KKZwUYazrEPUSMFwID0MKjI3FCNZtFBM4m4=; b=E35HnXox4DMrYu3DkYtdgmp0uOW7ubbbmSyrum1CRnX+YpPXnGRoXIqr21W5ok6+a5jcR5 KJdYqD8of5GS6tMtn3L1CKtyBVVxIrjiG8nUcORjD1mPjNYsdtJSFSZOomwvYiNfPOr+XR Rqo+dUaRoJrsrQX0lusdx455KWZkuxg= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Roman Gushchin To: Michal Hocko 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-Migadu-Flow: FLOW_OUT X-Spam-Status: No, score=2.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no 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]); Fri, 22 Sep 2023 16:08:39 -0700 (PDT) X-Spam-Level: ** 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. Thanks!