Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp266297pxa; Fri, 21 Aug 2020 06:49:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJybCvSRjrnK52QTwY14ucby5suV/LeCFZglDWB0bn8XHti6GM9Ce07uOe+IFxPtxOri3RdI X-Received: by 2002:a05:6402:1b1c:: with SMTP id by28mr2984377edb.89.1598017799292; Fri, 21 Aug 2020 06:49:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598017799; cv=none; d=google.com; s=arc-20160816; b=vG4dVQ7hk14FsmT2kHTEMLAcivSratmhN7F+P+juE4eOwaSaD7FHmuZEfACO4d+3RR 9//tnVOMzfH9AMTJRyINq/0+AVyhLkBb+GPqlamFXzD7Nj1FXtS52HegwXkgciLNAWQ/ Ro7W5S5DGuNEU/x9WbFNZR/zdegd+2Ik3q1yedLzj7y7Sacf9eL6MeAUeadzmhxAWCsY 3SbdaEHCVVKHWbxSLSY3HTF6cRhY8NdTp5ECrGUeMGbLWoGy7aq7bJaYbHUc2weAAtSM Mw0aflw5tJtbxxeRCPWbDJXdiSOlssa6KT4d2J0xQsdcuQ9KqCCM2TDhK3An9B0Pajdx 2AMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=DQwVAuky7mBDOBJ8zbY/r+zEioqmzZdlWpeMf5ktxbA=; b=PUXns68RKyk6MILcoJNGgVuzPz04hyyrb7mU9i3eSGglQcleoFZyYZLSfbkEqHl/zD J9pCIk3mZJQq46OndukK5J3v9M85bQEKfHOGH2xtLhC5aefzaEzxlLyKow+YpusvZd+0 1AnPpmYRKGJ0NJIZDJh+Qp6KBtKb7QLQIn328Ri1hNfOBjjBKkC1hlkdgWbKrJm15cRC d0KQstYGsUCh/3PiC/dL/NahrEnDj2f20RA0G0sGnprItt0RIq20fX5JcBt3UKT54k0Z ru007QQueDj0DMne3ve5cO0b9iMg/HqUO6rz4xLVfBlleT2eEG94RJbArv5Zvl3np2rR sZ1Q== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v6si1237968eju.570.2020.08.21.06.49.34; Fri, 21 Aug 2020 06:49: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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727843AbgHUNsw (ORCPT + 99 others); Fri, 21 Aug 2020 09:48:52 -0400 Received: from mx2.suse.de ([195.135.220.15]:51934 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727925AbgHUNsq (ORCPT ); Fri, 21 Aug 2020 09:48:46 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 37F43B148; Fri, 21 Aug 2020 13:49:12 +0000 (UTC) Date: Fri, 21 Aug 2020 15:48:42 +0200 From: Michal Hocko To: Qian Cai Cc: Alex Shi , 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 Subject: Re: [Resend PATCH 1/6] mm/memcg: warning on !memcg after readahead page charged Message-ID: <20200821134842.GF32537@dhcp22.suse.cz> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200821123934.GA4314@lca.pw> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri 21-08-20 08:39:37, Qian Cai wrote: > On Fri, Aug 21, 2020 at 10:01:27AM +0200, Michal Hocko wrote: > > On Thu 20-08-20 10:58:51, Qian Cai wrote: > > > On Tue, Aug 11, 2020 at 07:10:27PM +0800, Alex Shi wrote: > > > > Since readahead page is charged on memcg too, in theory we don't have to > > > > check this exception now. Before safely remove them all, add a warning > > > > for the unexpected !memcg. > > > > > > > > Signed-off-by: Alex Shi > > > > Acked-by: Michal Hocko > > > > > > This will trigger, > > > > Thanks for the report! > > > > > [ 1863.916499] LTP: starting move_pages12 > > > [ 1863.946520] page:000000008ccc1062 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1fd3c0 > > > [ 1863.946553] head:000000008ccc1062 order:5 compound_mapcount:0 compound_pincount:0 > > > > Hmm, this is really unexpected. How did we get order-5 page here? Is > > this some special mappaing that sys_move_pages should just ignore? > > Well, I thought everybody should be able to figure out where to find the LTP > tests source code at this stage to see what it does. Anyway, the test simply > migrate hugepages while soft offlining, so order 5 is expected as that is 2M > hugepage on powerpc (also reproduced on x86 below). It might be easier to > 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. Thanks! -- Michal Hocko SUSE Labs