Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1000938ybl; Mon, 2 Dec 2019 23:17:19 -0800 (PST) X-Google-Smtp-Source: APXvYqx4d2w6IESLyHvU33NeaKtXx7gdMZhzqdAO8+ohJ26mbgn5gSTipuOGrPWOsZlw//LnN6eI X-Received: by 2002:aca:5188:: with SMTP id f130mr2601308oib.47.1575357438944; Mon, 02 Dec 2019 23:17:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575357438; cv=none; d=google.com; s=arc-20160816; b=kJbUBtpCFpQvR2rUOjGnP2yJ9GcivlO0oEyku/6xJ4GE1PPDhELvh3LYcqZUIyX+ZW 6Cg1H4nUnDUbDAOH8WudlN6JzVaAtuUBB5WzjhDMNQSluJAki29dy9nzdNeGrjGysqep KXgWr9h80FA6J3xZ67bU8gS7avxHotnLkqeFMS3KB9ODyTNKnUcj7xMCSl+tbCz7rNks 66JqzQSabCWokVLHg5A01A8hm0oSvV4JFhjHozM/QLhzW+BDykQtYwGWFSrq9K5og+XQ UWCPPqnr57pmh5tvNHmpvW0W1XUrzG7/tHhVgWyl/7o7+l0EmkfS/vriwrQNCw8L0Kvj THxg== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=nm5A1amt4gZBv6FaNIeY6UwlHa3/CPSKkGpJ+nmg4WQ=; b=ziB+YDlnMjwshvJSHx9oXq+J6Yexd1GNP13RihyvbIvLnFtB0eYY4cqsrCKCa252su IVHyeDOJYfbN4NRTYboHFPAQFSrs0A74iF6XRbooS6r4tdTQSwijJTFwpiO4ReYp6bCQ otciYMpsP1wTzT9eyVYr8SPyz7s2VQUQWSDLJilE1bvF/JCU7YVCI9r6P6PedXGUZeZ5 f1n0pKV1KTLylrz33J2RKyGAmmS2CslVi570428Mvu40g2LTnNTpCVggiBzagjOf7VU4 AAPwODsP3fYAmuQW2HvpUca7PiEEbPTFLKz0eUkcQR+CG4savXUhu0fKLHrNrfOsck54 0LCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b="vVcCo/Fn"; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k188si867022oib.201.2019.12.02.23.17.06; Mon, 02 Dec 2019 23:17:18 -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; dkim=fail header.i=@gmail.com header.s=20161025 header.b="vVcCo/Fn"; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727443AbfLCHQU (ORCPT + 99 others); Tue, 3 Dec 2019 02:16:20 -0500 Received: from mail-wm1-f66.google.com ([209.85.128.66]:53410 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727372AbfLCHQT (ORCPT ); Tue, 3 Dec 2019 02:16:19 -0500 Received: by mail-wm1-f66.google.com with SMTP id u18so1809652wmc.3 for ; Mon, 02 Dec 2019 23:16:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=nm5A1amt4gZBv6FaNIeY6UwlHa3/CPSKkGpJ+nmg4WQ=; b=vVcCo/FnN44L6dGlzg2plLMKtRWguBBQrM0LwKjHE7LW5lthXoidG7NRCsvrtNmYlN VKgI3RS8dNBbyxtG2kwNnH8IiGRPGcJwvYCRhovyT57UCT7AOr+Vz79QHB5YVS3yFzLa D6flrQcWainoiJJ32DRFIsbwZaLFgmJhbbXC5ZLgamF4ICJI2krCg6oVOEYDMb4RFPoa szXzzqi7XjFDpS+fufQNgmrv2FI6auiWGcHGFIO6GqZrGWkag0JV89vCGJ+Mvu7fp8OS SLgxkuw///IjvZgGh4nmHTuLA7bZJK15Gj77NEM7WgiJu39fX6j1afMbKcWmCe202I+V PvEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=nm5A1amt4gZBv6FaNIeY6UwlHa3/CPSKkGpJ+nmg4WQ=; b=NR7c7yq/lE+0Zc1uM13HSG03UcLOwX0t30XAp3W95kaLi/l3YdranK09CR8m+lAAcC XklLevm+lUIFa6u20ntAbYGN+O0Ze8ALrOm1vfmtJNUHqRvdm24ottk3HaKxc4cKBoXM Nv5yQi7Hh6h7NakhCDL60tD+XH5VxIyUi/yVrkPiiyuJA24Xvrt+Ls3cNdrx+1hnuXGR /8kcuajRqfuGB/XW7zE8RTK48terQA5O4Ds49pQb3g3e/ahlhbfuWK3r2aL7fvdaLj2b qe9m1SfJDBEyTntz2Eh5tY7GC2sp+UDFJY2a0aKlH4lPiikGg6KuNGzklivu62bepK4a gPdw== X-Gm-Message-State: APjAAAWG8pgGGrxFR/0Xwku9Z2NfvO+XaDmhftaCFnrR6vYDLM2BLBFR QmBOrW/vh4CPliCG1JdPhso= X-Received: by 2002:a1c:4008:: with SMTP id n8mr9235273wma.121.1575357377685; Mon, 02 Dec 2019 23:16:17 -0800 (PST) Received: from gmail.com (54033286.catv.pool.telekom.hu. [84.3.50.134]) by smtp.gmail.com with ESMTPSA id u1sm1925589wmc.3.2019.12.02.23.16.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Dec 2019 23:16:17 -0800 (PST) Date: Tue, 3 Dec 2019 08:16:15 +0100 From: Ingo Molnar To: =?utf-8?B?546L6LSH?= Cc: Ingo Molnar , Peter Zijlstra , Juri Lelli , Michal =?iso-8859-1?Q?Koutn=FD?= , Mel Gorman , Linux Kernel Mailing List Subject: Re: [PATCH RESEND] sched/numa: expose per-task pages-migration-failure Message-ID: <20191203071615.GD115767@gmail.com> References: <7038afda-dd08-f01f-5da0-afadf76f5533@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <7038afda-dd08-f01f-5da0-afadf76f5533@linux.alibaba.com> 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 * 王贇 wrote: > NUMA balancing will try to migrate pages between nodes, which > could caused by memory policy or numa group aggregation, while > the page migration could failed too for eg when the target node > run out of memory. > > Since this is critical to the performance, admin should know > how serious the problem is, and take actions before it causing > too much performance damage, thus this patch expose the counter > as 'migfailed' in '/proc/PID/sched'. > > Cc: Peter Zijlstra > Cc: Michal Koutný > Acked-by: Mel Gorman > Signed-off-by: Michael Wang > --- > 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? Thanks, Ingo