Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp1817875rdb; Wed, 20 Sep 2023 23:35:32 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGD23hyxHRIh4Ox7nLvnoOkfNSpPBfej7Fi/7TZ/wpbmvK9q107G62/75cehR8JKJ0H2OhP X-Received: by 2002:a05:6830:1003:b0:6bc:e049:b28f with SMTP id a3-20020a056830100300b006bce049b28fmr4424596otp.34.1695278132213; Wed, 20 Sep 2023 23:35:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695278132; cv=none; d=google.com; s=arc-20160816; b=vRQPRC+sOTLv+RoNUzgDLnEL4gpt4rW0QROuwJEz6VTNgeIC8vdNsA7+qE6C4pucpD 7OehRUAWmQdTnPr42wtBLZLT7E8dNZvQ4aClCRa7zarOM0neicVik4/Bx+cdn6eBcgcR 8wA0hkl4GlOY0k9LvOmd3QuDkp9zrzxBW0ClY7+5toZJhpmZbTk9bdfaKmqZiUZE18YK xx1CdzWR+/5f5AbLGEr5TFU0JU5l/08edDVmfOCU5Rm2I77CgVwv9Ji/b7SGABbqptPL +EfFW9bqQFnRc7M/vBnrxw+wLDEsZ1n+anBDPNDb8G61rMSZtES6ps5QT+aKM7/0RgRQ wxnw== 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=zacjS2oDob3p7eHr2oY8UG1OkZiVCpmrl6tk1i02zBw=; fh=OD+En00ZpISzDwkWN3URDywNyrUks6oiJLa2I0hfgJQ=; b=RiuBNas5ZlrFqCa9C3XcKz45gKhlzM4TFkvB3QJpML/LdjM5E447+s0OQuPE9Z82S2 T5NsMd7SkXwx9//Y/QFpASmUeR776CYJ3j0F4ZRs0JOdFhle79Hk95fR16AIsEH8N6T6 e+HkVrx0lj9yLWZ6l0gR7laEntGlaH4WAtOOMolkgs8W5XIM7SmtqF9OsNuT4daOEPlc 6xT2kiOl0A3wIEakOU6aPC8s7KlsGUEJMBnoDkgDnp6DjvSzOv6ZQp4xtAu9HMnMeva1 hvpCiX/jkyMMu/2fn7Q7rPJ9aCbK9qk4WrxIEHe136VKld61EzJspSz6cVtYXDE4Efxl 898Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=D7iEZ49E; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id y191-20020a638ac8000000b005694b757228si775285pgd.688.2023.09.20.23.35.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Sep 2023 23:35:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=D7iEZ49E; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (Postfix) with ESMTP id 3D868811F91E; Wed, 20 Sep 2023 13:08:19 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229647AbjITUIV (ORCPT + 99 others); Wed, 20 Sep 2023 16:08:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52324 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229485AbjITUIU (ORCPT ); Wed, 20 Sep 2023 16:08:20 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 35B4EA9; Wed, 20 Sep 2023 13:08:14 -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 E8F8E202D0; Wed, 20 Sep 2023 20:08:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1695240492; 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=zacjS2oDob3p7eHr2oY8UG1OkZiVCpmrl6tk1i02zBw=; b=D7iEZ49EnDc3Ssg0WXscpTKL66CU7apcB4NXqQ+nGJae9wBgMTDFMU3IykgutBmSGmR8B6 HAp9/8RiSDyuLK9loyOPpFQ57NUrP/COR3vQSm0M0cmBwhkQWvBoO5i/x4Ab/h1Orf7aw9 g7zegnpkCusd4lHjtKshjQ5a6+jY2p0= 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 C6250132C7; Wed, 20 Sep 2023 20:08:12 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id gtZWLSxRC2XKUQAAMHmgww (envelope-from ); Wed, 20 Sep 2023 20:08:12 +0000 Date: Wed, 20 Sep 2023 22:08:11 +0200 From: Michal Hocko To: Shakeel Butt Cc: Jeremi Piotrowski , Johannes Weiner , Roman Gushchin , 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: <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=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 20 Sep 2023 13:08:19 -0700 (PDT) On Wed 20-09-23 12:46:23, Shakeel Butt wrote: > On Wed, Sep 20, 2023 at 9:55 AM Michal Hocko wrote: > > > > On Wed 20-09-23 08:32:42, Shakeel Butt wrote: > > > Also I don't think reverting 58056f77502f would give any benefit. > > > > Not reverting 58056f77502f would re-introduce the regression in some > > non-patched versions of Docker runtimes which cannot handle ENOTSUPP. > > So I think we need to revert both or none of them. I would prefer the > > later (option 1) as the fix is trivial but I do understand headache > > of chasing all those outdated deployments or vendor code forks. > > I think that would be too much conservative an approach but I don't Well, TBH I do not really see any sifference between one set of broken userspace or the other. Both are making assumptions on our interfaces and they do not overlap unfortunately. > have a strong opinion against it. Also just to be clear we are not > talking about full revert of 58056f77502f but just the returning of > EOPNOTSUPP, right? If we allow the limit to be set without returning a failure then we still have options 2 and 3 on how to deal with that. One of them is to enforce the limit. -- Michal Hocko SUSE Labs