Skip to content

Rbkit shows the RES mem size grows, but top shows RES keeps flat #142

Description

@dzl84

I use rbkit to profile the following code. It runs with ruby 2.2.0. After running for 1min, rbkit shows RES size is ~100MB, while top shows the RES is about 13MB.

require 'rbkit'
require 'timeout'
Rbkit.start_server

100000.times do
timeout(3) {
puts 'hello mem!'.freeze
sleep(2)
}
end

So what is the RES size in rbkit? How can I get the same value of top result?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions