On Thu, 6 Sep 2007, Junio C Hamano wrote:I think "repack -d -l" should be ok from a safety perspective, but I'd also like to say that always running it incrementally is going to largely suck after a time. IOW, if you get lots of small incrmental packs, after a while you really *do* need to do "git gc" to get the real pack generated. In the case I saw, James really had hundreds of pack-files. That makes all our object lookups suck. Yes, not having loose objects at all is a big deal too, and yes, we try to start from the last pack-file we found (for the locality that we hope is there), but it's still pretty bad from a cache usage standpoint, and when we create a new object, we'll first search (in vain) in all the hundreds of pack-files. So would "git gc --auto" have helped James? I'm sure it would have. But he already had lots of pack-files from doing "git fetch/pull", and while doing the "git gc --auto" will likely *delay* the point where you need to do a full repack, it doesn't make it go away. We still need to tell people to do a full git gc at some point, or do it for them. And the longer you delay doing it, the more expensive it's going to get to do and/or the worse the final packing is going to be (especially if it ends up reusing non-optimal packing decisions from the smaller packs). So I think the --auto stuff is still worth it, but it's really just pushing the pain somewhat further out. (In the kernel community, if you fetch my tree daily, you really *are* going to have hundreds and hundreds of packfiles just from doing that). So I'd really like us to also remind people to do a *real* and full "git gc", not just the incremental ones. Linus - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
| Ingo Molnar | Re: x86: 4kstacks default |
| Gabriel C | modpost errors ( Re: 2.6.23-rc6-mm1) |
| Bart Van Assche | Integration of SCST in the mainstream Linux kernel |
| Press, Jonathan | RE: [malware-list] [RFC 0/5] [TALPA] Intro to a linux interface foron access scann... |
git: | |
| David Miller | Re: iptables very slow after commit784544739a25c30637397ace5489eeb6e15d7d49 |
| Natalie Protasevich | [BUG] New Kernel Bugs |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Gerrit Renker | [PATCH 13/37] dccp: Deprecate Ack Ratio sysctl |
