From: "Dmitry V. Levin" <ldv@altlinux.org> To: ALT Devel discussion list <devel@lists.altlinux.org> Subject: Re: [devel] git-prune/git-repack costs Date: Sun, 28 May 2006 18:11:34 +0400 Message-ID: <20060528141134.GA31991@basalt.office.altlinux.org> (raw) In-Reply-To: <20060528083511.GA15546@procyon.home> [-- Attachment #1: Type: text/plain, Size: 1525 bytes --] On Sun, May 28, 2006 at 12:35:12PM +0400, Sergey Vlasov wrote: > On Sun, May 28, 2006 at 03:31:47AM +0400, Dmitry V. Levin wrote: > > On Sat, May 27, 2006 at 12:24:27PM +0400, Sergey Vlasov wrote: > > [...] > > > Вообще-то обычно делают git-repack -a -d && git-prune-packed. > > > > Я так понимаю, что если git-repack запускается с ключами -a -d, то > > git-prune-packed уже запускать незачем. > > Нет, git-prune-packed как раз нужен - git-repack -a -d удаляет только > старые pack-файлы, но не трогает неупакованные объекты, которые как > раз и занимают кучу места. Не знаю, может manpage и написан таким образом, но по факту по окончанию git-repack -a -d ни одного неупакованного объекта не остаётся. > > > git-prune - действительно очень ресурсоёмкая операция, но она нужна > > > только в том случае, если в репозитории по каким-то причинам появились > > > объекты, на которые нет ссылок. Кроме того, необходимо, чтобы при > > > выполнении git-prune никто не писал в репозиторий (иначе только что > > > добавленные объекты могут быть удалены, поскольку в этот момент на них > > > ещё нет ссылок). > > > > git-repack -a -- тоже очень ресурсоёмкая операция, особенно на больших > > файлах типа gcc-4.1.1-20060525.tar; видимо, алгоритм реализован > > неоптимально с точки зрения потребляемых ресурсов. > > Вообще этот алгоритм пытались править - сейчас в ветке master всё это > сильно переписано. Вот когда master превратится в maint, тогда я буду "всё это" тестировать. -- ldv [-- Attachment #2: Type: application/pgp-signature, Size: 191 bytes --]
next prev parent reply other threads:[~2006-05-28 14:11 UTC|newest] Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top 2006-05-09 20:03 [devel] sandman vs. hasher+gear Alexey I. Froloff 2006-05-10 10:05 ` Dmitry V. Levin 2006-05-10 10:38 ` Alexey I. Froloff 2006-05-10 11:00 ` Dmitry V. Levin 2006-05-10 11:36 ` Alexey I. Froloff 2006-05-10 12:21 ` Dmitry V. Levin 2006-05-10 12:53 ` Dmitry V. Levin 2006-05-10 13:07 ` Alexey I. Froloff 2006-05-10 13:28 ` Dmitry V. Levin 2006-05-26 21:02 ` [devel] git-prune/git-repack costs Dmitry V. Levin 2006-05-27 8:24 ` Sergey Vlasov 2006-05-27 23:31 ` Dmitry V. Levin 2006-05-28 8:35 ` Sergey Vlasov 2006-05-28 14:11 ` Dmitry V. Levin [this message] 2006-05-29 8:28 ` Sergey Vlasov 2006-06-19 9:18 ` Alexey I. Froloff
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=20060528141134.GA31991@basalt.office.altlinux.org \ --to=ldv@altlinux.org \ --cc=devel@lists.altlinux.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
ALT Linux Team development discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \ devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru public-inbox-index devel Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.devel AGPL code for this site: git clone https://public-inbox.org/public-inbox.git