git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jeff King <peff@peff.net>
To: Martin Langhoff <martin.langhoff@gmail.com>
Cc: Git Mailing List <git@vger.kernel.org>
Subject: Re: gitk normal use on linux repo and severe memory pressure
Date: Wed, 25 May 2011 14:27:34 -0400	[thread overview]
Message-ID: <20110525182734.GA26407@sigill.intra.peff.net> (raw)
In-Reply-To: <BANLkTinrj2AOCMMWazf2F4eKy7Sy56K0vg@mail.gmail.com>

On Wed, May 25, 2011 at 11:20:24AM -0400, Martin Langhoff wrote:

> An anecdotical report: Right today, I fired up gitk on a linux-2.6.39
> checkout to review some new patches. While discussing the patches with
> other developers on irc, my machine (arguably, RAM-constrained at 1GB)
> started to hit swap heavily.

Yeah, gitk on linux-2.6 tops out at around 1.6GB on my machine. Ouch.
That's 6-7K per commit. In git.git, it's similar (7-8K per commit).
For comparison, all of "git log --pretty=raw" for linux-2.6 is only
about 180M, or ~0.7K per commit.

Obviously there is going to be some overhead with organizing the data,
but that is really quite a lot.

> Are there efforts afoot to teach gitk to read in _some_ history and
> pause, continuing if the user scrolls down? Not sure if searches are
> done in-memory in gitk -- which probably complicates things.

Not that I know of. But it seems like there might be some room to
optimize gitk's storage. I know absolutely nothing about how commits are
stored now, though, so it's possible I'm completely wrong.

-Peff

      parent reply	other threads:[~2011-05-25 18:27 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-25 15:20 gitk normal use on linux repo and severe memory pressure Martin Langhoff
2011-05-25 17:01 ` Andreas Schwab
2011-05-25 17:17   ` Martin Langhoff
2011-05-25 18:27 ` Jeff King [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110525182734.GA26407@sigill.intra.peff.net \
    --to=peff@peff.net \
    --cc=git@vger.kernel.org \
    --cc=martin.langhoff@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).