Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1522985pxb; Wed, 30 Mar 2022 05:35:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw10FcF5ov9o4VeFa9tUErbLV5c21fpW4l6d/Wf5TubHavj/Vy9BNSNRTZdWCzEKKtiXBoe X-Received: by 2002:aa7:de96:0:b0:418:f9ca:67f6 with SMTP id j22-20020aa7de96000000b00418f9ca67f6mr10354855edv.25.1648643729407; Wed, 30 Mar 2022 05:35:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648643729; cv=none; d=google.com; s=arc-20160816; b=telZuWe++lTsglVqz0uq4mdjC6V9mwmMsjmP9vA+/kpNVeMnUIDHabzQoTiypVeZuJ GdVG+STS+sUpitwDTCQ0zpnGHFQdSrrH2Yxs/rJlyaWxUXMgoM89PYz2nkK2i7VoAFtO Px0MmF5hiVgowGkKR/QU01FNmtHxAcxpP0aHUdJ8MLinvz6kKXXDgS2Cj1lcFJCNTig4 P9Qd3CgH1DTJf7un+xS7VGwwntmo2FxJXoW8AkxqHHf/i4UCJp35qiPjk8f4SAy+rxF9 rp/PAoJVFWksoF+SpmnhjVTRaYTY9NpZkjCEfYvYUr2gBb88gH+jvRaEgjbFrKCegdG7 52ug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=bdmc0ujk/QGKxeijeYMWGwM4/XVziFQYge7M2egdNzo=; b=edjJIaUQmzqNcjb/V2hMVNVpKJDnHoQWAi7PpzAq4XJQwAWKiyH+NV/UCC8YQTV4oP Er9qAgYjKYi1nNQyINN+hhtDTOidD7pPzEySSfWHdOyYdgeS/EMm2sQHwhdyNTWqpwiz Gxlb1YIIdnDIzUTFiU7xT/vXF4Vjg1ttnamTtb+9xh6ZgKBYFLnq4D4Lq85PL87JXNKQ NbsLE6gEyKA4LiFmY5hnUl/mfBlrjfsSZe06+G09VPmLDFJJkk3vTc8c3ie2OQS2V8Eq jUbQBARkESEeyh1l2+Ef63LU99bIswegl2Hg/miucmRBgprNJGc+T6+3IKhLY0MP+ZTQ stTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=bUOReHxY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j6-20020a056402238600b00418ebb984ffsi20373497eda.66.2022.03.30.05.35.02; Wed, 30 Mar 2022 05:35:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=bUOReHxY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243891AbiC3Hlo (ORCPT + 99 others); Wed, 30 Mar 2022 03:41:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37150 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243882AbiC3Hlh (ORCPT ); Wed, 30 Mar 2022 03:41:37 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 13CED51592 for ; Wed, 30 Mar 2022 00:39:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1648625988; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=bdmc0ujk/QGKxeijeYMWGwM4/XVziFQYge7M2egdNzo=; b=bUOReHxYExyU7JcUzVjPEHvegpwBg7VrkBHpccUI8RVRzjkiIRhSV5niEhcTQgvebNTptv kpd5qt9XqWX+3t9CahEWMCWYn7Qq/CkEne4bTqG84/DtGly6Gnz2M80SrvukEh32vTBHe9 doHaKYkFIBqR2F+GyICgRMd0+cA8JR8= Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-465-s7iNRnFKPD2FmvYK6lx8nQ-1; Wed, 30 Mar 2022 03:39:44 -0400 X-MC-Unique: s7iNRnFKPD2FmvYK6lx8nQ-1 Received: by mail-wm1-f71.google.com with SMTP id c62-20020a1c3541000000b003815245c642so685430wma.6 for ; Wed, 30 Mar 2022 00:39:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:organization:in-reply-to :content-transfer-encoding; bh=bdmc0ujk/QGKxeijeYMWGwM4/XVziFQYge7M2egdNzo=; b=FRXwRS79NlNW4FPI4D4Dq6a3vKUDnp7SlhyJUf0aIQW0A+/PTfeufD0/VKDQPKYbM6 w0GzYzmLdKftjMO4K8KtYo1fOJSjS0O6Xe3yDJoUcGjKvzIzoyhKhJ31Si2EnMYXNt95 oLH++LJ3Yvx/rFbAnov/Lm/BfTTc57MwtwUKv9V5Yb3nASvz75N5T/GM/WrxVXa0Mt2X Zcow9gsKEsVpxuHthpRfx5hRC3WPMNWvXPXuCvWcy0fX9/+FMTXqgSmjcSo5T8X/bOzj sjHq92pd44co7haifsDkP8QGu2S7pUc0XSpjIULiz80BWMzDYq3WceNobIqW14ndcKxg nWBg== X-Gm-Message-State: AOAM533GJt7Dwb2vROyP1dZtyDOOQlUxKdxwBvpw2TbS1ezB5aF7qD+I ASZpJcwdV0kk/oF3+wAcX+PZcQQSH8yNu3uX1wFG2WwUpci+yF7+xtu8w21ekHj2wfBpGnz72KH G3Po3+JeWsP64KN1PLVNyaVGz X-Received: by 2002:adf:eb48:0:b0:203:f854:86cc with SMTP id u8-20020adfeb48000000b00203f85486ccmr34346332wrn.102.1648625983768; Wed, 30 Mar 2022 00:39:43 -0700 (PDT) X-Received: by 2002:adf:eb48:0:b0:203:f854:86cc with SMTP id u8-20020adfeb48000000b00203f85486ccmr34346324wrn.102.1648625983566; Wed, 30 Mar 2022 00:39:43 -0700 (PDT) Received: from ?IPV6:2003:cb:c705:2200:178b:7244:2a1f:b5d8? (p200300cbc7052200178b72442a1fb5d8.dip0.t-ipconnect.de. [2003:cb:c705:2200:178b:7244:2a1f:b5d8]) by smtp.gmail.com with ESMTPSA id bg42-20020a05600c3caa00b00380deeaae72sm3818045wmb.1.2022.03.30.00.39.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 30 Mar 2022 00:39:43 -0700 (PDT) Message-ID: Date: Wed, 30 Mar 2022 09:39:42 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.6.2 Subject: Re: [Patch v2 2/2] mm/vmscan: make sure wakeup_kswapd with managed zone Content-Language: en-US To: Wei Yang , akpm@linux-foundation.org Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, ying.huang@intel.com, mgorman@techsingularity.net, Miaohe Lin , Oscar Salvador References: <20220329010901.1654-1-richard.weiyang@gmail.com> <20220329010901.1654-2-richard.weiyang@gmail.com> From: David Hildenbrand Organization: Red Hat In-Reply-To: <20220329010901.1654-2-richard.weiyang@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 29.03.22 03:09, Wei Yang wrote: > wakeup_kswapd() only wake up kswapd when the zone is managed. > > For two callers of wakeup_kswapd(), they are node perspective. > > * wake_all_kswapds > * numamigrate_isolate_page > > If we picked up a !managed zone, this is not we expected. > > This patch makes sure we pick up a managed zone for wakeup_kswapd(). And > it also use managed_zone in migrate_balanced_pgdat() to get the proper > zone. > > Signed-off-by: Wei Yang > Cc: Miaohe Lin > Cc: David Hildenbrand > Cc: "Huang, Ying" > Cc: Mel Gorman > Cc: Oscar Salvador > Signed-off-by: Andrew Morton ^ I'm not so sure about that SOB, actually Andrew should add that. But maybe there is good reason for it that I'm not aware of. Reviewed-by: David Hildenbrand -- Thanks, David / dhildenb