From owner-freebsd-rc@FreeBSD.ORG Sun Dec 2 00:52:44 2007 Return-Path: Delivered-To: freebsd-rc@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 59CE016A417; Sun, 2 Dec 2007 00:52:44 +0000 (UTC) (envelope-from jdc@parodius.com) Received: from mx01.sc1.parodius.com (mx01.sc1.parodius.com [72.20.106.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4543313C43E; Sun, 2 Dec 2007 00:52:44 +0000 (UTC) (envelope-from jdc@parodius.com) Received: by mx01.sc1.parodius.com (Postfix, from userid 1000) id 8D5001CC079; Sat, 1 Dec 2007 16:36:32 -0800 (PST) Date: Sat, 1 Dec 2007 16:36:32 -0800 From: Jeremy Chadwick To: Mike Makonnen Message-ID: <20071202003632.GA804@eos.sc1.parodius.com> References: <200712011110.lB1BA31d034368@freefall.freebsd.org> <1196537768.81142.9.camel@mercury> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1196537768.81142.9.camel@mercury> User-Agent: Mutt/1.5.16 (2007-06-09) Cc: freebsd-rc@FreeBSD.org Subject: Re: conf/118255: savecore never finding kernel core dumps (rcorder problem) X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Dec 2007 00:52:44 -0000 On Sat, Dec 01, 2007 at 10:36:08PM +0300, Mike Makonnen wrote: > On Sat, 2007-12-01 at 11:10 +0000, Jeremy Chadwick wrote: > > This is great information; thanks for providing it! I found it quite > > educational/informational. The documentation Antony provided seems to > > indicate two things: > > > > 1) That savecore(8) should really be run before swapon(8) -- I don't see > > any indication that swap needs to be made available prior to mounting > > filesystems, which is what Doug B. was stating was a necessity. > > The dependency if I recall correctly is: savecore needs file systems > mounted, which need to be fsck(8)ed, which may need swap depending on > the size of the file systems. The real problem is fsck(8). It can be > a real memory hog in some situations (in which case it will need swap > to function properly). If at all possible I would recommend increasing > the size of the swap partition as a work-around. Ah, this explains the need. Hmm, definitely a chicken-and-egg problem. > > 2) That even regardless of Item #1, savecore(8) should be working > > (assuming that kernel dumps are still written from the end of the swap > > device to the front (e.g. backwards)), and that swapon(8) shouldn't be > > stomping on kernel dumps. > > Yes, if the size of the swap partition is big enough that the two > don't collide. Apparently, in this case the swap space probably isn't > large enough. The swap partition on the system in question is 8GB: $ swapinfo Device 1K-blocks Used Avail Capacity /dev/ad0s1b 8388608 0 8388608 0% The machine itself contains 3GB of RAM. $ dmesg | grep memory real memory = 3211657216 (3062 MB) avail memory = 3141939200 (2996 MB) I've always been of the "make swap at least 2x larger than the amount of memory you have / plan to expand to" mentality, so I don't think swap size is the problem in this case. However, I'm not sure how much swap was being used at the time either of the panics occured. For sake of argument, this machine has rarely used swap throughout the years (and it's our production web server). I monitor memory utilisation using symux (from ports), but sadly the swap used/free byte counters in symux appear to be incorrect/false, so I exclude them from monitoring. :-( -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | From owner-freebsd-rc@FreeBSD.ORG Mon Dec 3 11:07:08 2007 Return-Path: Delivered-To: freebsd-rc@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4A61D16A4A6 for ; Mon, 3 Dec 2007 11:07:08 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 2FBAA13C45A for ; Mon, 3 Dec 2007 11:07:08 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id lB3B78ZH005702 for ; Mon, 3 Dec 2007 11:07:08 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id lB3B77Jg005698 for freebsd-rc@FreeBSD.org; Mon, 3 Dec 2007 11:07:07 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 3 Dec 2007 11:07:07 GMT Message-Id: <200712031107.lB3B77Jg005698@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-rc@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-rc@FreeBSD.org X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Dec 2007 11:07:08 -0000 Current FreeBSD problem reports Critical problems Serious problems S Tracker Resp. Description -------------------------------------------------------------------------------- o conf/98758 rc [jail] [patch] Templatize 'jail_fstab' in /etc/rc.d/ja o conf/98846 rc [jail] [patch] Templatize 'jail_rootdir' in /etc/rc.d/ o conf/105689 rc syslogd starts too late at boot o conf/107155 rc [ppp] /etc/rc.d/ppp-user does not bring up pppoe at bo o conf/107364 rc pf fails to start on bootup after system update from F o conf/118255 rc savecore never finding kernel core dumps (rcorder prob 6 problems total. Non-critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- o conf/45226 rc [patch] Fix for rc.network, ppp-user annoyance o conf/48870 rc [PATCH] rc.network: allow to cancel interface status d o conf/58939 rc [patch] dumb little hack for /etc/rc.firewall{,6} o conf/73677 rc [patch] add support for powernow states to power_profi o conf/74817 rc [patch] network.subr: fixed automatic configuration of o conf/77663 rc Suggestion: add /etc/rc.d/addnetswap after addcritremo o conf/79196 rc [PATCH] configurable dummynet loading from /etc/rc.co o kern/81006 rc ipnat not working with tunnel interfaces on startup o conf/85363 rc syntax error in /etc/rc.d/devfs o conf/85819 rc [patch] script allowing multiuser mode in spite of fsc o conf/88913 rc [patch] wrapper support for rc.subr o conf/89061 rc [patch] IPv6 6to4 auto-configuration enhancement o conf/89870 rc [patch] feature request to make netif verbose rc.conf o conf/92523 rc [patch] allow rc scripts to kill process after a timeo o conf/93815 rc [patch] Adds in the ability to save ipfw rules to rc.d o conf/95162 rc [patch] Missing feature in rc.subr o conf/96343 rc [patch] rc.d order change to start inet6 before pf o conf/99444 rc [patch] Enhancement: rc.subr could easily support star o conf/99721 rc [patch] /etc/rc.initdiskless problem copy dotfile in s o conf/102700 rc [geli] [patch] Add encrypted /tmp support to GELI/GBDE o conf/102913 rc [jail] [patch] /etc/rc.d/named killall in jailed OS o conf/103486 rc [rc.d] [jail] [patch] rc.d/jail: mount fstab after dev o conf/103489 rc [rc.d] [jail] [patch] named_chroot_autoupdate doesn't o conf/104549 rc [patch] rc.d/nfsd needs special _find_processes functi o conf/105145 rc [PATCH] add redial function to rc.d/ppp o conf/105568 rc [patch] Add more flexibility to rc.conf, to choose "_e o conf/106009 rc [patch] Fix pppoed startup script to process multiply o conf/109562 rc [rc.d] [patch] Make rc.d/devfs usable from command-lin o conf/109980 rc /etc/rc.d/netif restart doesn't destroy cloned_interfa o conf/114119 rc [jail] [patch] /etc/rc.d/jail improvements for network o conf/117935 rc [patch] ppp fails to start at boot because of missing o bin/118325 rc [patch] new periodic script to test statuses of daemon 32 problems total. From owner-freebsd-rc@FreeBSD.ORG Mon Dec 3 22:18:43 2007 Return-Path: Delivered-To: freebsd-rc@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 79EA216A419; Mon, 3 Dec 2007 22:18:43 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 6EFD413C46A; Mon, 3 Dec 2007 22:18:43 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from freefall.freebsd.org (dougb@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id lB3MIhPa062656; Mon, 3 Dec 2007 22:18:43 GMT (envelope-from dougb@freefall.freebsd.org) Received: (from dougb@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id lB3MIgCR062652; Mon, 3 Dec 2007 22:18:42 GMT (envelope-from dougb) Date: Mon, 3 Dec 2007 22:18:42 GMT Message-Id: <200712032218.lB3MIgCR062652@freefall.freebsd.org> To: m.seaman@infracaninophile.co.uk, dougb@FreeBSD.org, freebsd-rc@FreeBSD.org, dougb@FreeBSD.org From: dougb@FreeBSD.org Cc: Subject: Re: bin/118325: [patch] new periodic script to test statuses of daemons started via rc system X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Dec 2007 22:18:43 -0000 Synopsis: [patch] new periodic script to test statuses of daemons started via rc system State-Changed-From-To: open->analyzed State-Changed-By: dougb State-Changed-When: Mon Dec 3 22:17:55 UTC 2007 State-Changed-Why: I like this idea, and I have some feedback for it. Responsible-Changed-From-To: freebsd-rc->dougb Responsible-Changed-By: dougb Responsible-Changed-When: Mon Dec 3 22:17:55 UTC 2007 Responsible-Changed-Why: I'd like to manage this one. http://www.freebsd.org/cgi/query-pr.cgi?pr=118325 From owner-freebsd-rc@FreeBSD.ORG Thu Dec 6 12:27:01 2007 Return-Path: Delivered-To: freebsd-rc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7299016A419 for ; Thu, 6 Dec 2007 12:27:01 +0000 (UTC) (envelope-from florent.thoumie@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.182]) by mx1.freebsd.org (Postfix) with ESMTP id 1D27C13C447 for ; Thu, 6 Dec 2007 12:27:00 +0000 (UTC) (envelope-from florent.thoumie@gmail.com) Received: by py-out-1112.google.com with SMTP id u77so460761pyb for ; Thu, 06 Dec 2007 04:27:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=STeP6iWocYX8nP1isTDwwjOJcAkfOQuHmdE79UIafoQ=; b=sAYg7CAmmwvjpyhg+oobC+Xm+psYglL/IzWEt3V84E/Qe0mwUF+boWE//LzQH7Ut6gmwgx/ecxGcEC4KYGC6cY+LZRCaG8H5AWv2AeaV2f3TuXSumTEHDcSLYNc/5DzU2EILcqR2oFBaFy9EF3yKaGrujEXteiNEIsEZllwKoJA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=kN5/qT5dKTZGY+cj/pzng33xn9KsUT8JsV3bxsoWTyyQos1bqZaL6uOeSbjsktS/LHoQ25ZH0XyvC4ESMTJd5KWfqU42z4I9HkbHhTOzhqn7cwqKb4kqpWnXqZIG0J3sBCSPitey02J+ZR4Kgo4aWH1yUh1RZlu5a0Majv15sqA= Received: by 10.64.91.15 with SMTP id o15mr3765725qbb.1196942462890; Thu, 06 Dec 2007 04:01:02 -0800 (PST) Received: by 10.65.206.2 with HTTP; Thu, 6 Dec 2007 04:01:02 -0800 (PST) Message-ID: Date: Thu, 6 Dec 2007 12:01:02 +0000 From: "Florent Thoumie" Sender: florent.thoumie@gmail.com To: "Denis Barov" In-Reply-To: <20071128131818.GA5140@sepulcator.yandex.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200711161743.lAGHh1r1024616@freefall.freebsd.org> <20071128131818.GA5140@sepulcator.yandex.ru> X-Google-Sender-Auth: 463fa72d953e1c09 Cc: freebsd-rc@freebsd.org, dindin@dindin.ru Subject: Re: conf/116177: rc.d/mdconfig2 script fail at -CURRENT X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Dec 2007 12:27:01 -0000 On 28/11/2007, Denis Barov wrote: > On Fri Nov 16, 2007 at 17:43:01 +0000, flz@FreeBSD.org wrote: > > Synopsis: rc.d/mdconfig2 script fail at -CURRENT > > > > State-Changed-From-To: open->patched > > State-Changed-By: flz > > State-Changed-When: Ven 16 nov 2007 17:42:47 UTC > > State-Changed-Why: > > Commmitted to HEAD. MFC to RELENG_[67] after 3 days. > > > > http://www.freebsd.org/cgi/query-pr.cgi?pr=116177 > > commit was made into -HEAD, at 7.0 problem still exists I've just MFC'ed the fix. -- Florent Thoumie flz@FreeBSD.org FreeBSD Committer