Index: sys/amd64/amd64/minidump_machdep.c =================================================================== --- sys/amd64/amd64/minidump_machdep.c +++ sys/amd64/amd64/minidump_machdep.c @@ -32,6 +32,7 @@ #include #include +#include #include #include #include @@ -68,6 +69,9 @@ static size_t counter, progress, dumpsize; CTASSERT(sizeof(*vm_page_dump) == 8); +static int count_dump_retry = 5; +SYSCTL_INT(_machdep, OID_AUTO, count_dump_retry, CTLFLAG_RWTUN, + &count_dump_retry, 0, "Number of times dump has to retry before bailing out"); static int is_dumpable(vm_paddr_t pa) @@ -447,7 +451,7 @@ printf("\n"); if (error == ENOSPC) { printf("Dump map grown while dumping. "); - if (retry_count < 5) { + if (retry_count < count_dump_retry) { printf("Retrying...\n"); goto retry; }