Skip to content

Commit 29fc867

Browse files
committed
immune: add the jemalloc error to the docs
1 parent f0cd1e4 commit 29fc867

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

docs/immune/reimplement_slips_features_incompatible_with_the_rpi.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,15 @@ That’s why one multi-arch image is better than an ARM specific image (Dockerfi
4545

4646
Page size is usually determined by the processor architecture. The Raspberry Pi 5 uses a kernel with a default page size of 16KB, which is an increase from the traditional 4KB page size used in earlier models. This change aims to improve performance but it comes at the cost of software support. Some software, like Redis, only supports 4k pages.
4747

48+
49+
When trying to connect Slips to a Redis instance downloaded with apt in the RPI, we encountered the following error due to the page size incompatibility:
50+
51+
```bash
52+
<jemalloc>: Unsupported system page size
53+
<jemalloc>: Unsupported system page size
54+
Segmentation fault (core dumped)
55+
```
56+
4857
Using a 4K Page Size Kernel on the Raspberry Pi is doable but requires changing kernel configurations of the RPI, which is suboptimal and goes against the simplicity we planned for Slips installation.
4958

5059
After some trials we decided to manually compile redis with malloc instead of jemalloc in the default slips docker image instead of using apt to install it. The cost of this is that now redis has active defragmentation disabled and cannot be enabled.
@@ -116,5 +125,3 @@ There’s nothing that we can do to prevent this other than inform users that in
116125

117126

118127
***
119-
120-
TODO Add link to slips rpi installation instructions in immune task

0 commit comments

Comments
 (0)