git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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
Previous: Sven HerzbergNext: Florian Weimer
Message 2 of 3 in “git-annotate - leaking hundrets of megabytes”
  1. Sven HerzbergOct 23, 2007
  2. Linus TorvaldsOct 23, 2007
  3. Florian WeimerOct 23, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.