From owner-svn-src-all@FreeBSD.ORG Tue Mar 2 10:51:22 2010 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C10221065708; Tue, 2 Mar 2010 10:51:22 +0000 (UTC) (envelope-from niclas.zeising@gmail.com) Received: from mxf2.bahnhof.se (mxf2.bahnhof.se [213.80.101.26]) by mx1.freebsd.org (Postfix) with ESMTP id 749F48FC13; Tue, 2 Mar 2010 10:51:22 +0000 (UTC) Received: from localhost (mxf2.local [127.0.0.1]) by mxf2-reinject (Postfix) with ESMTP id A1CCB96947D; Tue, 2 Mar 2010 11:32:57 +0100 (CET) X-Virus-Scanned: by amavisd-new using ClamAV at bahnhof.se (MXF2) X-Spam-Score: 4.245 X-Spam-Level: **** X-Spam-Status: No, score=4.245 tagged_above=-99 required=5 tests=[DNS_FROM_RFC_POST=1.44, RATWARE_GECKO_BUILD=1.426, SPF_NEUTRAL=1.379] Received: from mxf2.bahnhof.se ([127.0.0.1]) by localhost (mxf2.bahnhof.se [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WZc+fj8uwPni; Tue, 2 Mar 2010 11:32:55 +0100 (CET) Received: from [192.168.1.33] (h-90-99.A163.priv.bahnhof.se [79.136.90.99]) by mxf2.bahnhof.se (Postfix) with ESMTP id 7467796947A; Tue, 2 Mar 2010 11:32:55 +0100 (CET) Received: from 127.0.0.1 (AVG SMTP 9.0.733 [271.1.1/2716]); Tue, 02 Mar 2010 11:32:52 +0100 Message-ID: <4B8CE954.3080503@gmail.com> Date: Tue, 02 Mar 2010 11:32:52 +0100 From: Niclas Zeising User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.8) Gecko/20100216 Thunderbird/3.0.2 MIME-Version: 1.0 To: Alfred Perlstein References: <201003020658.o226wwB2051156@svn.freebsd.org> In-Reply-To: <201003020658.o226wwB2051156@svn.freebsd.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r204552 - in head/sys: conf kern net sys X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Mar 2010 10:51:22 -0000 On 2010-03-02 07:58, Alfred Perlstein wrote: > Author: alfred > Date: Tue Mar 2 06:58:58 2010 > New Revision: 204552 > URL: http://svn.freebsd.org/changeset/base/204552 > > Log: > Merge projects/enhanced_coredumps (r204346) into HEAD: > > Enhanced process coredump routines. > > This brings in the following features: > 1) Limit number of cores per process via the %I coredump formatter. > Example: > if corefilename is set to %N.%I.core AND num_cores = 3, then > if a process "rpd" cores, then the corefile will be named > "rpd.0.core", however if it cores again, then the kernel will > generate "rpd.1.core" until we hit the limit of "num_cores". > > this is useful to get several corefiles, but also prevent filling > the machine with corefiles. > > 2) Encode machine hostname in core dump name via %H. > > 3) Compress coredumps, useful for embedded platforms with limited space. > A sysctl kern.compress_user_cores is made available if turned on. > > To enable compressed coredumps, the following config options need to be set: > options COMPRESS_USER_CORES > device zlib # brings in the zlib requirements. > device gzio # brings in the kernel vnode gzip output module. > > 4) Eventhandlers are fired to indicate coredumps in progress. > > 5) The imgact sv_coredump routine has grown a flag to pass in more > state, currently this is used only for passing a flag down to compress > the coredump or not. > > Note that the gzio facility can be used for generic output of gzip'd > streams via vnodes. > > Obtained from: Juniper Networks > Reviewed by: kan > [SNIP diff] Nice work! Can you please document the gernel options and devices in NOTES and where to change the core filename format somewhere so it doesn't get lost. Thanks! //Niclas