From: "Jon Nelson" <jnelson@jamponi.net>
To: git@vger.kernel.org
Subject: pack.packSizeLimit and --max-pack-size not working?
Date: Wed, 12 Nov 2008 09:12:17 -0600 [thread overview]
Message-ID: <cccedfc60811120712o7fcbf648l9f4b8e6f52e50e39@mail.gmail.com> (raw)
I'm using 1.6.0.4 and I've found some weird behavior with
pack.packSizeLimit and/or --max-pack-size.
Initially, I thought I could just use pack.packSizeLimit and set it to
(say) 1 to try to limit the size of individual packfiles to 1MiB or
less. That does not appear to be working.
In one case I performed the following set of commands:
# set pack.packSizeLimit to 20
git config --global pack.packSizeLimit 20
# verify that it's 20
git config --get pack.packSizeLimit # verify it's 20
# run gc --prune
git gc --prune
# show the packfiles
# I find a *single* 65MB packfile, not a series
# of 20MB (or less) packfiles.
ls -la .git/objects/pack/*.pack
# try repack -ad
git repack -ad
# I find a *single* 65MB packfile, not a series
# of 20MB (or less) packfiles.
ls -la .git/objects/pack/*.pack
So it would appear that the pack.packSizeLimit param
is just being ignored??
Then I tested using --max-pack-size explicitly. This works, to a degree.
git repack -ad --max-pack-size 20
# the following shows *4* pack files none larger
# than (about) 20MB
ls -la .git/objects/pack/*.pack
# try again with 3MB. This also works.
git repack -ad --max-pack-size 3
find .git/objects/pack -name '*.pack' -size +3M -ls # nothing
# try again with 1MB. This does NOT work.
git repack -ad --max-pack-size 1
# here, I find a *single* 65MB pack file again:
find .git/objects/pack -name '*.pack' -size +1M -ls
Am I doing something completely wrong with pack.packSizeLimit?
What is going on with --max-pack-size in the 1MB case?
--
Jon
next reply other threads:[~2008-11-12 15:13 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-12 15:12 Jon Nelson [this message]
2008-11-12 16:17 ` [PATCH] fix pack.packSizeLimit and --max-pack-size handling Nicolas Pitre
2008-11-12 17:46 ` Junio C Hamano
2008-11-12 18:23 ` Nicolas Pitre
2008-11-12 21:23 ` Junio C Hamano
2008-11-12 17:58 ` Jon Nelson
2008-11-12 21:42 ` Nanako Shiraishi
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=cccedfc60811120712o7fcbf648l9f4b8e6f52e50e39@mail.gmail.com \
--to=jnelson@jamponi.net \
--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).