# Kernel Version string for the -kdump kernel, such as 2.6.13-1544.FC5kdump
# If no version is specified, then the init script will try to find a
# kdump kernel with the same version number as the running kernel.
KDUMP_KERNELVER=""

# The kdump commandline is the command line that needs to be passed off to
# the kdump kernel.  This will likely match the contents of the grub kernel
# line.  For example:
#   KDUMP_COMMANDLINE="ro root=LABEL=/"
# Dracut depends on proper root= options, so please make sure that appropriate
# root= options are copied from /proc/cmdline. In general it is best to append
# command line options using "KDUMP_COMMANDLINE_APPEND=".
# If a command line is not specified, the default will be taken from
# /proc/cmdline
KDUMP_COMMANDLINE=""

# This variable lets us remove arguments from the current kdump commandline
# as taken from either KDUMP_COMMANDLINE above, or from /proc/cmdline
# NOTE: some arguments such as crashkernel will always be removed
KDUMP_COMMANDLINE_REMOVE="hugepages hugepagesz slub_debug quiet"

# This variable lets us append arguments to the current kdump commandline
# after processed by KDUMP_COMMANDLINE_REMOVE
KDUMP_COMMANDLINE_APPEND="irqpoll nr_cpus=1 reset_devices cgroup_disable=memory mce=off numa=off udev.children-max=2 panic=10 acpi_no_memhotplug transparent_hugepage=never nokaslr novmcoredd hest_disable systemd.unit=rescue.target"

# Any additional kexec arguments required.  In most situations, this should
# be left empty
#
# Example:
#   KEXEC_ARGS="--elf32-core-headers"
KEXEC_ARGS=""

#Where to find the boot image
KDUMP_BOOTDIR="/boot"

#What is the image type used for kdump
KDUMP_IMG="vmlinuz"

#What is the images extension.  Relocatable kernels don't have one
KDUMP_IMG_EXT=""

############ The following are added for TencentOS ######################

#Where to store the dump. Default: /var/crash
KDUMP_SAVEDIR="/data/tlinux/crash/"

## Type:        string
## Default:     "ELF"
#
# This variable specifies the dump format.
#
# "ELF" has the advantage that it's a standard format and GDB can be used to
# analyse the dumps. The disadvantage is that the dump files are larger.
#
# "compressed" is the kdump compressed format (see makedumpfile(8)) that
# produces small dumps. However, only "crash" can analyse the dumps and
# you need makedumpfile to have installed (but you need it anyway if you
# set KDUMP_DUMPLEVEL != 0 before).
KDUMP_DUMPFORMAT="compressed"

## Type:        integer
## Default:     0
#
# Determines the dump level. If KDUMP_DUMPLEVEL != 0, then makedumpfile
# is used to strip pages that may not be necessary for analysing. 0 means
# no stripping, and 31 is the maximum dump level, i.e. 0 produces the
# largest dump files and 31 the smallest.
# The following table from makedumpfile(8) shows what each dump level
# means:
#                 dump | zero | cache|cache  | user | free
#                level | page | page |private| data | page
#               -------+------+------+-------+------+------
#                    0 |      |      |       |      |
#                    1 |  X   |      |       |      |
#                    2 |      |  X   |       |      |
#                    3 |  X   |  X   |       |      |
#                    4 |      |  X   |  X    |      |
#                    5 |  X   |  X   |  X    |      |
#                    6 |      |  X   |  X    |      |
#                    7 |  X   |  X   |  X    |      |
#                    8 |      |      |       |  X   |
#                    9 |  X   |      |       |  X   |
#                   10 |      |  X   |       |  X   |
#                   11 |  X   |  X   |       |  X   |
#                   12 |      |  X   |  X    |  X   |
#                   13 |  X   |  X   |  X    |  X   |
#                   14 |      |  X   |  X    |  X   |
#                   15 |  X   |  X   |  X    |  X   |
#                   16 |      |      |       |      |  X
#                   17 |  X   |      |       |      |  X
#                   18 |      |  X   |       |      |  X
#                   19 |  X   |  X   |       |      |  X
#                   20 |      |  X   |  X    |      |  X
#                   21 |  X   |  X   |  X    |      |  X
#                   22 |      |  X   |  X    |      |  X
#                   23 |  X   |  X   |  X    |      |  X
#                   24 |      |      |       |  X   |  X
#                   25 |  X   |      |       |  X   |  X
#                   26 |      |  X   |       |  X   |  X
#                   27 |  X   |  X   |       |  X   |  X
#                   28 |      |  X   |  X    |  X   |  X
#                   29 |  X   |  X   |  X    |  X   |  X
#                   30 |      |  X   |  X    |  X   |  X
#                   31 |  X   |  X   |  X    |  X   |  X
KDUMP_DUMPLEVEL=1

## Type:        integer
## Default:     5
#
# Specifies how many old dumps are kept.  If the number of dump files
# exceeds this number, older dumps are removed.
#
# You can prevent the automatic removal by setting zero to this.
# Set KDUMP_KEEP_OLD_DUMPS to "-2" is you want to delete all old
# dumps before saving the new dump.
#
# The default value is 5.
#
# Note, this value will be overrided automatically, to be 3 or 1 
#
KDUMP_KEEP_OLD_DUMPS=1

## Type:        integer
## Default:     64
#
# Specifies the minimal free disk space (in MB unit) on the dump
# partition.  If the free disk space is less than the sum of this
# value and memory size, the default dumper won't save vmcore file
# in order to keep the system sane.
# 
# Setting zero forces to dump without check.
# The default value is 64MB.
#
KDUMP_FREE_DISK_SIZE=10240

## Type:        integer
## Default:     generated automatically
# Record machine physical memory size in MB
MACHINE_PHYSICAL_MEM_MB=0

