Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is KeyDB safe to run on Linux ARM host with PAGESIZE 64k? #894

Open
macko99 opened this issue Jan 28, 2025 · 0 comments
Open

Is KeyDB safe to run on Linux ARM host with PAGESIZE 64k? #894

macko99 opened this issue Jan 28, 2025 · 0 comments

Comments

@macko99
Copy link

macko99 commented Jan 28, 2025

Hello,

I intend to run KeyDB on a Kubernetes cluster hosted on an ARM machine with a Linux kernel compiled with a 64k PAGESIZE. To achieve this, I compiled jemalloc to work with larger pages (--with-lg-page=16) and then used it during the KeyDB compilation. However, when attempting to start KeyDB, I encountered a failed assertion in the function linuxMadvFreeForkBugCheck.

After inspecting KeyDB's source code, I determined that the assertion failure was not caused by a potential bug in my kernel but rather by the test implementation itself—it assumed the kernel uses 4k memory pages. I modified the function accordingly, and KeyDB now seems to be working just fine (link to changes for review).

Here’s my question: Is this modified version of KeyDB safe to use in production? Are there any other parts of KeyDB specifically designed to work only with 4k memory pages, or was it just this one test that was not comprehensive?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant