Skip to content

neonvm-kernel: Add debug logs for kcompactd/offlining race #1400

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

Merged
merged 2 commits into from
Jun 20, 2025

Conversation

sharnoff
Copy link
Member

We are currently seeing a small base rate of a kernel bug where kcompactd is unable to handle a page fault during compaction.

We suspect this may be due to a race condition between memory offlining and kcompactd, but it's hard to establish that concretely without more logs.

So, let's add some debug logs indicating when kcompactd runs or offlining happens.

ref https://neondb.slack.com/archives/C0807C9SSJ2/p1749652291036669

We are currently seeing a small base rate of a kernel bug where
kcompactd is unable to handle a page fault during compaction.

We suspect this *may* be due to a race condition between memory
offlining and kcompactd, but it's hard to establish that concretely
without more logs.

So, let's add some debug logs indicating when kcompactd runs or
offlining happens.

ref https://neondb.slack.com/archives/C0807C9SSJ2/p1749652291036669
@sharnoff sharnoff requested a review from petuhovskiy June 20, 2025 09:39
@sharnoff sharnoff enabled auto-merge (squash) June 20, 2025 17:55
@sharnoff sharnoff merged commit 98d98ec into main Jun 20, 2025
35 checks passed
@sharnoff sharnoff deleted the sharnoff/kernel-kcompactd-debug branch June 20, 2025 18:13
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

Successfully merging this pull request may close these issues.

2 participants