Search the web
Sign In
New User? Sign Up
mpatrol · mpatrol library discussion group
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
mpatrol heap efficiency ?   Message List  
Reply | Forward Message #1027 of 1198 |
Hello all,

I'm new to using mpatrol and I'm trying to use it to figure out heap
efficiency. Basically when the process mallocs memory, reserves it,
and then when it frees the memory and when it can actually free
blocks/pages back to be used by everyone else.

I see in the mptrace tool it tells you when it reserves it:
12 free 20 0x093E71AC 16 1 0 0
13 alloc 21 0x093E71AC 16 1 16
reserve 0x093E9000 98304
14 alloc 22 0x093E7904 96000 2 96016
reserve 0x09401000 98304


But I don't see it listing when it frees it back to general use by
everyone.

Does anyone know if mpatrol does this? How does it figure out when it
reserves it? Does it wrap sbrk?

Thanks,
Tom





Wed Nov 22, 2006 4:27 pm

tgraves_cs
Offline Offline
Send Email Send Email

Forward
Message #1027 of 1198 |
Expand Messages Author Sort by Date

Hello all, I'm new to using mpatrol and I'm trying to use it to figure out heap efficiency. Basically when the process mallocs memory, reserves it, and then...
tgraves_cs
Offline Send Email
Nov 22, 2006
4:36 pm

Hi Tom, The short answer is that it doesn't free the memory back to the system, and neither do most other malloc libraries. And now for the long answer... For...
Graeme Roy
graemeroy
Offline Send Email
Nov 22, 2006
7:25 pm

thanks much for your response, off hand do you know any process analysis tools that would give me this information? Tom ... ...
Tom Graves
tgraves_cs
Offline Send Email
Nov 27, 2006
3:19 pm

Hi Tom, Assuming you're wanting more low-level memory usage statistics, I can't really recommend one particular tool because it depends what system you're...
graeme@...
graemeroy
Offline Send Email
Nov 27, 2006
4:26 pm

Hey Graeme, thanks again. I'm running on linux. I've used strace for some testing and small programs, but was hoping there was an existing tool to give me nice...
Tom Graves
tgraves_cs
Offline Send Email
Nov 27, 2006
5:11 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help