Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp275699pxa; Fri, 21 Aug 2020 07:04:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzS9gTtWAAH191e8eD7+IB1oqH4CAXmBNwCyh57aug3v0V690P1yupH2HWpSZCG9MUcIiF1 X-Received: by 2002:aa7:d145:: with SMTP id r5mr2766011edo.323.1598018646722; Fri, 21 Aug 2020 07:04:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598018646; cv=none; d=google.com; s=arc-20160816; b=I+Luh7TJmM29ZFM/vHWIHz+7zWAD4iHrGeb/ZjxZUMbDjMfRHOA7RAOehfHqtV5uQW /x445Fhnqk5ToKRsN4XMbcCRepXLb2shgLtXQsJDzLngCOwgX5Y9FNGS7iZ44yEV4mN1 fEzfcCAh2NNRvMG1zNaPAfM49TIvrIgruYCN5BkkuaInoaJ7x33CPXtgl707RbJa0z+K 8f9vWpK2KjgRxWzbXZtQC/l7sh47i1nGWjTXusV7UdoRzZM1QRv/F0WsIRDGDMszQeiX chSRcOStJZFXwd+qeY0WP1f+sD5H9w/7UU+5PQIwlhFGnOEmu9SlqMCpaNxh0VN0z8c/ aEpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=cA1F72P9Gm2cautm1YaokGwNbN8rzVJerys9S7kz+dY=; b=oQCkv900QuAq9pW3Q1vAUbkFf/fZx67hQifA7jl01fwyeK8e0ffzXHnXrDqxRewaPH 28tvSlrEujO5KoiAKgFmL+3qzeMNOgC98llwPKoQBlIa9iRqSdGagE8yVVcfMA1Nc6jk SUgVNaVJL7B0DEiqIlSBTUtWP8Ij+gdeQqN3PuFgJXvG09pQNtwJZJuvICvnP1L+KZsw 3t6bVh8lsd0Q5IGm2FmT6TNyw3m1pvmmTdUQtycLoBAReivOISsyZ4uwG2G1p3FadOMj 4eThDNZUdMVE9ty7uoW5jmwQXasx/IhH02M4cLzcmr9lGB6aLjBNS4qUDmHOd9S96+FM StEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lca.pw header.s=google header.b=nkPVH+Ov; 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 l11si1412334ejx.280.2020.08.21.07.03.43; Fri, 21 Aug 2020 07:04:06 -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=@lca.pw header.s=google header.b=nkPVH+Ov; 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 S1726138AbgHUOB5 (ORCPT + 99 others); Fri, 21 Aug 2020 10:01:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40076 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726279AbgHUOBw (ORCPT ); Fri, 21 Aug 2020 10:01:52 -0400 Received: from mail-qk1-x741.google.com (mail-qk1-x741.google.com [IPv6:2607:f8b0:4864:20::741]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 57582C061573 for ; Fri, 21 Aug 2020 07:01:51 -0700 (PDT) Received: by mail-qk1-x741.google.com with SMTP id x69so1438782qkb.1 for ; Fri, 21 Aug 2020 07:01:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lca.pw; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=cA1F72P9Gm2cautm1YaokGwNbN8rzVJerys9S7kz+dY=; b=nkPVH+Ovq+PbJXglpdeME9hid7vf1PM4g5XbkjiJo5EratmsU7t9cUuws/8svKmlrP EeJLdQjFqqNF2PsTU39YI7W6UsK8DFi1Nsy2Fsed4IO48Km3gUAjJBL70SSYLIFiXjHT apFxLWdt25F9C+P6lXRwJOvayqJmLTXwaQtRh7tn1NVJ1G7xJKl4g02yk1IOhlgJXpgE uhu72bWnmxOnt+jHNENMYLGGBUgmEqijytDjIXanSn7EPu572k+I6lEd46ZQ5uvzCaUz QOGQUAuwpZeIzffQ1NmA823BQb4J5ZlOOb2aQbwOMLeV5GUlsqBpF4j6iEl1YEtNCXX0 Dl+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=cA1F72P9Gm2cautm1YaokGwNbN8rzVJerys9S7kz+dY=; b=Ra2N3CWLSvglcNK4bnhi6kAP+UGyzqHNjQ1QiZK1kETqEfax9HaEotwueFIqwJSPVV 8EHlEwUDglLPrvdPNMIU6YGtWNAkgVNIttbErVp5woNJFZWOULEW/91mOG90Ucx9r9hG Y0FrpMueY2flDiuWAlwOFWand9vrqEvhlFP1AsPYSxHH5CUAmGdTgRiFqczXox6QmoVQ 60wruopH6XcqyQU4aRz+LVRxU6C04MDkcVWxHltuW41jmrUlposDmEkgrDzo9jDf9CIh jjcHfPqOwxKfyBvXia/kV3YyNPaE83RxXj3aSuzD2WZvhVrM2b0lRZaaOfkAzSbz8+gI wMrA== X-Gm-Message-State: AOAM53256VXBRt/9v0hZtVAxTKQkMWGVDnhY06ifl9QmbWoL0PKpApN9 1Wn4lG7cd3Z9NZQp240AxU//hA== X-Received: by 2002:a37:9b95:: with SMTP id d143mr2782128qke.272.1598018510305; Fri, 21 Aug 2020 07:01:50 -0700 (PDT) Received: from lca.pw (pool-71-184-117-43.bstnma.fios.verizon.net. [71.184.117.43]) by smtp.gmail.com with ESMTPSA id 15sm1789776qkm.112.2020.08.21.07.01.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Aug 2020 07:01:49 -0700 (PDT) Date: Fri, 21 Aug 2020 10:01:43 -0400 From: Qian Cai To: Michal Hocko 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: <20200821140134.GA8147@lca.pw> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200821134842.GF32537@dhcp22.suse.cz> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 21, 2020 at 03:48:42PM +0200, Michal Hocko wrote: > 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. Sorry about not mentioning powerpc in the first place. I don't know since when powerpc will no longer print out hardware information like x86 does in those warning reports. I'll dig.