Wrong RSS field in ps

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Dave,

On s390 (kernel 4.2.0-rc2) the "RSS" field in "ps" is wrong.

The reason is that in rss_page_types_init() enumerator_value("MM_ANONPAGES",
&anonpages) returns zero for "anonpages" and therefore we add MM_FILEPAGES
twice instead of adding MM_ANONPAGES.

Example: Process that allocated 500 MB:

ps 2152
   PID    PPID  CPU       TASK        ST  %MEM     VSZ    RSS  COMM
   2152   1061   4      7aff0000      IN   0.0  514024   2236  eat_mem

crash> print/x ((struct task_struct *) 0x7aff0000)->mm->rss_stat
$1 = {
  count = {{
      counter = 0x113
    }, {
      counter = 0x1f414
    }, {
      counter = 0x0
    }}
}

Any idea why enumerator_value() is not working?

Michael

--
Crash-utility mailing list
Crash-utility@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/crash-utility



[Index of Archives]     [Fedora Development]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]

 

Powered by Linux