Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1096205ybl; Tue, 3 Dec 2019 01:26:44 -0800 (PST) X-Google-Smtp-Source: APXvYqyM3/NLiFGQxZ1h5ZET/9xtheRj8FLptwCF9JjmVko4dCsBz5qkwfIzRQSxVdsOzw6rX5b9 X-Received: by 2002:a54:400a:: with SMTP id x10mr2483282oie.67.1575365204821; Tue, 03 Dec 2019 01:26:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575365204; cv=none; d=google.com; s=arc-20160816; b=NpqyLVQ/dnbgQ5JSPuR/QQjP5oR0vFbOFtEKRpqgORd2l9F+yj6fJ1T5D8ph3koDrQ RxDyC+ptWM8+ZCsnG9mV+UdJMnLy7jQl3WSkUyT1EpxZ1Fn1Sop1k5auw4URotC0AL2W BDHRFbaEBfIN20PXAIaAscd3r9v8Dsh/JCwrKXbbAr4Fvzf6cu60m6Zj81hrhmYinCRr atsP8I5FZaQaXaWi4404qNrUVwX9dokpeRkyEP1XmpE9CovUnQIlR8gm6AFmPvizcnv0 DqIo3XC/seKaz17UGIib15CjQLqcTUHSYi6bs8pdubTfnJ6M8zOShliaMpcYKle7k6Tx balQ== 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=uxQ8OUCQlOl21uzEMFhCxl4r4vCm51Eo6D8IXEJ8Aos=; b=e/k21L+hJneZciAElgnH/1Ryr/MNIa4TJ1XorWSZISpPxxudcNFFDp6KYBjMNWKNGv OW+MANMVAiKViIFaEweglIxrUYfGBdw0F9FKBSR8N9DpTUmIWo1w1pv+kO9MLd0Z9gcC GTnrmWbLhWTVyuy+tJJ2JYzjUa7bO2+t/YrrJ499Fn+KJcLSMGvyjsQvBzdn4qX9FMo+ ovMvZPd6HDuMv1tiE/zHYxOp2orL0SwrkRE7dJyzzSI36dOFPaJP27JG0SBZwYXI9D+i PE4cPw4YLIPqs+B4ohELg+bIe4soQRZKNM7Wba+KZtybAK97eW+1gUsu3BnmzYRFynev D9rA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j24si917559oij.157.2019.12.03.01.26.32; Tue, 03 Dec 2019 01:26:44 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726189AbfLCJZz (ORCPT + 99 others); Tue, 3 Dec 2019 04:25:55 -0500 Received: from out30-57.freemail.mail.aliyun.com ([115.124.30.57]:39596 "EHLO out30-57.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725774AbfLCJZy (ORCPT ); Tue, 3 Dec 2019 04:25:54 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R121e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04395;MF=yun.wang@linux.alibaba.com;NM=1;PH=DS;RN=7;SR=0;TI=SMTPD_---0Tjo4jQE_1575365150; Received: from testdeMacBook-Pro.local(mailfrom:yun.wang@linux.alibaba.com fp:SMTPD_---0Tjo4jQE_1575365150) by smtp.aliyun-inc.com(127.0.0.1); Tue, 03 Dec 2019 17:25:52 +0800 Subject: Re: [PATCH RESEND] sched/numa: expose per-task pages-migration-failure To: Ingo Molnar Cc: Ingo Molnar , Peter Zijlstra , Juri Lelli , =?UTF-8?Q?Michal_Koutn=c3=bd?= , Mel Gorman , Linux Kernel Mailing List References: <7038afda-dd08-f01f-5da0-afadf76f5533@linux.alibaba.com> <20191203071615.GD115767@gmail.com> From: =?UTF-8?B?546L6LSH?= Message-ID: Date: Tue, 3 Dec 2019 17:25:49 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20191203071615.GD115767@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019/12/3 下午3:16, Ingo Molnar wrote: [snip] >> kernel/sched/debug.c | 1 + >> 1 file changed, 1 insertion(+) >> >> diff --git a/kernel/sched/debug.c b/kernel/sched/debug.c >> index f7e4579e746c..73c4809c8f37 100644 >> --- a/kernel/sched/debug.c >> +++ b/kernel/sched/debug.c >> @@ -848,6 +848,7 @@ static void sched_show_numa(struct task_struct *p, struct seq_file *m) >> P(total_numa_faults); >> SEQ_printf(m, "current_node=%d, numa_group_id=%d\n", >> task_node(p), task_numa_group_id(p)); >> + SEQ_printf(m, "migfailed=%lu\n", p->numa_faults_locality[2]); > > Any reason not to expose the other 2 fields of this array as well, which > show remote/local migrations? The rest are local/remote faults counter, AFAIK not related to migration, when the CPU triggered PF is from the same node of page (before migration), local faults increased. Regards, Michael Wang > > Thanks, > > Ingo >