Re: git-annotate - leaking hundrets of megabytes
- From
Linus Torvalds <torvalds@linux-foundation.org>
- Date
- Oct 23, 2007, 18:14 UTC
- Message-ID
- <alpine.LFD.0.999.0710231108150.30120@woody.linux-foundation.org>
- In-Reply-To
- <471E28B2.7020508@imendio.com>
On Tue, 23 Oct 2007, Sven Herzberg wrote:
Show 8 quoted lines
> > In my example, it used up to 450MB: > http://people.imendio.com/~sven/massif.18740.png > > Reproduce: > 1. git clone git://git.webkit.org/WebKit.git > 2. cd WebKit/WebCore > 3. git-annotate --incremental ChangeLog
Hmm. I'm not seeing this at all. I do
/usr/bin/time git-annotate --incremental ChangeLog > /dev/null
in WebCore, and it returns
0.16user 0.01system 0:00.18elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+0outputs (0major+8365minor)pagefaults 0swaps
where that minor pagefault count is a good estimate of total memory used. 8365 minor page faults implies it only ever got 32MB of memory total.
What git version do you have, or did you perhaps mean some other file or other config that causes this?
(It does end up using lots more memory if you ask for "-C" to see if there are copies from other sources, but even then I'm not seeing anything close to 450MB!)
Linus