jemalloc on iMX6 ARM

Jorge Fernandez Monteagudo jorgefm at cirsa.com
Fri Jan 29 10:26:45 PST 2016


Hi all, this is my first post to this mailing list.

I'm trying to give a try to jemalloc in a iMX6 ARM board. I've
downloaded the current master image from

https://github.com/jemalloc/jemalloc/tree/master

I've done the cross compilation with no problem and I've deploy
the lib to the board. Our iMX6 image is using 3.14 linux kernel.
The library generated with

./configure --build=x86_64-linux --host=arm-poky-linux-gnueabi
scp lib/libjemalloc.so.2 root@<imx6_board_ip>:/tmp/

when I tried in the board I get:

# export LD_PRELOAD=/tmp/libjemalloc.so.2
# ls
Bus error

and in dmesg I can see

Alignment trap: not handling instruction e1b14f9f at [<76f06b14>]
Unhandled fault: alignment exception (0x011) at 0x76f2cfe4


If I build the library with

./configure --build=x86_64-linux --host=arm-poky-linux-gnueabi --disable-fill
scp lib/libjemalloc.so.2 root@<imx6_board_ip>:/tmp/

when I tried in the board I get:

# export LD_PRELOAD=/tmp/libjemalloc.so.2
# ls
Segmentation fault


I guess the jemalloc is able to work on ARM systems. Where should I start looking to
make it work? Any hint is welcome!


Pd: This is the configuration the 'configure' process prints on screen

===============================================================================
jemalloc version   : 0.0.0-0-g0000000000000000000000000000000000000000
library revision   : 2

CONFIG             : --build=x86_64-linux --host=arm-poky-linux-gnueabi build_alias=x86_64-linux host_alias=arm-poky-linux-gnueabi 'CC=arm-poky-linux-gnueabi-gcc -march=armv7-a -mfloat-abi=hard -mfpu=neon -mtune=cortex-a9 --sysroot=/opt/fsl-imx-fb/3.14.52-1.1.0/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi' 'CFLAGS= -O2 -pipe -g -feliminate-unused-debug-types' 'LDFLAGS=-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed' CPPFLAGS= 'CPP=arm-poky-linux-gnueabi-gcc -E -march=armv7-a -mfloat-abi=hard -mfpu=neon -mtune=cortex-a9 --sysroot=/opt/fsl-imx-fb/3.14.52-1.1.0/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi'
CC                 : arm-poky-linux-gnueabi-gcc  -march=armv7-a -mfloat-abi=hard -mfpu=neon -mtune=cortex-a9 --sysroot=/opt/fsl-imx-fb/3.14.52-1.1.0/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi
CFLAGS             :  -O2 -pipe -g -feliminate-unused-debug-types -fvisibility=hidden
CPPFLAGS           :  -D_GNU_SOURCE -D_REENTRANT
LDFLAGS            : -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed
EXTRA_LDFLAGS      :
LIBS               :  -lpthread
TESTLIBS           :
RPATH_EXTRA        :

XSLTPROC           : false
XSLROOT            :

PREFIX             : /usr/local
BINDIR             : /usr/local/bin
DATADIR            : /usr/local/share
INCLUDEDIR         : /usr/local/include
LIBDIR             : /usr/local/lib
MANDIR             : /usr/local/share/man

srcroot            :
abs_srcroot        : /data/develop/hardware/imx6_work/memory_allocator/jemalloc-4.0.4/
objroot            :
abs_objroot        : /data/develop/hardware/imx6_work/memory_allocator/jemalloc-4.0.4/

JEMALLOC_PREFIX    :
JEMALLOC_PRIVATE_NAMESPACE
                   : je_
install_suffix     :
autogen            : 0
cc-silence         : 1
debug              : 0
code-coverage      : 0
stats              : 1
prof               : 0
prof-libunwind     : 0
prof-libgcc        : 0
prof-gcc           : 0
tcache             : 1
fill               : 1
utrace             : 0
valgrind           : 1
xmalloc            : 0
munmap             : 0
lazy_lock          : 0
tls                : 1
cache-oblivious    : 1
===============================================================================


Este mensaje se dirige exclusivamente a su destinatario y puede contener información privilegiada o CONFIDENCIAL. Si no es vd. el destinatario indicado, queda notificado de que la utilización, divulgación y/o copia sin autorización está prohibida en virtud de la legislación vigente. Si ha recibido este mensaje por error, le rogamos que nos lo comunique inmediatamente por esta misma vía y proceda a su destrucción.

This message is intended exclusively for its addressee and may contain information that is CONFIDENTIAL and protected by professional privilege.
If you are not the intended recipient you are hereby notified that any dissemination, copy or disclosure of this communication is strictly prohibited by law. If this message has been received in error, please immediately notify us via e-mail and delete it.


More information about the jemalloc-discuss mailing list