git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git packs

From
Bbob <kranki@mac.com>
Date
Nov 12, 2007, 02:53 UTC
Message-ID
<B298202C-3D54-498D-A348-0338914FBA46@mac.com>
In-Reply-To
<alpine.LFD.0.9999.0711102331270.21255@xanadu.home>
I applied the patch and these commands:

cd rmwHtmlOld rm -fr .git git init git config core.compression 0 git add .

I then got the same error as before, "Bus error".  Rats!

Then I modified your script since I do not have seq or your test-genrandom. I substituted:

dd count=XX  if=/dev/random of=file_$i

where XX is adjusted to meet dd's requirements. Also, I found after searching for a while, that the following works just like your seq command:

xyzzy="1 2 3 4" for i in $xyzzy do ... done

Your script then ran flawlessly.

I looked through index-pack.c some more, but it is very hard to figure it out without doing a lot of research since there doesn't seem to be anything that describes the layout of a pack. The link towards the end of the user's manual doesn't work for me.

The difference between your test and my data is that instead of having a few large files, I have 11,500 files of varying sizes. On average though, the file size is about 370k.

HTH
On Nov 10, 2007, at 11:35 PM, Nicolas Pitre wrote:
Show 18 quoted lines
> On Sat, 10 Nov 2007, bob wrote:
>
>> I will try a few things and see if I can get a script put together
>> that generates the inflate problem.  The data that I am
>> using is a backup of my original repository.  So, I can
>> play all that I want.  But it would be a lot easier if I
>> could just generate some files using dd or something.
>
> Please see the patch I just posted to the list.  That should fix your
> problem.  I even included a small script to create a repository
> confirming the problem and allowing to test the fix.
>
>
> Nicolas
> -
> 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
Previous: Nicolas PitreNext: Nicolas Pitre
Message 11 of 19 in “git packs”
  1. bobNov 10, 2007
  2. Nicolas PitreNov 10, 2007
  3. bobNov 10, 2007
  4. Luke LuNov 10, 2007
  5. Linus TorvaldsNov 10, 2007
  6. David BrownNov 10, 2007
  7. Linus TorvaldsNov 10, 2007
  8. Linus TorvaldsNov 10, 2007
  9. bobNov 10, 2007
  10. Nicolas PitreNov 11, 2007
  11. bobNov 12, 2007
  12. Nicolas PitreNov 12, 2007
  13. bobNov 12, 2007
  14. bobNov 10, 2007
  15. David BrownNov 10, 2007
  16. bobNov 10, 2007
  17. Derek FawcusNov 11, 2007
  18. bobNov 11, 2007
  19. Martin LanghoffNov 12, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.