-
Notifications
You must be signed in to change notification settings - Fork 2
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
deterministic hugepage size, set without kexec #12
base: main
Are you sure you want to change the base?
Conversation
@@ -0,0 +1 @@ | |||
CMDLINE_LINUX="$CMDLINE_LINUX default_hugepagesz=1G" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We do not want to change the hugepagesz
, the default (2MB) is fine.
#cmdline="$(</proc/cmdline) hugepages=$hugepages" | ||
#release=$(uname -r) | ||
|
||
#NEWROOT=${NEWROOT:-/sysroot} | ||
|
||
#kexec \ | ||
# -l $NEWROOT/boot/vmlinuz-${release} \ | ||
# --initrd=$NEWROOT/boot/initrd.img-${release} \ | ||
# --command-line="$cmdline" | ||
|
||
#kexec -e --reset-vga |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please remove it instead?
@@ -12,5 +12,5 @@ depends() { | |||
# Install the required file(s) and directories for the module in the initramfs. | |||
install() { | |||
inst_hook pre-pivot 00 "$moddir/ensure-hugepages.sh" | |||
inst kexec | |||
#inst kexec |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove that comment as well.
hugepaes have not been set deterministically, fixed by adding it to the kernel cmdline
added a direct application of hugepages to dracut -> no kexec needed anymore
has a slight delay but in initrd this still should be fast.