Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp193152iob; Thu, 12 May 2022 22:46:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyHtlvCBI4DjlooJM41y1s60GCa3A0of52dArGth/opUWI409S+/6hfmBXs2UUPHu0lFFun X-Received: by 2002:a05:6a00:a0e:b0:4fd:fa6e:95fc with SMTP id p14-20020a056a000a0e00b004fdfa6e95fcmr3050852pfh.17.1652420765863; Thu, 12 May 2022 22:46:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652420765; cv=none; d=google.com; s=arc-20160816; b=NWXZv96u/ebGaJkPZa1HBX2YdT31uwRWE/mz4PntdeDUoscztoi9vszi0WcVft69EC vXX0qBCptE5FgGwes8DAUW48p9us2A/KZ0zB5qrLMDJ+cV7W3WcdfnYGK6l4sRlxPYN0 tJrsF4LE9n5QF/nFLqrm+p11PlVIT1mbxQaX+qHTHM1ES8rd7KFPt4bW4Ydx2P5KpWEX Hj5+HLZD1FR1y5TxDVrVaxLSU/Sp88Jwu2GZZh2XsginQxZMXsmmaPs00hgp2ExG10ly mAJRkvtcM5Z26+dphbScpjcMXGWdbo1LM6Fj+p8fh9J4ybiKqULYmWxFIK3AcdEqWn36 R11g== 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:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=3+QexCj+8Z/xMERP9YllOWlRrF1XaXi1HH4NR9hVSw0=; b=VP3tP+J4X/GP1X2u6wjxhsBW598/bw1nFjwCOgDd0GORuNsxoH/4he1gJdWlUZ+WZL +sm+s2BiYCiFn5GoqV+DGWYaIojpuaESowJJsGu00mSVp2t4KKdf1eT9qtQYFxjtfuUs CtDZCw7EuGHJsz3TqrcShYxD94DzuNiaPtFoO6OpOcz/swpupeFeYor0NbX3Xw1pkn6w aBWxucTgjY24tUFXMGnXKJ+iWo9Jt/PC60oF3JIxdNyMLm4jlLsD1Qkl/3+zAjY+btA4 LHPk75uXDI533amMdVzzi0ndiD39akEJ+rDCcdQFHdoKxjXdxxtnwSNOv+68AccjnneA gKSw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e21-20020a63d955000000b003c2244f78ddsi1719604pgj.628.2022.05.12.22.45.53; Thu, 12 May 2022 22:46:05 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376317AbiEMBTW (ORCPT + 99 others); Thu, 12 May 2022 21:19:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39198 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244317AbiEMBTR (ORCPT ); Thu, 12 May 2022 21:19:17 -0400 Received: from loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E8DA12854B9 for ; Thu, 12 May 2022 18:19:13 -0700 (PDT) Received: from [10.20.42.170] (unknown [10.20.42.170]) by mail.loongson.cn (Coremail) with SMTP id AQAAf9AxGtgMsn1iyoQTAA--.10240S3; Fri, 13 May 2022 09:19:08 +0800 (CST) Message-ID: <8c1fc6d4-7d3a-85dd-ebd9-fc8e221f1878@loongson.cn> Date: Fri, 13 May 2022 09:19:08 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 Subject: Re: [PATCH v3] mm/khugepaged: sched to numa node when collapse huge page Content-Language: en-US To: Andrew Morton , Peter Xu Cc: David Hildenbrand , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Yang Shi References: <20220317065024.2635069-1-maobibo@loongson.cn> <3a441789-b3e4-236e-2e44-e7a1c7258a94@redhat.com> <20220512173620.2f5175c7a321e6ccea6e58e9@linux-foundation.org> From: maobibo In-Reply-To: <20220512173620.2f5175c7a321e6ccea6e58e9@linux-foundation.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-CM-TRANSID: AQAAf9AxGtgMsn1iyoQTAA--.10240S3 X-Coremail-Antispam: 1UD129KBjvJXoW7tFyUAFWDtr1UZr1xXr1fJFb_yoW8XF43pF W8ta1UKF4DJFyrGwn2vw1DZryxt393trWDXw15J347Cr98ZryaqFWfA3yYka9rGrn3GF4q yrWYqF93Aw1avaDanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDU0xBIdaVrnRJUUUvab7Iv0xC_Kw4lb4IE77IF4wAFF20E14v26r4j6ryUM7CY07I2 0VC2zVCF04k26cxKx2IYs7xG6rWj6s0DM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rw A2F7IY1VAKz4vEj48ve4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_Ar0_tr1l84ACjcxK6xII jxv20xvEc7CjxVAFwI0_Gr1j6F4UJwA2z4x0Y4vEx4A2jsIE14v26r4UJVWxJr1l84ACjc xK6I8E87Iv6xkF7I0E14v26r4UJVWxJr1le2I262IYc4CY6c8Ij28IcVAaY2xG8wAqx4xG 64xvF2IEw4CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_Jr0_Jr4lYx0Ex4A2jsIE14v26r 1j6r4UMcvjeVCFs4IE7xkEbVWUJVW8JwACjcxG0xvEwIxGrwCYjI0SjxkI62AI1cAE67vI Y487MxkIecxEwVCm-wCF04k20xvY0x0EwIxGrwCFx2IqxVCFs4IE7xkEbVWUJVW8JwC20s 026c02F40E14v26r1j6r18MI8I3I0E7480Y4vE14v26r106r1rMI8E67AF67kF1VAFwI0_ JF0_Jw1lIxkGc2Ij64vIr41lIxAIcVC0I7IYx2IY67AKxVWUJVWUCwCI42IY6xIIjxv20x vEc7CjxVAFwI0_Jr0_Gr1lIxAIcVCF04k26cxKx2IYs7xG6rW3Jr0E3s1lIxAIcVC2z280 aVAFwI0_Jr0_Gr1lIxAIcVC2z280aVCY1x0267AKxVWUJVW8JbIYCTnIWIevJa73UjIFyT uYvjxUqEoXUUUUU X-CM-SenderInfo: xpdruxter6z05rqj20fqof0/ X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00,NICE_REPLY_A, SPF_HELO_PASS,SPF_PASS,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 在 2022/5/13 08:36, Andrew Morton 写道: > On Thu, 28 Apr 2022 12:34:07 -0400 Peter Xu wrote: > >> On Thu, Apr 28, 2022 at 05:17:07PM +0200, David Hildenbrand wrote: >>> On 17.03.22 07:50, Bibo Mao wrote: >>>> collapse huge page will copy huge page from general small pages, >>>> dest node is calculated from most one of source pages, however >>>> THP daemon is not scheduled on dest node. The performance may be >>>> poor since huge page copying across nodes, also cache is not used >>>> for target node. With this patch, khugepaged daemon switches to >>>> the same numa node with huge page. It saves copying time and makes >>>> use of local cache better. >>>> >>>> With this patch, specint 2006 base performance is improved with 6% >>>> on Loongson 3C5000L platform with 32 cores and 8 numa nodes. >>> >>> If it helps, that's nice as long as it doesn't hurt other cases. >>> > > Quite a bit of doubtful feedback and we have yet to hear from the > author. I'll drop the patch. > > Bibo, please resend at a later time if you feel the patch remains > desirable. Please attempt to address the feedback via code changes > and/or changelogging. Sorry for the late response, the mail is filtered and I did not notice that. The result is not so obvious after bandwidth is improved between nodes, it is only about 1% improvement for specint2006 for 32 core on my box. Now I do not see negative effective about this patch unless user wants to keep some cores separated from khugepaged daemon process. regards bibo,mao