Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Dec 2012 23:29:56 +0000 (UTC)
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r244323 - in head: . etc/defaults
Message-ID:  <201212162329.qBGNTufO072682@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pjd
Date: Sun Dec 16 23:29:56 2012
New Revision: 244323
URL: http://svnweb.freebsd.org/changeset/base/244323

Log:
  Use new savecore(8) option and limit number of kernel dumps that will
  be kept around to the 10 most recent ones.
  
  Add UPDATING entry with info how to return to the previous behaviour (no
  limits).
  
  Obtained from:	WHEEL Systems

Modified:
  head/UPDATING
  head/etc/defaults/rc.conf

Modified: head/UPDATING
==============================================================================
--- head/UPDATING	Sun Dec 16 23:23:34 2012	(r244322)
+++ head/UPDATING	Sun Dec 16 23:29:56 2012	(r244323)
@@ -26,6 +26,13 @@ NOTE TO PEOPLE WHO THINK THAT FreeBSD 10
 	disable the most expensive debugging functionality run
 	"ln -s 'abort:false,junk:false' /etc/malloc.conf".)
 
+20121217:
+	By default, only the 10 most recent kernel dumps will be saved.  To
+	restore the previous behaviour (no limit on the number of kernel dumps
+	stored in the dump directory) add the following line to /etc/rc.conf:
+
+		savecore_flags=""
+
 20121201:
 	With the addition of auditdistd(8), a new auditdistd user is now
 	depended on during installworld.  "mergemaster -p" can be used to add

Modified: head/etc/defaults/rc.conf
==============================================================================
--- head/etc/defaults/rc.conf	Sun Dec 16 23:23:34 2012	(r244322)
+++ head/etc/defaults/rc.conf	Sun Dec 16 23:29:56 2012	(r244323)
@@ -605,7 +605,9 @@ chkprintcap_enable="NO"	# Run chkprintca
 chkprintcap_flags="-d"	# Create missing directories by default.
 dumpdev="AUTO"		# Device to crashdump to (device name, AUTO, or NO).
 dumpdir="/var/crash"	# Directory where crash dumps are to be stored
-savecore_flags=""	# Used if dumpdev is enabled above, and present.
+savecore_flags="-m 10"	# Used if dumpdev is enabled above, and present.
+			# By default, only the 10 most recent kernel dumps
+			# are saved.
 crashinfo_enable="YES"	# Automatically generate crash dump summary.
 crashinfo_program="/usr/sbin/crashinfo"	# Script to generate crash dump summary.
 quota_enable="NO"	# turn on quotas on startup (or NO).



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201212162329.qBGNTufO072682>