Unnamed repository
Go to file
Kairui Song 5633e83318 Always set vm.zone_reclaim_mode = 3 in kdump kernel
By default kernel have vm.zone_reclaim_mode = 0 and large page
allocation might fail as kernel is very conservative on memory
reclaiming. If the page allocation failure is not handled carefully
it could lead to more serious problems.

This issue can be reproduced by change with following steps:

- Fill up page cache use:
  # dd if=/dev/urandom of=/test bs=1M count=1300

- Now the memory is filled with write cache:
  # free -m
                total        used        free      shared  buff/cache   available
  Mem:           1790         184         132           2        1473        1348
  Swap:          2119           7        2112

- Insert a module which simply calls "kmalloc(SZ_1M, GFP_KERNEL)" for
  512 times: (Notice: vmalloc don't have such problem)
  # insmod debug_module.ko

- Got following allocation failure:
  insmod: page allocation failure: order:8, mode:0x40cc0(GFP_KERNEL|__GFP_COMP), nodemask=(null),cpuset=/,mems_allowed=0

- Clean up and repeat again with vm.zone_reclaim_mode = 3, OOM is not
  observed.

In kdump kernel there is usually only one online CPU and limited memory,
so we set vm.zone_reclaim_mode = 3 to let kernel reclaim memory more
aggresively to avoid such issue.

Signed-off-by: Kairui Song <kasong@redhat.com>
Acked-by: Pingfan Liu <piliu@redhat.com>
2019-11-13 11:35:46 +08:00
.gitignore .gitignore: Update to make it more generic 2016-05-16 10:15:01 +08:00
98-kexec.rules Make udev reload rules quiet during bootup 2018-12-06 17:44:03 +08:00
98-kexec.rules.ppc64 kexec.rules: create dedicated udev rules for ppc64 2019-05-06 16:22:28 +08:00
README README: Add a README file 2014-04-02 10:45:36 +08:00
dracut-early-kdump-module-setup.sh earlykdump: warn when installed kernel version differs from dracut target 2019-01-10 18:16:58 +08:00
dracut-early-kdump.sh earlykdump: generate symlink with stable name to kernel image and iniramfs 2019-01-10 18:11:49 +08:00
dracut-kdump-capture.service dracut-kdump-capture.service: Use OnFailureJobMode instead of deprecated OnFailureIsolate 2019-06-14 09:44:09 +08:00
dracut-kdump-emergency.service kdump-emergency: fix "Transaction is destructive" emergency failure 2017-03-31 11:54:30 +08:00
dracut-kdump-emergency.target kdump-emergency: fix "Transaction is destructive" emergency failure 2017-03-31 11:54:30 +08:00
dracut-kdump-error-handler.service Add failure_action as alias of default and make default obsolete 2019-01-22 17:57:53 +08:00
dracut-kdump-error-handler.sh Add failure_action as alias of default and make default obsolete 2019-01-22 17:57:53 +08:00
dracut-kdump.sh Get rid of duplicated strip_comments when reading config 2019-05-20 16:56:28 +08:00
dracut-module-setup.sh Always set vm.zone_reclaim_mode = 3 in kdump kernel 2019-11-13 11:35:46 +08:00
dracut-monitor_dd_progress monitor-dd-progress fix 2013-06-25 16:45:59 +08:00
early-kdump-howto.txt earlykdump: provide a prompt message after the rebuilding of kdump initramfs. 2019-05-20 16:56:19 +08:00
fadump-howto.txt Add final_action option to kdump.conf 2019-01-22 17:58:24 +08:00
kdump-dep-generator.sh kdump-dep-generator: Add kdump service dependencies on the fly 2014-04-17 11:27:31 +08:00
kdump-in-cluster-environment.txt Add fence_kdump support for generic clusters 2014-04-03 14:43:06 +08:00
kdump-lib-initramfs.sh Don't execute final_action if failure_action terminates the system 2019-11-01 11:21:58 +08:00
kdump-lib.sh kdump-lib: strip grub device from kdump_bootdir 2019-09-24 12:19:43 +03:00
kdump-udev-throttler Make udev reload rules quiet during bootup 2018-12-06 17:44:03 +08:00
kdump.conf Add final_action option to kdump.conf 2019-01-22 17:58:24 +08:00
kdump.conf.5 Add final_action option to kdump.conf 2019-01-22 17:58:24 +08:00
kdump.service kdumpctl: Add reload support 2018-11-01 22:31:20 +08:00
kdump.sysconfig Disable device dump by default 2019-09-02 17:06:09 +08:00
kdump.sysconfig.aarch64 Disable device dump by default 2019-09-02 17:06:09 +08:00
kdump.sysconfig.i386 Disable device dump by default 2019-09-02 17:06:09 +08:00
kdump.sysconfig.ppc64 Disable device dump by default 2019-09-02 17:06:09 +08:00
kdump.sysconfig.ppc64le Disable device dump by default 2019-09-02 17:06:09 +08:00
kdump.sysconfig.s390x Disable device dump by default 2019-09-02 17:06:09 +08:00
kdump.sysconfig.x86_64 Disable device dump by default 2019-09-02 17:06:09 +08:00
kdumpctl kdumpctl: make reload fail proof 2019-11-12 13:22:52 +08:00
kdumpctl.8 Update man page for new kdumpctl command: reload / rebuild 2019-04-05 02:02:58 +08:00
kexec-kdump-howto.txt kexec-kdump-howto.txt: Add notes about device dump 2019-09-02 17:06:16 +08:00
kexec-tools-2.0.20-fix-broken-multiboot2-buliding-for-i386.patch x86: Fix broken multiboot2 buliding for i386 2019-08-02 11:24:03 +08:00
kexec-tools-2.0.20-makedumpfile-Do-not-proceed-when-get_num_dumpable_cyclic-fails.patch makedumpfile: Do not proceed when get_num_dumpable_cyclic() fails 2019-08-06 11:14:40 +08:00
kexec-tools-2.0.20-makedumpfile-Fix-exclusion-range-in-find_vmemmap_pages.patch makedumpfile: Fix exclusion range in find_vmemmap_pages() 2019-09-20 16:37:39 +08:00
kexec-tools-2.0.20-makedumpfile-Fix-inconsistent-return-value-from-find_vmemmap.patch makedumpfile: Fix inconsistent return value from find_vmemmap() 2019-09-20 16:37:44 +08:00
kexec-tools-2.0.20-makedumpfile-Increase-SECTION_MAP_LAST_BIT-to-4.patch makedumpfile: Increase SECTION_MAP_LAST_BIT to 4 2019-08-06 11:15:14 +08:00
kexec-tools-2.0.20-makedumpfile-x86_64-Fix-incorrect-exclusion-by-e-option.patch makedumpfile: x86_64: Fix incorrect exclusion by -e option with KASLR 2019-09-20 16:37:23 +08:00
kexec-tools.spec spec: move binaries from /sbin to /usr/sbin 2019-11-08 15:23:33 +08:00
live-image-kdump-howto.txt Revert "kdumpctl: filter 'root' kernel parameter when running in live images" 2017-04-11 16:03:12 +08:00
mkdumprd mkdumprd: ensure ssh path exists before check size 2019-10-24 16:59:22 +08:00
mkdumprd.8 Remove comma which is redundant 2013-02-16 15:19:41 +08:00
sources Release 2.0.20-1 2019-07-31 15:54:46 +08:00
zanata-notes.txt Add a notes for zanata process 2012-12-05 01:23:09 -05:00

README

Adding a patch to kexec-tools
=============================
There is a mailing list kexec@lists.fedoraproject.org where all the dicussion
related to fedora kexec-tools happen. All the patches are posted there for
inclusion and committed to kexec-tools after review.

So if you want your patches to be included in fedora kexec-tools package,
post these to kexec@lists.fedoraproject.org.

One can subscribe to list and browse through archives here.

https://admin.fedoraproject.org/mailman/listinfo/kexec