This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
software:freebsd:kernel_debug [2022/02/04 18:33] – removed - external edit (Unknown date) 127.0.0.1 | software:freebsd:kernel_debug [2022/02/05 04:34] – root | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Опции и параметры необходимые для получения coredump ядра ====== | ||
+ | Актуально для FreeBSD 11.2, 12.0 | ||
+ | |||
+ | ===== Конфиг ядра ===== | ||
+ | Должен содержать: | ||
+ | < | ||
+ | options GZIO # | ||
+ | |||
+ | # Debugging support. Always need this: | ||
+ | makeoptions DEBUG=-g # | ||
+ | options HWPMC_HOOKS # | ||
+ | options KDB # | ||
+ | options KDB_TRACE # | ||
+ | options KDB_UNATTENDED # | ||
+ | options KTRACE # | ||
+ | options STACK # | ||
+ | options PANIC_REBOOT_WAIT_TIME=16 #o Set the amount of time (in seconds) the system will wait before rebooting automatically when a kernel panic occurs. (-1) = inf | ||
+ | </ | ||
+ | |||
+ | ===== Настройки системы ===== | ||
+ | ==== / | ||
+ | < | ||
+ | dumpdev=" | ||
+ | dumpon_flags=" | ||
+ | savecore_enable=" | ||
+ | savecore_flags=" | ||
+ | crashinfo_enable=" | ||
+ | </ | ||
+ | |||
+ | ==== / | ||
+ | < | ||
+ | debug.minidump=1 # | ||
+ | kern.sync_on_panic=0 # | ||
+ | kern.panic_reboot_wait_time=16 # | ||
+ | kern.kerneldump_gzlevel=3 # | ||
+ | </ | ||
+ | |||
+ | ==== / | ||
+ | < | ||
+ | # Set to not install kernel symbol files. | ||
+ | </ | ||
+ | Либо файл / | ||
+ | |||
+ | ==== /etc/fstab ==== | ||
+ | Вариант с шифрованным swap: | ||
+ | < | ||
+ | </ | ||
+ | |||
+ | Обычный swap: | ||
+ | < | ||
+ | |||
+ | |||
+ | |||
+ | {{tag> |