Received: by 2002:a25:d783:0:0:0:0:0 with SMTP id o125csp590680ybg; Thu, 19 Mar 2020 05:23:06 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvy/toPz5l9zX3Hu9ZdQNPEg6e+wBxZSzBVh9CA/zU57FPvQKOAYTzZEhoA9ZVVPJBnmF9+ X-Received: by 2002:a9d:3b6:: with SMTP id f51mr2142315otf.255.1584620586449; Thu, 19 Mar 2020 05:23:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584620586; cv=none; d=google.com; s=arc-20160816; b=rWLeBAuQBNpN/47AcnWn6o6VyJZRtZ2lkNbAF262Nur5z6ruvmZZ7Za4mPpoVsmvOS F3ZSS2R5Cq4u54lgfD5083m+vO/0LXTHD4XxPHUEIrh55oxINjA851Dwmpdpv8BA5Y/j x8FNvrb7KGWRQs3cRepxcptzsV4RaFLfOxxAxJOzmQsaJ4iUzFmGvMQoRZ127Ba57+vz lW7lA/SduCDWU0nPMabYpAYmQQniUOcWvzF82PxU3tP0uR2MnR4JUsOaCRcG07z2IaC8 5vRzVWius3mIYlUE4/Sa4FxeGT643YotGRifn9GHSKRneYIOwOgAp2EU/SRs5aj015eF 87Tw== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=9FNvHpb3c9ECCDMDeTH5ANaFCt5pMQMsDvBJke1F3K8=; b=YUiUesY/HAE5Ls8LgW5A9YkeR+PEG1PbaFg2bsYvwlyLT87lRoSYM7fQRhH5wnWqDw dhoXK8bGaonPrJwi9lZCzybadhtT5EvtXOoZ5vgDW8Omrkb16bR7ECz9kp7/ktfVHxdH Lt4e7XUG9chBKDtE4o9cUgfgq3UeDgUXW4WSxqycPpJEFqk6IZrj5QRVG38Z1R/R5oBs LMqiCRkk2lELzbb7wNLYej1J89PCz8mVcrbnegwQFec4kw63qc1sp2vbkbPE2MuXqEEL o0I1WbFWNz0dHCqspSs1nFis7k4DdiB0b5+Jhmyby9BB80oykMc3DJi9dL0HpkIpaeY3 LSuA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e7si1281724oti.301.2020.03.19.05.22.50; Thu, 19 Mar 2020 05:23:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727166AbgCSMV2 (ORCPT + 99 others); Thu, 19 Mar 2020 08:21:28 -0400 Received: from mx2.suse.de ([195.135.220.15]:36044 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726864AbgCSMV1 (ORCPT ); Thu, 19 Mar 2020 08:21:27 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id A06E6AFC8; Thu, 19 Mar 2020 12:21:21 +0000 (UTC) Subject: Re: [PATCH v2 1/2] mm/page_alloc: use ac->high_zoneidx for classzone_idx To: Joonsoo Kim , David Rientjes Cc: Andrew Morton , Linux Memory Management List , LKML , Johannes Weiner , Michal Hocko , Minchan Kim , Mel Gorman , kernel-team@lge.com, Ye Xiaolong , Joonsoo Kim References: <1584502378-12609-1-git-send-email-iamjoonsoo.kim@lge.com> <1584502378-12609-2-git-send-email-iamjoonsoo.kim@lge.com> From: Vlastimil Babka Message-ID: <9a7c94c0-c2b2-d533-316a-4fd42bdf55b1@suse.cz> Date: Thu, 19 Mar 2020 13:21:18 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/19/20 9:57 AM, Joonsoo Kim wrote: >> Curious: is this only an issue when vm.numa_zonelist_order is set to Node? > > Do you mean "/proc/sys/vm/numa_zonelist_order"? It looks like it's gone now. > > Thanks. Yes it's gone now, but indeed, AFAIU on older kernels with zone order instead of node order, this problem wouldn't manifest. This was in my reply to v1, 2 years ago :) So to summarize; - ac->high_zoneidx is computed via the arcane gfp_zone(gfp_mask) and represents the highest zone the allocation can use - classzone_idx was supposed to be the highest zone that the allocation can use, that is actually available in the system. Somehow that became the highest zone that is available on the preferred node (in the default node-order zonelist), which causes the watermark inconsistencies you mention.