xz -9 : Cannot allocate memory

Corinna Vinschen corinna-cygwin@cygwin.com
Thu Aug 29 16:00:00 GMT 2013


On Aug 29 11:32, Charles Wilson wrote:
> On 8/29/2013 11:11 AM, Corinna Vinschen wrote:
> >On Aug 29 14:34, Achim Gratz wrote:
> >>Achim Gratz <Stromeko <at> NexGo.DE> writes:
> >>>With the initial heap size set to 1MB, the same allocations for mmap work
> >>>just fine.  The mmap length used by xz is the same for files of all sizes.
> >>
> >>The large mmap is for the scratchpad memory of xz, which can be limited via
> >>the -M option.  Currently it fails when this gets larger than 616MiB
> >>(standard for -9 is 674Mib).
> >
> >I'm not exactly surprised.  You're on a 32 bit machine, so you only have
> >2 Gigs VM.  Probably some DLLs are in the way.  Load xz under GDB, break
> >on "cygwin_exit", run it, and when it hits the breakpoint, observer the
> >memory layout, either in GDB, or by cat'ing /proc/<xz's pid>/maps.
> >Observing the memory layout helps a lot to understand why there's some
> >memory problem, especially if the application tries to get a big buffer
> >space in a single chunk.
> 
> So...this is NOTABUG, right?

Right.  But is a bit lame that it just fails.  Does it have to use
this big buffer or would it also work with a smaller buffer, if there's
no memory chunk big enough?


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20130829/ff831043/attachment.sig>


More information about the Cygwin mailing list