From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS31976 209.132.176.0/21 X-Spam-Status: No, score=-3.5 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MSGID_FROM_MTA_HEADER,RP_MATCHES_RCVD shortcircuit=no autolearn=ham autolearn_force=no version=3.4.0 From: Shawn Pearce Subject: Re: cloning the kernel - why long time in "Resolving 313037 deltas" Date: Tue, 19 Dec 2006 03:32:42 -0500 Message-ID: <20061219083242.GF2511@spearce.org> References: <86r6uw9azn.fsf@blue.stonehenge.com> <86hcvs984c.fsf@blue.stonehenge.com> <8664c896xv.fsf@blue.stonehenge.com> <20061219051108.GA29405@thunk.org> <20061219063930.GA2511@spearce.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii NNTP-Posting-Date: Tue, 19 Dec 2006 08:33:04 +0000 (UTC) Cc: Theodore Tso , Nicolas Pitre , "Randal L. Schwartz" , git@vger.kernel.org Return-path: Envelope-to: gcvg-git@gmane.org Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.11 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - corvette.plexpod.net X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12] X-AntiAbuse: Sender Address Domain - spearce.org X-Source: X-Source-Args: X-Source-Dir: Precedence: bulk X-Mailing-List: git@vger.kernel.org Archived-At: Received: from vger.kernel.org ([209.132.176.167]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GwaPE-0003o4-PP for gcvg-git@gmane.org; Tue, 19 Dec 2006 09:33:01 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932662AbWLSIc6 (ORCPT ); Tue, 19 Dec 2006 03:32:58 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932657AbWLSIc5 (ORCPT ); Tue, 19 Dec 2006 03:32:57 -0500 Received: from corvette.plexpod.net ([64.38.20.226]:58050 "EHLO corvette.plexpod.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932663AbWLSIc5 (ORCPT ); Tue, 19 Dec 2006 03:32:57 -0500 Received: from cpe-74-70-48-173.nycap.res.rr.com ([74.70.48.173] helo=asimov.home.spearce.org) by corvette.plexpod.net with esmtpa (Exim 4.52) id 1GwaOz-0006hA-0M; Tue, 19 Dec 2006 03:32:45 -0500 Received: by asimov.home.spearce.org (Postfix, from userid 1000) id 843FD20FB65; Tue, 19 Dec 2006 03:32:42 -0500 (EST) To: Linus Torvalds Sender: git-owner@vger.kernel.org Linus Torvalds wrote: > On Tue, 19 Dec 2006, Shawn Pearce wrote: > > > > Why isn't git-index-pack doing the same? Is there some hidden glitch > > in some OS somewhere that has a problem with overmapping a file and > > appending into it via write()? I've done that on Mac OS X, Linux, > > BSDi, Solaris... never had a problem. > > It works on modern systems, but at least old HPUX versions had > non-coherent mmap() and write(), and POSIX does not guarantee it. And if > you ever want to port to Windows, I don't think you should do it. > > Anyway, try the pread() version first, see if that fixes the OS X problem. It does. Without pread() (aka stock 'next') it takes me over an hour to index a pack of linux-2.6. With pread() its 1m6s to run index-pack on the same pack file. The indexes are (of course) identically produced. --