From nobody Thu Nov 6 16:40:03 2025 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4d2SbR4tGyz655mb; Thu, 06 Nov 2025 16:40:03 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4d2SbR3zYSz3DMZ; Thu, 06 Nov 2025 16:40:03 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1762447203; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=RFTB8c7uirnX1FWrj/hkcYmxW64Jl4hwNSm+QN7AgB4=; b=rc+06O5mXVdahtAXXR7VigK1dQBOko9H+lX9XKwiRqeTi61GbqxtiGqpifYtrSoui+42wB MgN3f+s29Gb69lYKoqJyStqEE4VIpky0bqun601qNsrFIyI7DU9tDXz8HBIECy+QW48dEC ZMDZ8lnc5R6jXxKQosU2LFXfDw1Ze8fwMtHsa/Ms5Zxjb07ztfpv1NtsMEZfnLSek+xOLD flU7xfKm048ErX7mtF+purL41jjrOmZuwj5BTdH6o0jTwcwD2QyFrVBwbf5UwW1oHS7rMz GfUmpBam9LFx1eNb5wcwo9wN1cd1o7VqQx3XxCqJ0CXTnPqNkftBuMr6iPGosg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1762447203; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=RFTB8c7uirnX1FWrj/hkcYmxW64Jl4hwNSm+QN7AgB4=; b=IfBJ5N4BX6uUBeh2NUNMN7qjKosoWHIAbP7jI6C+JBy+EN+34vUaeN2BzOUuk9k9d57e4u jJUbyf5tW7vF9Lz/H3N3meWIzRCF+Ryp5HtaF4ixMcwkNUDNXdPkPzkqZ8RjmhOinYBYRQ zWzGZZh2GVw02GWgbqPDJsYQoarkUCYgX9M6IHbsj0szf5KSkPbk3KO6SFcJK6m02eAxP0 Yn0cjtDBXW3C4yKw9tRBHb+vxP+t049HD17t+Zwn1gSyJM61TIReADp5SxAPd9Uu97LzX2 LY7qwSFabdJnpPl5koFe/8zDslARzy0LxavmREOXL2iw9FYh5YB2JXunF6xv4A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1762447203; a=rsa-sha256; cv=none; b=Ww6vw8rWPHa39iu7MEA9EEzlsVHm9OAeDEyMcqkTSl/Z/sF5nvRyQLlCskXfZi4Hzi01Ag z089e0+KYir2Bk/J6KWgkYQwAdquhuBnAbcL0rTCgYaJ9O2cl4vG1A9zAeu+Y2LAe5Z87b rLvVmHIsgfD3i6k1MwMXqlkCWEJDXRnJazBklKaUnN3z3Tu6+4yCM0mIimkGyyapPY4W3M DuvqQQp6n4XYhpq1aE+0HX7zHBH7Ch1MQ5ekVgu12AhbiWueznROoWJkDt21I29bbueH8m 4abiqQPDYchyOyhpFkPn4XfT0OaX5gex63iwnq8j9Dec0pxVOAcyQYQzZ8Z3oQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4d2SbR3YxMz5yl; Thu, 06 Nov 2025 16:40:03 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 5A6Ge3r6060444; Thu, 6 Nov 2025 16:40:03 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 5A6Ge3WU060438; Thu, 6 Nov 2025 16:40:03 GMT (envelope-from git) Date: Thu, 6 Nov 2025 16:40:03 GMT Message-Id: <202511061640.5A6Ge3WU060438@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Alexander Ziaee Subject: git: 850841edf6c0 - main - dumpon(8): Add a SYSCTL VARIABLES section List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: ziaee X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 850841edf6c0867a170d2637f3dacfda33d5f3dd Auto-Submitted: auto-generated The branch main has been updated by ziaee: URL: https://cgit.FreeBSD.org/src/commit/?id=850841edf6c0867a170d2637f3dacfda33d5f3dd commit 850841edf6c0867a170d2637f3dacfda33d5f3dd Author: Felix Johnson AuthorDate: 2025-11-06 16:32:42 +0000 Commit: Alexander Ziaee CommitDate: 2025-11-06 16:38:14 +0000 dumpon(8): Add a SYSCTL VARIABLES section Document debug.minidump and machdep.dump_retry_count sysctl variables. PR: 259393 MFC after: 3 seconds Reviewed by: gbe (previous), markj, ziaee Differential Revision: https://reviews.freebsd.org/D32618 --- sbin/dumpon/dumpon.8 | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/sbin/dumpon/dumpon.8 b/sbin/dumpon/dumpon.8 index a57dfef7096d..f2082a58851d 100644 --- a/sbin/dumpon/dumpon.8 +++ b/sbin/dumpon/dumpon.8 @@ -228,6 +228,20 @@ total amount of physical memory as reported by the .Va hw.physmem .Xr sysctl 8 variable. +.Sh SYSCTL VARIABLES +The following +.Xr sysctl 8 +variables can be used to modify or monitor the behavior of crash dumps: +.Bl -tag -width "machdep.dump_retry_count" +.It Va debug.minidump +Set the type of kernel crash dump. +Possible values are 0 for a full crash dump or 1 for a minidump. +The default is minidump. +.It Va machdep.dump_retry_count +The maximum number of times dump will retry before giving up. +The default value is 5. +This sysctl is only supported on PowerPC and AMD64. +.El .Sh IMPLEMENTATION NOTES Because the file system layer is already dead by the time a crash dump is taken, it is not possible to send crash dumps directly to a file. @@ -377,6 +391,7 @@ needed. .Xr loader 8 , .Xr rc 8 , .Xr savecore 8 , +.Xr sysctl 8 , .Xr swapon 8 , .Xr panic 9 .Sh HISTORY