Search code examples
pythonraspberry-pipython-polars

Polars jemalloc Error 'Unsupported system page size'


When using polars to create a df on a raspberr pi, I get the following error:

<jemalloc>: Unsupported system page size
memory allocation of 8 bytes failed
Aborted

The works on my Laptop, and on both machines I have the same page size:

getconf PAGE_SIZE
16384

Do you have any idea whats the actual issue and how I can solve it?


Solution

  • rebooting with kernel=kernel8.img in /boot/config.txt changes memory page size from 16kB to 4kB and seems to resolve the issue. getconf PAGESIZE will show the current memory page size.