Skip to content

Instantly share code, notes, and snippets.

@evanphx
Created March 29, 2014 05:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save evanphx/9849163 to your computer and use it in GitHub Desktop.
Save evanphx/9849163 to your computer and use it in GitHub Desktop.
def show
# puts "==================="
puts(File.readlines("/proc/self/status").grep(/^VmRSS/))
end
i = 0
big = (1024 ** 2)
p big
while true
"a" * big
i += 1
if i == 100
show
i = 0
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment