Skip to content

Memory allocation error in qemu arm chroot. #1964

Description

@petronny

Hi,
I created an armv6h enviroment with qemu_arm_static on an x86_64 machine.
Inside this chroot, zstd get memory allocation error with --ultra -20. (--ultra -19 works.)
However, I have 186Gi RAM available.
Could anyone help to take a look?

BTW, how much RAM do --ultra -20 and --ultra -19 actually need?
Also qemu_arm_static has an option called QEMU_STACK_SIZE and now it's 8388608 byte (8MB). Is this relevant?

Log:

[alarm@alarm unzip]$ echo a > a.txt
[alarm@alarm unzip]$ echo a.txt | zstd -v -c -T0 --ultra -20 - > PKGBUILD.zst
*** zstd command line interface 32-bits v1.4.4, by Yann Collet ***
Note: 16 physical core(s) detected 
zstd: error 11 : Allocation error : not enough memory 
[alarm@alarm unzip]$ echo a.txt | zstd -v -c -T0 --ultra -19 - > PKGBUILD.zst
*** zstd command line interface 32-bits v1.4.4, by Yann Collet ***
Note: 16 physical core(s) detected 
/*stdin*\            :316.67%   (     6 =>     19 bytes, /*stdout*\)           
[alarm@alarm unzip]$ free -h
              total        used        free      shared  buff/cache   available
Mem:          188Gi       902Mi       183Gi       1.0Mi       4.5Gi       186Gi
Swap:            0B          0B          0B

PS. The chroot is created by devtools-qemu on Archlinux.
Anyone using Archlinux can also get a similiar chroot with this script and use arch-chroot to chroot into it.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions