From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Move to git is imminent - awaiting Stefan's approval Date: Thu, 09 Jan 2014 21:44:41 +0200 Message-ID: <83ob3lc53q.fsf@gnu.org> References: <52CB2AB0.4080505@alice.it> <877gachfza.fsf@igel.home> <52CBD5CC.4020804@alice.it> <8761pvvoq1.fsf@rosalinde.fritz.box> <83d2k3sqqz.fsf@gnu.org> <52CC2D45.1000908@alice.it> <83a9f7sosr.fsf@gnu.org> <52CC5ED3.2000903@alice.it> <83d2k2fkg1.fsf@gnu.org> <52CDC949.6090107@alice.it> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1389296694 18896 80.91.229.3 (9 Jan 2014 19:44:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 9 Jan 2014 19:44:54 +0000 (UTC) Cc: emacs-devel@gnu.org To: Angelo Graziosi Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jan 09 20:45:00 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1W1LXG-0004RU-PA for ged-emacs-devel@m.gmane.org; Thu, 09 Jan 2014 20:44:58 +0100 Original-Received: from localhost ([::1]:53842 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W1LXG-0003Ic-AJ for ged-emacs-devel@m.gmane.org; Thu, 09 Jan 2014 14:44:58 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44318) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W1LX8-0003IB-RD for emacs-devel@gnu.org; Thu, 09 Jan 2014 14:44:55 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W1LX3-00075O-VS for emacs-devel@gnu.org; Thu, 09 Jan 2014 14:44:50 -0500 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:62265) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W1LX3-000757-MJ for emacs-devel@gnu.org; Thu, 09 Jan 2014 14:44:45 -0500 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MZ500B00FYC3M00@a-mtaout20.012.net.il> for emacs-devel@gnu.org; Thu, 09 Jan 2014 21:44:44 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MZ500AV4G6JRO70@a-mtaout20.012.net.il>; Thu, 09 Jan 2014 21:44:44 +0200 (IST) In-reply-to: <52CDC949.6090107@alice.it> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.166 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:167967 Archived-At: > Date: Wed, 08 Jan 2014 22:55:21 +0100 > From: Angelo Graziosi > CC: schwab@suse.de, stephen.berman@gmx.net, sven.axelsson@gmail.com, > emacs-devel@gnu.org > > Il 08/01/2014 18.32, Eli Zaretskii ha scritto: > >> Date: Tue, 07 Jan 2014 21:08:51 +0100 > >> From: Angelo Graziosi > >> CC: stephen.berman@gmx.net, sven.axelsson@gmail.com, emacs-devel@gnu.org > >> > >> $ cd emacs.git/ > >> $ git gc --aggressive > >> Counting objects: 735546, done. > >> Delta compression using up to 2 threads. > >> Compressing objects: 100% (734446/734446), done. > >> Writing objects: 100% (735546/735546), done. > >> Total 735546 (delta 589814), reused 143177 (delta 0) > >> Checking connectivity: 735546, done. > >> > >> which took almost 3 hours to be completed. > >> > >> And the size is: > >> > >> $ cd .. > >> > >> $ du -s emacs.git/ > >> 327M emacs.git/ > >> > >> which seems very good! > > > > I guess this was on Windows 7, right? I succeeded to do this on a > > NO!! It is on Win XP 32 bit (SP3) with AMD Athlon 64 X2 Dual Core > Processor 3800+ and 1.7GiB of RAM. The secret that unlocked this mystery was this: > >> Delta compression using up to 2 threads. ^^^^^^^^^ On my machine, which is a Core i7, this originally said "8 threads". So I did this: git config --global pack.threads "2" then ran "git gc --aggressive" again. That again ran out of memory, but much later in the process. The next step was obvious: git config --global pack.threads "1" With that, "git gc --aggressive" churned away for a little bit more than an hour, and brought me to this: $ du -sh . 323M . > > 64-bit Windows 7 as well, and it took about 2 hours. And now I > > understand why git ran out of memory on Windows XP: the memory > > footprint of git-pack-objects goes up to 3GB, whereas Windows XP has > > only 3GB address space for all the applications. > > Here, on XP, Task Manager shows a memory usage under 1500 MiB (about 1.4 > GiB) With 1 thread, it never goes above 850MB.