From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx189.postini.com [74.125.245.189]) by kanga.kvack.org (Postfix) with SMTP id 555D26B0277 for ; Fri, 22 Jun 2012 19:10:59 -0400 (EDT) Received: by dakp5 with SMTP id p5so3588620dak.14 for ; Fri, 22 Jun 2012 16:10:58 -0700 (PDT) Date: Fri, 22 Jun 2012 16:10:56 -0700 (PDT) From: David Rientjes Subject: Re: [patch] mm, oom: replace some information in tasklist dump In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="397155492-351438479-1340406657=:15114" Sender: owner-linux-mm@kvack.org List-ID: To: KOSAKI Motohiro Cc: Andrew Morton , KAMEZAWA Hiroyuki , linux-mm@kvack.org This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --397155492-351438479-1340406657=:15114 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT On Fri, 22 Jun 2012, KOSAKI Motohiro wrote: > > @@ -396,10 +396,11 @@ static void dump_tasks(const struct mem_cgroup *memcg, const nodemask_t *nodemas > > continue; > > } > > > > - pr_info("[%5d] %5d %5d %8lu %8lu %3u %3d %5d %s\n", > > + pr_info("[%5d] %5d %5d %8lu %8lu %7lu %8lu %5d %s\n", > > task->pid, from_kuid(&init_user_ns, task_uid(task)), > > task->tgid, task->mm->total_vm, get_mm_rss(task->mm), > > - task_cpu(task), task->signal->oom_adj, > > + task->mm->nr_ptes, > > nr_ptes should be folded into rss. it's "resident". > btw, /proc rss info should be fixed too. > If we can fold rss into get_mm_rss() and every caller is ok with that, then we can remove showing it here and adding it explicitly in oom_badness(). --397155492-351438479-1340406657=:15114-- -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org