stalwartlabs / mail-server

Secure & Modern All-in-One Mail Server (IMAP, JMAP, POP3, SMTP)
https://stalw.art
4.83k stars 194 forks source link

[bug]: Deployment on aarch64 fails - jemalloc #578

Closed LonguCodes closed 3 months ago

LonguCodes commented 3 months ago

What happened?

stalward failes to start with jemalloc error

Seems to be related to https://github.com/stalwartlabs/mail-server/issues/289

How can we reproduce the problem?

Run the all-in-one image on Raspberry pi 5 (in k8s)

Version

v0.8.x

What database are you using?

None

What blob storage are you using?

RocksDB

Where is your directory located?

None

What operating system are you using?

Docker

Relevant log output

<jemalloc>: Unsupported system page size
<jemalloc>: Unsupported system page size
memory allocation of 56 bytes failed
getconf PAGE_SIZE
16384

Code of Conduct

LonguCodes commented 3 months ago

From the 5-min research i've done, setting the page size to 16 for every build should work well, as jemalloc supports lower page sizes at runtime than specified at compile time

Jemalloc supports using a smaller runtime page size than it was compiled with. So we simply always increase the page-size on arm64.

https://github.com/home-assistant/core/issues/103173#issuecomment-1812699925

mdecimus commented 3 months ago

Fixed.

LonguCodes commented 3 months ago

@mdecimus already fix or just fixed?

mdecimus commented 3 months ago

Just committed a fix that sets the pagesize to 16 for armv7.