This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: xz -9 : Cannot allocate memory
- From: Achim Gratz <Stromeko at NexGo dot DE>
- To: cygwin at cygwin dot com
- Date: Fri, 30 Aug 2013 12:58:49 +0000 (UTC)
- Subject: Re: xz -9 : Cannot allocate memory
- Authentication-results: sourceware.org; auth=none
- References: <50A41697 dot 3080406 at tiscali dot co dot uk> <loom dot 20130829T155739-66 at post dot gmane dot org> <loom dot 20130829T162752-851 at post dot gmane dot org> <20130829151121 dot GR21571 at calimero dot vinschen dot de> <87ioyowbq9 dot fsf at Rainer dot invalid> <loom dot 20130830T111847-683 at post dot gmane dot org> <20130830120244 dot GV21571 at calimero dot vinschen dot de>
Corinna Vinschen <corinna-cygwin <at> cygwin.com> writes:
> Yes, looks normal and expected from what you observed. mmap commits
> memory top-down and that was apparently the first free slot big enough
> to fullfil the request. The default heap size is 384 Megs and then
> there's apparently not enough space anywhere.
Sorry if I'm dense, but does this mean that setting the default heap size to
zero does in fact mean it's trying to use 374MiB... wait, yes it is: the
memory map is the same when I'm setting the initial heap size to 384MiB with
peflags.
So, even though that rather large heap is essentially unused at the point of
failure and there is enough memory free just beyond the heap, the allocation
still fails because both the existing heap and the free space are both
smaller than what's requested?
> Keep in mind that a
> request of 674Mib is a third of the available VM on 32 bit machines.
> So, drop the heapsize and go with it, or use the -M option.
Will definitely do for my local xz package. Actually, enlarging the initial
heap size to more than 674MiB will work as well, there's just these
intermediate heap sizes that will fail (and unfortunately the default heap
size is in that range).
Regards,
Achim.
--
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