You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mesos.apache.org by "Eric W. Biederman (JIRA)" <ji...@apache.org> on 2013/10/22 08:22:41 UTC

[jira] [Created] (MESOS-758) Incorrect memory statistics are reported under linux

Eric W. Biederman created MESOS-758:
---------------------------------------

             Summary: Incorrect memory statistics are reported under linux
                 Key: MESOS-758
                 URL: https://issues.apache.org/jira/browse/MESOS-758
             Project: Mesos
          Issue Type: Bug
    Affects Versions: 0.14.1, 0.14.0, 0.13.0, 0.12.0
            Reporter: Eric W. Biederman


Under linux when using the cgroup_isolator only the number of non file backed pages are reported in the memory rss.  This excludes all text pages in the binaries and all page cache pages.   As a result of the incorrect reporting users are very confused when they hit their memory limits when it appears they are gigabytes away from them.

The correct number to report is from the file memory.usage_in_bytes.

It would also be nice to have:
memory.stat:total_rss -- This is the number of bytes that are not backed by files.
memory.stat:total_cached -- This is the number of bytes that are backed by files.
memory.stat:total_mapped -- This is the number of bytes backed by files that are mmaped into processes.  


memory.stat:rss that is currently reported is wrong in two dimensions.
- It does not include child cgroups
- It does not include any file backed pages, so it is strictly impossible to run the job with the limit set to the number that is reported.



--
This message was sent by Atlassian JIRA
(v6.1#6144)