* git-repack: Outof memory
@ 2006-09-17 1:31 Dongsheng Song
2006-09-17 2:25 ` Shawn Pearce
2006-09-17 21:09 ` Nicolas Pitre
0 siblings, 2 replies; 6+ messages in thread
From: Dongsheng Song @ 2006-09-17 1:31 UTC (permalink / raw)
To: git
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi all:
I'm import from subversion. The problem appears to be git-repack phase using too many memory:
$ git-repack -a -f -d --window=64 --depth=64
Generating pack...
Done counting 123497 objects.
Deltifying 123497 objects.
24% (29677/123497) done
$ top
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
3572 www-data 18 0 2591m 1.9g 528 R 13 94.8 81:48.98 git-pack-object
$ free
total used free shared buffers cached
Mem: 2076308 2029824 46484 0 2760 6800
- -/+ buffers/cache: 2020264 56044
Swap: 1028152 684032 344120
How to compute memory usage of git-repack ?
Thanks and regards,
Dongsheng
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)
iD8DBQFFDKVh90pbDJCgbHoRAlweAJ45DhTXI+bb+nb2Y+JlbIBoFusK8wCgk0U2
XcUc9K/chYiUYq3ZLychzcU=
=NzXf
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: git-repack: Outof memory
2006-09-17 1:31 git-repack: Outof memory Dongsheng Song
@ 2006-09-17 2:25 ` Shawn Pearce
[not found] ` <4b3406f0609161946x52a89dd3q6d74127c376270e7@mail.gmail.com>
2006-09-17 21:09 ` Nicolas Pitre
1 sibling, 1 reply; 6+ messages in thread
From: Shawn Pearce @ 2006-09-17 2:25 UTC (permalink / raw)
To: Dongsheng Song; +Cc: git
Dongsheng Song <dongsheng.song@gmail.com> wrote:
> I'm import from subversion. The problem appears to be git-repack phase using too many memory:
>
> $ git-repack -a -f -d --window=64 --depth=64
> Generating pack...
> Done counting 123497 objects.
> Deltifying 123497 objects.
> 24% (29677/123497) done
>
> $ top
>
> PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
> 3572 www-data 18 0 2591m 1.9g 528 R 13 94.8 81:48.98 git-pack-object
*ouch* You are probably running out of address space if you are on
a 32 bit architecture. A 2.5 GiB virtual address space is pretty
close to the maximum allowed on most OSes.
The code that I'm sitting on but haven't yet completed rebasing
onto current Git would probably help here.
Do you have any existing .pack files in .git/objects/pack? How big
are they and their corresponding .idx files?
git-repack will need to mmap every .pack and .idx in
.git/objects/pack, plus it needs working memory for each object
(123,497 of 'em) but as I recall its pretty frugal on its per-object
allocation. It can easily work with as many as 2 million objects on
a 32 bit system, assuming the .pack and .idx files aren't too large.
--
Shawn.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: git-repack: Outof memory
2006-09-17 1:31 git-repack: Outof memory Dongsheng Song
2006-09-17 2:25 ` Shawn Pearce
@ 2006-09-17 21:09 ` Nicolas Pitre
1 sibling, 0 replies; 6+ messages in thread
From: Nicolas Pitre @ 2006-09-17 21:09 UTC (permalink / raw)
To: Dongsheng Song; +Cc: git
On Sun, 17 Sep 2006, Dongsheng Song wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi all:
>
>
> I'm import from subversion. The problem appears to be git-repack phase using too many memory:
>
> $ git-repack -a -f -d --window=64 --depth=64
Try with that --window=64 argument removed.
Nicolas
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2006-09-18 6:51 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-17 1:31 git-repack: Outof memory Dongsheng Song
2006-09-17 2:25 ` Shawn Pearce
[not found] ` <4b3406f0609161946x52a89dd3q6d74127c376270e7@mail.gmail.com>
[not found] ` <20060917031853.GC7512@spearce.org>
[not found] ` <4b3406f0609170003t63a2f9f4pf2c42faec9746a73@mail.gmail.com>
[not found] ` <4b3406f0609170543p68d96b9x9ba0c5a74d9e89e8@mail.gmail.com>
2006-09-18 0:23 ` Shawn Pearce
2006-09-18 2:47 ` Junio C Hamano
2006-09-18 6:50 ` Shawn Pearce
2006-09-17 21:09 ` Nicolas Pitre
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).