Sextreme dating 2
Package: dpkg Version: 1.18.15 Severity: serious Hi, I just tried to rebuild some packages from non-free.fonts-larabie builds on amd64 but fails on i386 and armhf. (building on a amd64 machine in pbuilder chroots, armhf using qemu) debian/rules override_dh_builddeb make: Entering directory '/build/fonts-larabie-20011216' dh_builddeb -- -Zxz -Sextreme -z9 dpkg-deb: building package 'fonts-larabie-straight' in '../fonts-larabie-straight_20011216-5_all.deb'.Although as was mentioned on a thread on d-d, those settings are pretty unfriendly IMO, even more for memory constrained arches, but oh well.dpkg should never fail to operate on those conditions. I've got the attached patch now, but I've been unable to test that specific incarnation as I don't have 32-bit machine with many cores. I've just verified that it does what it is intended by hardcoding the number of threads to 32 and setting the physical memory limit to 2 Gi B.And many of the packages affected do not even really benefit from such extreme settings as the dictionary size is bigger than the actual data to compress. Clamping to something like 80% of INTPTR_MAX might be good enough for practical purposes, but technically this limit is not related to INTPTR_MAX. The problem is that these 4 GB are split between user memory and kernel lowmem. i386, ARM) it is actually a configure option of the kernel whether you want 1 GB, 2 GB or 3 GB of user memory (with accordingly less kernel lowmem). Bug #846564 in package dpkg reported by you has been fixed in the dpkg/Git repository.There's a bug in lintian to report an error on this. You can see the changelog below, and you can check the diff of the fix at: https://anonscm.debian.org/cgit/dpkg/dpkg.git/diff/?-- regards, Mattia Rizzolo GPG Key: 66AE 2B4A FCCF 3F52 DA18 4D18 4B04 3FCD B944 4540 .''`.more about me: https://: :' : Launchpad user: https://launchpad.net/~mapreri `. Your patch won't solve it - the problem is not physical memory.
I'll change the code to limit based on memory available.
`'` Debian QA page: https://qa.debian.org/developer.php? The problem is that on 32 bit you cannot use more than 2-3 GB (depending on the architecture) in one process.
#845757 was on a mipsel buildd with 4 cores  and 8 GB RAM. Buck - Dragon Seed (depending on the architecture) in one process.
(I'd also suggest a MBF for all the packages that mess with the compressor for no good reason - just like the ones using bzip2 this only causes troubles.) 2 GB limit on 32bit mips/mipsel -- "Is there not promise of rain? #845757 was on a mipsel buildd with 4 cores  and 8 GB RAM.
Ah, thanks, I'm testing as I write this a new patch I've prepared on eller.d.o (mipsel) which seems to have the right conditions.
I don't know how much RAM the amd64/i386 buildds have, but I'd guess more than 4 GB... Right, I'm aware of the distinction, but I guess I was wrongly assuming the lzma_physmem() function would return (userspace) addressable physical memory.