delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/10/26/13:29:29

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.2 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SARE_MSGID_LONG40,SPF_HELO_PASS,SPF_PASS
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <20091026172622.GB790@ednor.casa.cgf.cx>
References: <bb237ab80910260841te5fab0di2bb4f3c4f40ce4dd AT mail DOT gmail DOT com> <20091026172622 DOT GB790 AT ednor DOT casa DOT cgf DOT cx>
Date: Mon, 26 Oct 2009 14:29:00 -0400
Message-ID: <bb237ab80910261129l30b9eb84v8b568d209c2a919c@mail.gmail.com>
Subject: Re: How to increase the memory available to diff in cygwin 1.7?
From: Kenneth Chiu <kchiu AT cs DOT binghamton DOT edu>
To: cygwin AT cygwin DOT com
X-DKIM-Results: unsigned (cs.binghamton.edu)
X-Spam-Score: -13 (-)
X-Spam-Report: Spam detection software, running on the system "necro.cs.binghamton.edu", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hm...I thought that discussion was actually about grep, but, nonetheless, it does seem increasingly likely that this is just a problem with diff. Considering that I only want to know whether or not two files differ, this should not require any significant memory usage. (In other words, don't use mmap().) [...] Content analysis details: (-1.4 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.4 ALL_TRUSTED Passed through trusted hosts only via SMTP
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Hm...I thought that discussion was actually about grep, but,
nonetheless, it does seem increasingly likely that this
is just a problem with diff.

Considering that I only want to know whether or not two files
differ, this should not require any significant memory usage.
(In other words, don't use mmap().)

I guess I'll just write my own recursive comparison program.
In theory I can just write it as if the platform were POSIX, right?
That'd be sweet, and make it a million times easier for me.

On Mon, Oct 26, 2009 at 1:26 PM, Christopher Faylor
<cgf-use-the-mailinglist-please AT cygwin DOT com> wrote:
> On Mon, Oct 26, 2009 at 11:41:13AM -0400, Kenneth Chiu wrote:
>>I'm trying to diff two large directories, recursively, and
>>I'm getting this error:
>>
>> =A0 =A0$ diff -rq B B2 >diff.out
>> =A0 =A0diff: memory exhausted
>>
>>I looked at this URL
>>
>> =A0 =A0http://cygwin.com/cygwin-ug-net/setup-maxmem.html
>>
>>but it seemed out-of-date. =A0There was no such key in the
>>registry, and the options to the regtool were different from
>>what the regtool man page says.
>>
>>Any suggestions on how to get rid of the memory
>>exhaustion error? =A0Is there a new key path that I should
>>use for the heap_chunk_in_mb value? =A0Is it possible
>>that I'm simply bumping into a 2 GB limit for
>>32-bit processes? =A0(And if that is the case,
>>is there a recommended way to go to 64-bit?)
>
> AFAIK, this is just a limitation of diff. =A0You can get the same
> error on linux.
>
> This was discussed in some detail in this list a few months ago.
>
> cgf
>
> --
> Problem reports: =A0 =A0 =A0 http://cygwin.com/problems.html
> FAQ: =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 http://cygwin.com/faq/
> Documentation: =A0 =A0 =A0 =A0 http://cygwin.com/docs.html
> Unsubscribe info: =A0 =A0 =A0http://cygwin.com/ml/#unsubscribe-simple
>
>

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019