From owner-freebsd-questions Wed Jan 9 21: 1: 9 2002 Delivered-To: freebsd-questions@freebsd.org Received: from ns.museum.rain.com (gw-ipinc.museum.rain.com [206.29.169.27]) by hub.freebsd.org (Postfix) with ESMTP id 4D85237B404 for ; Wed, 9 Jan 2002 21:01:06 -0800 (PST) Received: (from list@localhost) by ns.museum.rain.com (8.11.6/8.11.6) id g0A510x00514 for freebsd-questions@freebsd.org; Wed, 9 Jan 2002 21:01:00 -0800 (PST) (envelope-from list) Date: Wed, 9 Jan 2002 21:01:00 -0800 From: James Long To: freebsd-questions@freebsd.org Subject: cmp: Cannot allocate memory Message-ID: <20020109210100.A446@ns.museum.rain.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I have two files, a and b, of the same size. I want to find out whether they are identical. A simple yes or no is sufficient, I don't need a diff-like summary of what the differences are. I figured cmp would be my friend. # cmp a b cmp: b: Cannot allocate memory I have 704M physical and an additional 512M of swap. Files a and b are each larger in size than my total VM. Does cmp make assumptions about file sizes that causes it to break on large files? Is there some other utility I can use which will perform a go/no-go compar- ison on two files of arbitrary size? For now, I wrote a Q&D to do it, but I'd rather like to find out why cmp doesn't want to play. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message