Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3306099pxb; Mon, 18 Oct 2021 12:21:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwDUDNjFNDuhOCGKj3smr32zdL7Wm3yjIBd1XGRpSjgUJG6Q5orPkR1pHnchQd5/5LJJIZD X-Received: by 2002:a05:6402:3588:: with SMTP id y8mr45685060edc.285.1634584916515; Mon, 18 Oct 2021 12:21:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634584916; cv=none; d=google.com; s=arc-20160816; b=cQWBJ+1PPUiQzm6fIx6VU8rPqC7QAQfB+hAaD+q8TPpBBrmNjrnra23FUcxZN3c5Cs 7q8tus7wq0ql7aiibnaACnxKgxK+N3Pl0Hcl1Ys74WqkadJoQAZEm35IN+jaRGwbQWE6 G2ITahYkb46qCua21vZTU+jqghAOjh6r5bjhs4pUXlsV+f2i72ADWWbU2Bpg4OJ8z6Jb bMWeDmYtGim56UKcIDxRNFoKT1r6ZBVIHPwKHtHah/MjRJlYmPp/nfbgihSpKQtbNO6D ioYIWeKFmYeIwflaTVtB4iX1XP+WH3DswziLRCpnnddCRsQ9AhgBzAgygSUIjMg4b8iO X/gw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:references:cc :to:from:subject:dkim-signature; bh=4jQhvYjT9e4GBOeEOpVGTS9SaUVXdZehoAqLumPkuB4=; b=kWxzjpxwU3rb/Wn1ppmC/iujWJ9C6c5eKtPH2aL40QXmqwJL7l6eprTbNeuCeprtW3 5StjpdUC0rzgdKdc9Wh6DKGxNeMwWxbNGs3ZkEsIzuqjbsN4XGGo0v2Uzd5O7wfiFhS2 RpIjuZM3/oHv/tiAOH5dOxY0B/+6ZhpmWhdJw43lXZXkmPmAhyHiXYJ2Ggu5ybfslSfT BtuMfHIOS5KXkP1Vltpbs+SpZHk8ZL6ctE8UjwIfKzqAbBbXXEv5XG5wQxZIuWknJT/V poTN6kakDkTk9Z/cEGIEYLSUN9xW2nF2v0zu/BjHAPg1kOIALIX4zIplMcrE2cLFx1LA R3rA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=relay header.b=BJk6ixEh; 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=QUARANTINE dis=NONE) header.from=virtuozzo.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ji3si3073971ejc.235.2021.10.18.12.21.33; Mon, 18 Oct 2021 12:21:56 -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=@virtuozzo.com header.s=relay header.b=BJk6ixEh; 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=QUARANTINE dis=NONE) header.from=virtuozzo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231872AbhJRTVa (ORCPT + 99 others); Mon, 18 Oct 2021 15:21:30 -0400 Received: from relay.sw.ru ([185.231.240.75]:54414 "EHLO relay.sw.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229836AbhJRTV3 (ORCPT ); Mon, 18 Oct 2021 15:21:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=virtuozzo.com; s=relay; h=Content-Type:MIME-Version:Date:Message-ID:From: Subject; bh=4jQhvYjT9e4GBOeEOpVGTS9SaUVXdZehoAqLumPkuB4=; b=BJk6ixEhC6GggosfS drD0XYECS0NtOWJdkYysnHFAK3NUBY+8RheLTcA44GdguZbNpj3BRm189Gyzn1Px/cF3Y/O/nx2El BkFfXhQpsHXlqPQeOunogHD6a/FRsulQdWnndAg0XUNt5LOBKuKiAefJ3xBLBOy6yqbngYxkO41TM =; Received: from [172.29.1.17] by relay.sw.ru with esmtp (Exim 4.94.2) (envelope-from ) id 1mcYAE-006OiF-Uy; Mon, 18 Oct 2021 22:19:15 +0300 Subject: Re: [PATCH memcg 0/1] false global OOM triggered by memcg-limited task From: Vasily Averin To: Shakeel Butt , Michal Hocko Cc: Johannes Weiner , Vladimir Davydov , Andrew Morton , Roman Gushchin , Uladzislau Rezki , Vlastimil Babka , Mel Gorman , Cgroups , Linux MM , LKML , kernel@openvz.org References: <9d10df01-0127-fb40-81c3-cc53c9733c3e@virtuozzo.com> <6b751abe-aa52-d1d8-2631-ec471975cc3a@virtuozzo.com> <27dc0c49-a0d6-875b-49c6-0ef5c0cc3ac8@virtuozzo.com> <153f7aa6-39ef-f064-8745-a9489e088239@virtuozzo.com> Message-ID: <4a30aa18-e2a2-693c-8237-b75fffac9838@virtuozzo.com> Date: Mon, 18 Oct 2021 22:18:53 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <153f7aa6-39ef-f064-8745-a9489e088239@virtuozzo.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 18.10.2021 21:52, Vasily Averin wrote: > On 18.10.2021 18:07, 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/ > > Are you going to push it to stable kernels too? Btw CONFIG_MEMCG_KMEM=y is set both in RHEL8 kernels and in ubuntu 20.04 LTS kernel 5.11.0-37.