TuGraph-family / tugraph-db

TuGraph is a high performance graph database.
https://tugraph.org
Apache License 2.0
1.32k stars 181 forks source link

lgraph binary crashed when the page size is not 4KB by default caused by jemalloc #477

Open qishipengqsp opened 3 months ago

qishipengqsp commented 3 months ago

Crashed on aarch64 cpu and UOS system

[root@c68cd11ca451 scripts]# lgraph_server
<jemalloc>: Unsupported system page size
<jemalloc>: Unsupported system page size
<jemalloc>: Unsupported system page size
<jemalloc>: Unsupported system page size
<jemalloc>: Unsupported system page size
<jemalloc>: Unsupported system page size
<jemalloc>: Unsupported system page size
<jemalloc>: Unsupported system page size
<jemalloc>: Unsupported system page size
<jemalloc>: Unsupported system page size
<jemalloc>: Unsupported system page size
<jemalloc>: Unsupported system page size
<jemalloc>: Unsupported system page size
terminate called without an active exception
Aborted (core dumped)
qishipengqsp commented 3 months ago

To support aarch64 with non-4K pagesize:

qishipengqsp commented 3 months ago

Recompile jemalloc: https://github.com/TuGraph-family/tugraph-db/blob/master/ci/images/tugraph-compile-arm64v8-centos7-Dockerfile#L224-L227

Recompile tugraph: https://github.com/TuGraph-family/tugraph-db/blob/master/ci/build_release.sh