Skip to content

lib/ukallocbbuddy: Switch memory region size error to debug#1773

Open
RaduAndreiTudorica wants to merge 1 commit intounikraft:stagingfrom
RaduAndreiTudorica:fix-alloc-bbuddy-noise
Open

lib/ukallocbbuddy: Switch memory region size error to debug#1773
RaduAndreiTudorica wants to merge 1 commit intounikraft:stagingfrom
RaduAndreiTudorica:fix-alloc-bbuddy-noise

Conversation

@RaduAndreiTudorica
Copy link
Copy Markdown

Description of Changes

When the system boots, some memory regions are too small to be managed by the buddy allocator because they cannot fit the required metadata (header and bitmap) plus at least one page of data. Currently, this results in an ERR message that clutters the boot log, even though the system continues to boot normally using other, larger memory regions.

Changed the log level from uk_pr_err to uk_pr_debug in lib/ukallocbuddy/bbuddy.c at line 568.

Verified on x86_64/QEMU with Nginx. The boot log no longer shows the error message, providing a cleaner startup experience.

Related Work

Closes #1505

PR Checklist

  • Read the contribution guidelines regarding submitting new changes to the project;
  • Tested your changes against relevant architectures and platforms;
  • Ran the checkpatch.uk on your commit series before opening this PR;
  • Updated relevant documentation.

@github-actions github-actions Bot added area/lib Internal Unikraft Microlibrary lang/c Issues or PRs to do with C/C++ lib/ukallocbbuddy labels Feb 18, 2026
Switching memory region size error to debug level to reduce console noise during normal operation.

Signed-off-by: Radu Andrei Tudorica <raduandreitudorica3@gmail.com>
@RaduAndreiTudorica RaduAndreiTudorica changed the title lib/ukallocbuddy: Switch memory region size error to debug lib/ukallocbbuddy: Switch memory region size error to debug Mar 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/lib Internal Unikraft Microlibrary lang/c Issues or PRs to do with C/C++ lib/ukallocbbuddy

Projects

Status: 🧊 Icebox

Development

Successfully merging this pull request may close these issues.

lib/ukallocbuddy: Boot error message for Nginx (QEMU, KVM, x86_64)

1 participant