|
From: Wilson Y. <wil...@gm...> - 2007-08-03 01:46:10
|
I am running with valgrind with the following flags: --tool=memcheck --leak-check=full --show-reachable=yes --trace-children=yes -v --error-limit=no. I've looked through documentation and searched the archives, but don't see an explanation of what "secondaries" means. ==11085== LEAK SUMMARY: ==11085== definitely lost: 4 bytes in 1 blocks. ==11085== possibly lost: 4,951 bytes in 118 blocks. ==11085== still reachable: 2,269,775 bytes in 40,367 blocks. ==11085== suppressed: 0 bytes in 0 blocks. --11085-- memcheck: sanity checks: 2090451 cheap, 83619 expensive --11085-- memcheck: auxmaps: 0 auxmap entries (0k, 0M) in use --11085-- memcheck: auxmaps: 0 searches, 0 comparisons --11085-- memcheck: secondaries: 1951 issued (124864k, 121M) --11085-- memcheck: secondaries: 1782 accessible and distinguished (114048k, 111M) As you can see, there's 121M in secondaries, but I can't account for that in the lost and reachable bytes/blocks. What are "secondaries", and what does "accessible" and "distinguished" mean? Thanks, Wilson |
|
From: Tom H. <to...@co...> - 2007-08-03 07:30:13
|
In message <74a...@ma...>
Wilson Yeung <wil...@gm...> wrote:
> I am running with valgrind with the following flags: --tool=memcheck
> --leak-check=full --show-reachable=yes --trace-children=yes -v
> --error-limit=no.
>
> I've looked through documentation and searched the archives, but don't
> see an explanation of what "secondaries" means.
>
> ==11085== LEAK SUMMARY:
> ==11085== definitely lost: 4 bytes in 1 blocks.
> ==11085== possibly lost: 4,951 bytes in 118 blocks.
> ==11085== still reachable: 2,269,775 bytes in 40,367 blocks.
> ==11085== suppressed: 0 bytes in 0 blocks.
> --11085-- memcheck: sanity checks: 2090451 cheap, 83619 expensive
> --11085-- memcheck: auxmaps: 0 auxmap entries (0k, 0M) in use
> --11085-- memcheck: auxmaps: 0 searches, 0 comparisons
> --11085-- memcheck: secondaries: 1951 issued (124864k, 121M)
> --11085-- memcheck: secondaries: 1782 accessible and distinguished
> (114048k, 111M)
>
> As you can see, there's 121M in secondaries, but I can't account for
> that in the lost and reachable bytes/blocks.
>
> What are "secondaries", and what does "accessible" and "distinguished" mean?
It (like many things output when -v is used) is an internal
implementation details that is not something you need to worry
about unless you're working on valgrind itself.
For normal everyday use you really don't need to use -v at all.
Tom
--
Tom Hughes (to...@co...)
http://www.compton.nu/
|