delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/11/14/17:09:53

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL,BAYES_20,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_NO,RP_MATCHES_RCVD,SARE_SUB_OBFU_Z,SPF_HELO_PASS,TW_BL
X-Spam-Check-By: sourceware.org
X-Trace: 816890768/mk-filter-3.mail.uk.tiscali.com/B2C/$THROTTLED_DYNAMIC/b2c-CUSTOMER-DYNAMIC-IP/79.68.100.227/None/drstacey AT tiscali DOT co DOT uk
X-SBRS: None
X-RemoteIP: 79.68.100.227
X-IP-MAIL-FROM: drstacey AT tiscali DOT co DOT uk
X-SMTP-AUTH:
X-Originating-Country: GB/UNITED KINGDOM
X-MUA: Mozilla/5.0 (Windows NT 5.1; rv:16.0) Gecko/20121026 Thunderbird/16.0.2
X-IP-BHB: Once
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: ApIBAMYVpFBPRGTj/2dsb2JhbAANN8cnQD0WGAMCAQIBWAgBAYgSp2WTVY8ygycDlxiEPI1a
Message-ID: <50A41697.3080406@tiscali.co.uk>
Date: Wed, 14 Nov 2012 22:09:27 +0000
From: David Stacey <drstacey AT tiscali DOT co DOT uk>
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:16.0) Gecko/20121026 Thunderbird/16.0.2
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: xz -9 : Cannot allocate memory
X-IsSubscribed: yes
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

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?

Many thanks,

Dave.



--
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