From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx201.postini.com [74.125.245.201]) by kanga.kvack.org (Postfix) with SMTP id E2F056B0279 for ; Fri, 22 Jun 2012 19:12:43 -0400 (EDT) Received: by yhjj52 with SMTP id j52so2615263yhj.8 for ; Fri, 22 Jun 2012 16:12:43 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: From: KOSAKI Motohiro Date: Fri, 22 Jun 2012 19:12:21 -0400 Message-ID: Subject: Re: [patch] mm, oom: replace some information in tasklist dump Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Sender: owner-linux-mm@kvack.org List-ID: To: David Rientjes Cc: Andrew Morton , KAMEZAWA Hiroyuki , linux-mm@kvack.org >> > - =A0 =A0 =A0 =A0 =A0 =A0 =A0 pr_info("[%5d] %5d %5d %8lu %8lu %3u =A0= =A0 %3d =A0 =A0 =A0 =A0 %5d %s\n", >> > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 pr_info("[%5d] %5d %5d %8lu %8lu %7lu %8= lu =A0 =A0 =A0 =A0 %5d %s\n", >> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0task->pid, from_kuid(&i= nit_user_ns, task_uid(task)), >> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0task->tgid, task->mm->t= otal_vm, get_mm_rss(task->mm), >> > - =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 task_cpu(task), task->si= gnal->oom_adj, >> > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 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(). No worth to make fragile ABI. Do you have any benefit? -- 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