kdump service takes a few seconds to start even no need to rebuild initramfs,
which is a little longer compared to other systemd services, it may affects
the system boot time a little, we better optimize it as possible as we can.
Before this patchset:
$ time kdumpctl start
kexec: loaded kdump kernel
Starting kdump: [OK]
real 0m5.156s
user 0m5.169s
sys 0m1.269s
After this patchset:
$ time kdumpctl start (when kdump lsinitrd tmp file exists)
kexec: loaded kdump kernel
Starting kdump: [OK]
real 0m0.854s
user 0m0.389s
sys 0m0.582s
Xunlei Pang (4):
kdumpctl: remove is_mode_switched()
kdumpctl: improve check_wdt_modified()
kdumpctl: update check_dump_fs_modified() to use "lsinitrd -f"
introduce kdump lsinitrd support
dracut-module-setup.sh | 5 +++
kdump-lib.sh | 26 ++++++++++++
kdumpctl | 107 ++++++++++++++++++++++++-------------------------
mkdumprd | 6 +++
4 files changed, 90 insertions(+), 54 deletions(-)
--
1.8.3.1