-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kexec: reuse crash kernel reserved memory for normal kexec
normally, for kexec reboot, each segment of the second os (such as : kernel、initrd、etc.) will be copied to discontinuous physical memory during kexec load. and then a memory copy will be performed when kexec -e is executed to copy each segment of the second os to contiguous physical memory, which will Affects the time the kexec switch to the new os. Therefore, if we reuse the crash kernel reserved memory for kexec. When kexec loads the second os, each segment of the second OS is directly copied to the contiguous physical memory, so there is no need to make a second copy when kexec -e is executed later. The kexec userspace tool also needs to add parameter options(-r) that support the use of reserved memory (see another patch for kexec) examples: bzimage: 53M initramfs: 28M can save aboat 40 ms, The larger the image size, the greater the time savings Signed-off-by: huangjie.albert <huangjie.albert@bytedance.com> Signed-off-by: Alexandre Frade <kernel@xanmod.org>
- Loading branch information
Showing
5 changed files
with
52 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters