Re: dmalloc and leaks in git

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Sun, 9 Dec 2007, Linus Torvalds wrote:
> 
> For example, if you use
> 
> 	valgrind --tool=massif --heap=yes ...

I tried this on my copy of the gcc thing, but I didn't do the extreme 
packing thing, so I never saw the 3.4GB usage. Massif just reported a 200M 
heap, and about half of that was "add_object_entry".

Of course, that doesn't report any mmap usage at all, so it totally 
ignores the mapping of the original pack-file itself (which will obviously 
be totally dense by the end, since we look at all objects).

It also doesn't take into account various secondary effects. For example, 
I don't think it looks at heap fragmentation issues etc, which normally 
aren't a noticeable thing, but maybe some particular allocation pattern 
can make the glibc allocator waste horrid amounts of memory or something 
like that.

			Linus
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux