Date: Wed, 3 Mar 2004 00:48:01 +0800 (CST) From: Xin LI <delphij@frontfree.net> To: FreeBSD-gnats-submit@FreeBSD.org Subject: conf/63648: [PATCH] make the startup savecore(8) to compress saved cores by default Message-ID: <20040302164801.E352611C97@beastie.frontfree.net> Resent-Message-ID: <200403021650.i22GoJhS002929@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040302164801.E352611C97>