git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Martin Langhoff <martin.langhoff@gmail.com>
To: Git Mailing List <git@vger.kernel.org>
Subject: gitk normal use on linux repo and severe memory pressure
Date: Wed, 25 May 2011 11:20:24 -0400	[thread overview]
Message-ID: <BANLkTinrj2AOCMMWazf2F4eKy7Sy56K0vg@mail.gmail.com> (raw)

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.

Took a couple of minutes to kill it and get the machine back to a
usable state. This is on F-14, git v1.7.4.4 .

Linus' early instinct that people care about the recent patches (so
gitk and git log better show them immediately) was spot on. Now the
problem is that gitk continues to walk history regardless of user
interest. It gobbled up a ton of memory while I never went deeper than
20 commits.

I am tempted to set a global config option limiting gitk to a couple
thousand commits, but it's not really the right solution. If I am
trawling older history, I'll hit the limit and have to close gitk and
reopen overriding the parameter.

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.

cheers,



m
-- 
 martin.langhoff@gmail.com
 martin@laptop.org -- Software Architect - OLPC
 - ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff

             reply	other threads:[~2011-05-25 15:20 UTC|newest]

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

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=BANLkTinrj2AOCMMWazf2F4eKy7Sy56K0vg@mail.gmail.com \
    --to=martin.langhoff@gmail.com \
    --cc=git@vger.kernel.org \
    /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).