From owner-freebsd-arch@FreeBSD.ORG Fri Nov 20 06:26:42 2009 Return-Path: Delivered-To: arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E0F79106566C for ; Fri, 20 Nov 2009 06:26:42 +0000 (UTC) (envelope-from peterjeremy@acm.org) Received: from mail34.syd.optusnet.com.au (mail34.syd.optusnet.com.au [211.29.133.218]) by mx1.freebsd.org (Postfix) with ESMTP id 69F068FC1E for ; Fri, 20 Nov 2009 06:26:42 +0000 (UTC) Received: from server.vk2pj.dyndns.org (c122-106-232-83.belrs3.nsw.optusnet.com.au [122.106.232.83]) by mail34.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id nAK6QbDs025647 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 20 Nov 2009 17:26:39 +1100 X-Bogosity: Ham, spamicity=0.000000 Received: from server.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by server.vk2pj.dyndns.org (8.14.3/8.14.3) with ESMTP id nAK6Qbvm049675; Fri, 20 Nov 2009 17:26:37 +1100 (EST) (envelope-from peter@server.vk2pj.dyndns.org) Received: (from peter@localhost) by server.vk2pj.dyndns.org (8.14.3/8.14.3/Submit) id nAK6QbYr049674; Fri, 20 Nov 2009 17:26:37 +1100 (EST) (envelope-from peter) Date: Fri, 20 Nov 2009 17:26:37 +1100 From: Peter Jeremy To: Rui Paulo Message-ID: <20091120062637.GA49534@server.vk2pj.dyndns.org> References: <3bbf2fe10911160702m3641b65cv15ac2942cbb023fd@mail.gmail.com> <7i8we5xlbm.wl%gnn@neville-neil.com> <30DCA579-53AD-49EA-A5A2-5A0796A285C1@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="vtzGhvizbBRQ85DL" Content-Disposition: inline In-Reply-To: <30DCA579-53AD-49EA-A5A2-5A0796A285C1@gmail.com> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.20 (2009-06-14) Cc: Attilio Rao , gnn@freebsd.org, FreeBSD Arch Subject: Re: [PATCH] Protect inetd and cron from being killed under high-pressure swapping X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Nov 2009 06:26:43 -0000 --vtzGhvizbBRQ85DL Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2009-Nov-17 21:35:34 +0000, Rui Paulo wrote: >> At Mon, 16 Nov 2009 16:02:08 +0100, >> Attilio Rao wrote: >>>=20 >>> This simple patch protects inetd and cron from being killed under >>> high-pressure swapping systems: >>> http://www.freebsd.org/~attilio/Sandvine/STABLE_8/madvised/madvised.diff >Yes, the idea is good, but should we really trust inetd and crond that muc= h ? >Are there other daemons that do this? As an alternative approach, how about placing a wrapper process around them which will restart them if they die? init(8) unofficially provides this (I've used it in the past) - maybe we should formalise this. --=20 Peter Jeremy --vtzGhvizbBRQ85DL Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.13 (FreeBSD) iEYEARECAAYFAksGNp0ACgkQ/opHv/APuIcBmACbBPYHpXB9Gx2LYogG5LBfFnzZ kE8AoKKD3Hh7ENZvZqaoOwDTkpqMhn/p =wStf -----END PGP SIGNATURE----- --vtzGhvizbBRQ85DL--