Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memory check against resident memory is wrong #127

Open
Sirtea opened this issue Jun 13, 2014 · 0 comments
Open

Memory check against resident memory is wrong #127

Sirtea opened this issue Jun 13, 2014 · 0 comments

Comments

@Sirtea
Copy link

Sirtea commented Jun 13, 2014

Hi,

According to m202 course, in memory model section, resident memory is not a good metric for memory usage, because is not freed, although it's not used.

db.serverStatus().mem
{
"bits" : 32,
"resident" : 31,
"virtual" : 211,
"supported" : true,
"mapped" : 80
}

Please consider looking at workingSet pages to get a more real approximation

db.serverStatus({workingSet:1}).workingSet
{
"note" : "thisIsAnEstimate",
"pagesInMemory" : 5,
"computationTimeMicros" : 15064,
"overSeconds" : 417
}

This means that this empty instance is consuming 5 pages of memory (4kb each, for a 20kb total memory usage), but memory check is reporting 31mb. The numbers are more dramatic in our production systems.

Regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant