Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2557101pxa; Mon, 24 Aug 2020 18:28:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxVUKGyhdXDcx1b0d6UiJ87D7KSyfH4LSa7onKG9Zms0wGnIFq9UWzDyPcrG9qkI460q+Fe X-Received: by 2002:a50:a0c7:: with SMTP id 65mr7771936edo.375.1598318918539; Mon, 24 Aug 2020 18:28:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598318918; cv=none; d=google.com; s=arc-20160816; b=IQwMaUPqEJJltotK8Xlc3w698diHXBk1o57S2cebVtVcI7Z6TmeLdkdfnG+QtGfqN+ YxB4qZSRR88pDSpLqbWeLhcHeeU2dcr6tZ83xvDpfYkN/8c66HaWKIwearl36vviH/Ua w/0mA6jQ6JwANtaBa90VcfP/LW+/ICIVRvdseiWr6sEHCVyMp4SHZWUZ2dlPZAl9BWEc EpmN3JFUbVcWjdQ9SM1hS73i5uxXsDss4xyXYxc7853JnkoT3XhQlyIag+iy2JHYX8Ki djaSLFbrD6XpwbZBdVah5vXVezeF5oRrvwO5Alz79XRP/0uUgkguPZ9WNfXLqtNGxJP+ Rnag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:references:cc:to :subject; bh=h6hWwCI0Y7d8B7IMR7kmavWQ/XUf5dL+8cbVbXoMEw4=; b=XybviAMNhoMBRfUVH6kZRJrrCxwwzDj2XmevwoO+QHH4O7EQOpKAiBy/ozecdU4wuX 0Q56UI/ESAC2GuA7qUyZc/osKXzOOl7SUQr0uaogX2WtpEy/Ph7kmLmG+eodTIHU0LAD OfgSYssASySXAgc06PQx5u11ck8nVH3LYykiKtNYniOZlyBNYRLC3HlHlAU1IH3sCl0l Uq1Ja1nYa8Vsw4/YmoRSzgLFtx9N/+zTTA0fJ+cVeQWMBl6IE66yRr/IYCpb/Hz5Uakd MkeH/c75MY8AI1HmfWwtlc+eDUaTJpp8kU5uzhfxGwsv2FuPcnSgpFths/3WOz6g/4AA sXiA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t22si7589349ejt.537.2020.08.24.18.28.15; Mon, 24 Aug 2020 18:28:38 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726504AbgHYB0o (ORCPT + 99 others); Mon, 24 Aug 2020 21:26:44 -0400 Received: from out4436.biz.mail.alibaba.com ([47.88.44.36]:34162 "EHLO out4436.biz.mail.alibaba.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726090AbgHYB0n (ORCPT ); Mon, 24 Aug 2020 21:26:43 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R261e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e01355;MF=alex.shi@linux.alibaba.com;NM=1;PH=DS;RN=11;SR=0;TI=SMTPD_---0U6n39Zm_1598318789; Received: from IT-FVFX43SYHV2H.local(mailfrom:alex.shi@linux.alibaba.com fp:SMTPD_---0U6n39Zm_1598318789) by smtp.aliyun-inc.com(127.0.0.1); Tue, 25 Aug 2020 09:26:31 +0800 Subject: Re: [Resend PATCH 1/6] mm/memcg: warning on !memcg after readahead page charged To: Michal Hocko , Qian Cai Cc: akpm@linux-foundation.org, Johannes Weiner , Vladimir Davydov , cgroups@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, nao.horiguchi@gmail.com, osalvador@suse.de, mike.kravetz@oracle.com References: <1597144232-11370-1-git-send-email-alex.shi@linux.alibaba.com> <20200820145850.GA4622@lca.pw> <20200821080127.GD32537@dhcp22.suse.cz> <20200821123934.GA4314@lca.pw> <20200821134842.GF32537@dhcp22.suse.cz> <20200824151013.GB3415@dhcp22.suse.cz> From: Alex Shi Message-ID: <12425e06-38ce-7ff4-28ce-b0418353fc67@linux.alibaba.com> Date: Tue, 25 Aug 2020 09:25:01 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <20200824151013.GB3415@dhcp22.suse.cz> Content-Type: text/plain; charset=gbk Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org reproduce using our linux-mm random bug collection on NUMA systems. >> >> OK, I must have missed that this was on ppc. The order makes more sense >> now. I will have a look at this next week. > > OK, so I've had a look and I know what's going on there. The > move_pages12 is migrating hugetlb pages. Those are not charged to any > memcg. We have completely missed this case. There are two ways going > around that. Drop the warning and update the comment so that we do not > forget about that or special case hugetlb pages. > > I think the first option is better. > Hi Michal, Compare to ignore the warning which is designed to give, seems addressing the hugetlb out of charge issue is a better solution, otherwise the memcg memory usage is out of control on hugetlb, is that right? Thanks Alex