conf/63648: [PATCH] make the startup savecore(8) to compress saved
cores by default
Xin LI
delphij at frontfree.net
Tue Mar 2 08:50:20 PST 2004
>Number: 63648
>Category: conf
>Synopsis: [PATCH] make the startup savecore(8) to compress saved cores by default
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Tue Mar 02 08:50:19 PST 2004
>Closed-Date:
>Last-Modified:
>Originator: Xin LI
>Release: FreeBSD 5.2-CURRENT i386
>Organization:
The FreeBSD Simplified Chinese Project
>Environment:
System: FreeBSD beastie.frontfree.net 5.2-CURRENT FreeBSD 5.2-CURRENT #40: Tue Mar 2 17:38:46 CST 2004 delphij at beastie.frontfree.net:/usr/obj/usr/src/sys/BEASTIE i386
>Description:
The savecore(8) provided the ablity to save kernel dumps
after a crash, also, it can save gzip(1)'ed copies of the coredumps.
On a machine having big RAM, it will be a nightmare to have many
coredumps saved in /var/crash, and compressing it by default will
make unattended boxes possible to have more dumps saved.
For users do not want to save a compressed coredumps, it
is always possible to set savecore_flags="" in rc.conf.
>How-To-Repeat:
>Fix:
I proposal the attached patch against src/etc/defaults/rc.conf.
--- patch-rc.conf begins here ---
Index: rc.conf
===================================================================
RCS file: /home/mirror/freebsd/ncvs/src/etc/defaults/rc.conf,v
retrieving revision 1.198
diff -u -r1.198 rc.conf
--- rc.conf 3 Feb 2004 11:26:08 -0000 1.198
+++ rc.conf 2 Mar 2004 16:37:04 -0000
@@ -409,7 +409,7 @@
usbd_flags="" # Flags to usbd (if enabled).
dumpdev="NO" # Device name to crashdump to (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="-z" # Used if dumpdev is enabled above, and present.
enable_quotas="NO" # turn on quotas on startup (or NO).
check_quotas="YES" # Check quotas on startup (or NO).
accounting_enable="NO" # Turn on process accounting (or NO).
--- patch-rc.conf ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list