Skip to contentSkip to conversation

bitmap creation failed

DISCUSSION gjarms 3 participants 4 messages Sep 1, 2016 – Sep 2, 2016 1 message not in the archive

lore
Share & tools
lore

gjarms

author
#0 lore raw

Hi Git Experts,

We have been exploring various ways to improve git cloning time, one among them is using bitmap which is suppose to save time "counting objects". but i have problem creating bitmap since the repository contains 100's of pack files. the bitmap file is not created when i use "git gc".

I have the following entries in my .gitconfig.

[pack]
packSizeLimit = 10m
writebitmaps = on
writeBitmapHashCache = on

If i just dont use "packSizeLimit = 10m", then bitmap is created just by running git gc

Can you please make me understand ?, What i understood is that the bitmap is created when there is a single pack file, but if i split it into multiple pack file, the bitmap generation fails with the warning "warning: disabling bitmap writing, as some objects are not being packed".

Regards,
Arumuga

--
View this message in context: http://git.661346.n2.nabble.com/bitmap-creation-failed-tp7657450.html
Sent from the git mailing list archive at Nabble.com.

#1 lore raw
Quoted 14 lines · gjarms

Hi Git Experts,

We have been exploring various ways to improve git cloning time, one among them is using bitmap which is suppose to save time "counting objects". but i have problem creating bitmap since the repository contains 100's of pack files. the bitmap file is not created when i use "git gc".

I have the following entries in my .gitconfig.

[pack]
packSizeLimit = 10m
writebitmaps = on
writeBitmapHashCache = on

Quoted 7 lines

If i just dont use "packSizeLimit = 10m", then bitmap is created just by running git gc

Can you please make me understand ?, What i understood is that the bitmap is created when there is a single pack file, but if i split it into multiple pack file, the bitmap generation fails with the warning "warning: disabling bitmap writing, as some objects are not being packed".

So I guess your single pack is larger than 10m, so it tries to create multiple packs,
and that is not supported as bitmaps only operate on one pack.

Stefan

Quoted 9 lines

Regards,
Arumuga

--
View this message in context: http://git.661346.n2.nabble.com/bitmap-creation-failed-tp7657450.html
Sent from the git mailing list archive at Nabble.com.

#2 lore raw
In reply to gjarms
Quoted 14 lines · gjarms

Hi Git Experts,

We have been exploring various ways to improve git cloning time, one among them is using bitmap which is suppose to save time "counting objects". but i have problem creating bitmap since the repository contains 100's of pack files. the bitmap file is not created when i use "git gc".

I have the following entries in my .gitconfig.

[pack]
packSizeLimit = 10m
writebitmaps = on
writeBitmapHashCache = on

Quoted 7 lines

If i just dont use "packSizeLimit = 10m", then bitmap is created just by running git gc

Can you please make me understand ?, What i understood is that the bitmap is created when there is a single pack file, but if i split it into multiple pack file, the bitmap generation fails with the warning "warning: disabling bitmap writing, as some objects are not being packed".

That's weird. I'd expect it to say:

disabling bitmap writing, packs are split due to pack.packSizeLimit

At least since v2.8.3, which has 9cea46cdda. Before that it wouldn't have printed anything, and just silently turned off bitmaps.

The "some objects are not being packed" warning should only come when want_object_in_pack() says we don't want an object. That's generally because the object is either found in a shared alternates repository, or is in a .keep pack. Though in the latter case, unless you've set repack.packKeptObjects manually, we'll pack it anyway when bitmaps are in effect (since ee34a2bead, in v2.0.0).

That confusion aside, you almost certainly should not be setting packSizeLimit, and definitely not to something so low. Git will not store cross-pack deltas, so you miss out on tons of delta opportunities. As a result:

1. Your on-disk repository size will balloon. So you'll have a hundred 10m packs rather than one 200mb pack.

2. Your clone times will also grow, as git will try to find new deltas between the objects in various packs independently for each clone.

-Peff

#4 lore raw
In reply to a message not in the archive
Quoted 6 lines · Arumuga

So I understand now, the following.

1. reducing the pack file size will increase the clone time
2. Single pack file is expected to better use bitmap feature.

Am i correct ?

Yes, on both.

-Peff