delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-3.4 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RP_MATCHES_RCVD,SARE_SUB_OBFU_Z,TW_BL |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <50A47F84.8050400@lysator.liu.se> |
Date: | Thu, 15 Nov 2012 06:37:08 +0100 |
From: | Peter Rosin <peda AT lysator DOT liu DOT se> |
User-Agent: | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20121026 Thunderbird/16.0.2 |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: xz -9 : Cannot allocate memory |
References: | <50A41697 DOT 3080406 AT tiscali DOT co DOT uk> <50A47226 DOT 2080506 AT gmail DOT com> |
In-Reply-To: | <50A47226.2080506@gmail.com> |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.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 |
On 2012-11-15 05:40, marco atzeri wrote: > On 11/14/2012 11:09 PM, David Stacey wrote: >> I am trying to use 'xz -9' to compress a file, but the programme exits >> with the error message 'Cannot allocate memory'. Here's what I tried: >> >> >> $ echo Hello World > compress_me.txt >> >> $ xz -9 compress_me.txt >> xz: compress_me.txt: Cannot allocate memory >> >> $ xz --version >> xz (XZ Utils) 5.0.2 >> liblzma 5.0.2 >> >> >> Having read http://cygwin.com/cygwin-ug-net/setup-maxmem.html I tried >> the following: >> >> >> $ peflags --cygwin-heap /usr/bin/xz.exe >> /usr/bin/xz.exe: initial Cygwin heap size: 0 (0x0) MB >> >> $ peflags --cygwin-heap=1024 /usr/bin/xz.exe >> /usr/bin/xz.exe: initial Cygwin heap size: 1024 (0x400) MB >> >> $ xz -9 compress_me.txt >> >> >> And this worked. Is this the correct way to fix the problem? If so, >> please could we increment the heap size for xz in a post install script? > > a lot of programs have "Cygwin heap size: 0 (0x0) MB" > but they work anyway > > so the root cause is somewhere else. xz is notorious for its big up-front allocations, at least with some of the more aggressive options in effect. Cheers, Peter -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |