Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3188063pxb; Mon, 18 Oct 2021 09:53:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxG07bNRhtmWnO+L8MrxhNZlbqwEMIuuYI3PCAZ7BDp+hi9WvVFqVLyE0N0Hqifj5oIbx/u X-Received: by 2002:a62:64c9:0:b0:44d:27ba:9a8e with SMTP id y192-20020a6264c9000000b0044d27ba9a8emr29951536pfb.2.1634576039273; Mon, 18 Oct 2021 09:53:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634576039; cv=none; d=google.com; s=arc-20160816; b=dNjQZjOHUiYn7w0aRbq5FgwyrV8bI/O19OtgK5Z4RVKgxF4+9yVHAvXRNvv4xfxHFJ wihusQKgXhEoxv1OFkEdXXI9HMvDDCetrebgrwoGmiJR04XhtNYcL30iL7A8dpIhJsnm sG1mpY6Y98O11xtH/jwrX0jPjN0MHgSeqWYqn3hdYRL+wot2hBhUiRj6sdEfl/vkKYmY 9fH4uRp2Ll1clZo9W4AQYcMOBkRcDmOS+5w81KKajzBD711+S+ac0JpikkkDWZcA6oI+ PlZWQiZZa4oxDZUkdCvn6hpXbO+RO/6fosuckI9U+URpNa0wrhjpE11/rsQFRavkaljB Z/QQ== 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=6d1q+ubZusaXumuE3riMUHm2jTbTP959W22zG60KItg=; b=03deXzj8tMc2e1RChwMCVDerwHqCOoR5TO5vYz/p1Tq2KnAGgUjLCFwCOY3zBY/b4P g+DHaVP6PlC/Gr/twsvVFZJF5an/WOlCVGXRZvRfRcvzZPNsT1qEkfKNPBnxavsUeP7T ynpSRvLMwDEpI5aW6DTk9SBBxLjLtKPSZCp0iZDZl1ygzBGaiYQxtmTjTOyD3jTd+smm KSyZg6xSsA+1WnlmpjlOqYCEJnBiXTD9lN4hYqZLOQikWPgw6sC2p97kCWMxwa2pqOlx snKGEB5uUf6STEn94RnoAe0yMPPfFLC4D2KL9G7eiFlhQKshWzdbBzhg8pGUg+pbJH2V OjDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=fKu+qOYX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p67si2714490pfb.236.2021.10.18.09.53.45; Mon, 18 Oct 2021 09:53:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=fKu+qOYX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234005AbhJRQyH (ORCPT + 99 others); Mon, 18 Oct 2021 12:54:07 -0400 Received: from smtp-out1.suse.de ([195.135.220.28]:43788 "EHLO smtp-out1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234085AbhJRQxh (ORCPT ); Mon, 18 Oct 2021 12:53:37 -0400 Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id 1406121966; Mon, 18 Oct 2021 16:51:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1634575885; 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=6d1q+ubZusaXumuE3riMUHm2jTbTP959W22zG60KItg=; b=fKu+qOYXhZzEp+4Webr7Gz5rjCvBK4A8tlusIDpeSd3E8XdtJaNxr8PAFbK6W9yO+rJ8pN oVQLPo5TxdQHL4pK+LLbCl4u0Z1E4/d/0cwHIYBJh+eMmFEbE4ldAJ0nwZHCPEYUZBx6J/ E8Tohc07y3OCyC2sRGMX3CMeUir1HFw= Received: from suse.cz (unknown [10.100.201.86]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id C44B3A3B83; Mon, 18 Oct 2021 16:51:24 +0000 (UTC) Date: Mon, 18 Oct 2021 18:51:24 +0200 From: Michal Hocko To: Shakeel Butt Cc: Vasily Averin , Johannes Weiner , Vladimir Davydov , Andrew Morton , Roman Gushchin , Uladzislau Rezki , Vlastimil Babka , Mel Gorman , Cgroups , Linux MM , LKML , kernel@openvz.org Subject: Re: [PATCH memcg 0/1] false global OOM triggered by memcg-limited task Message-ID: References: <9d10df01-0127-fb40-81c3-cc53c9733c3e@virtuozzo.com> <6b751abe-aa52-d1d8-2631-ec471975cc3a@virtuozzo.com> <27dc0c49-a0d6-875b-49c6-0ef5c0cc3ac8@virtuozzo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon 18-10-21 08:07:20, Shakeel Butt wrote: > On Mon, Oct 18, 2021 at 5:27 AM Michal Hocko wrote: > > > > [restore the cc list] > > > > On Mon 18-10-21 15:14:26, Vasily Averin wrote: > > > On 18.10.2021 14:53, Michal Hocko wrote: > > > > On Mon 18-10-21 13:05:35, Vasily Averin wrote: > > > >> On 18.10.2021 12:04, Michal Hocko wrote: > > > >> Here we call try_charge_memcg() that return success and approve the allocation, > > > >> however then we hit into kmem limit and fail the allocation. > > > > > > > > Just to make sure I understand this would be for the v1 kmem explicit > > > > limit, correct? > > > > > > yes, I mean this limit. > > > > OK, thanks for the clarification. This is a known problem. Have a look > > at I think we consider that one to 0158115f702b ("memcg, kmem: deprecate > > kmem.limit_in_bytes"). We are reporting the deprecated and to-be removed > > status since 2019 without any actual report sugested by the kernel > > message. Maybe we should try and remove it and see whether that prompts > > some pushback. > > > > Yes, I think now should be the right time to take the next step for > deprecation of kmem limits: > https://lore.kernel.org/all/20201118175726.2453120-1-shakeelb@google.com/ I completely forgot about your patch. Anyway, it usually takes us years to deprecate something so let's stick with it and consider 2 years as years ;) -- Michal Hocko SUSE Labs