From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 31 20:04:04 2014 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2B1B4654; Mon, 31 Mar 2014 20:04:04 +0000 (UTC) Received: from udns.ultimateDNS.NET (ultimatedns.net [209.180.214.225]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id ED10FE64; Mon, 31 Mar 2014 20:04:03 +0000 (UTC) Received: from udns.ultimateDNS.NET (localhost [127.0.0.1]) by udns.ultimateDNS.NET (8.14.5/8.14.5) with ESMTP id s2VK6mu1011020; Mon, 31 Mar 2014 13:06:54 -0700 (PDT) (envelope-from bsd-lists@bsdforge.com) Received: (from www@localhost) by udns.ultimateDNS.NET (8.14.5/8.14.5/Submit) id s2VK6hjN011019; Mon, 31 Mar 2014 13:06:43 -0700 (PDT) (envelope-from bsd-lists@bsdforge.com) Received: from unavailable02.ultimatedns.net ([209.180.214.228]) (UDNSMS authenticated user chrish) by ultimatedns.net with HTTP; Mon, 31 Mar 2014 13:06:43 -0700 (PDT) Message-ID: <26dbb84bafaf0114cb75c3fbe060d412.authenticated@ultimatedns.net> Date: Mon, 31 Mar 2014 13:06:43 -0700 (PDT) Subject: Process handlers, and zombies, or preap(1) From: "Chris H" To: "freebsd-hackers" , "freebsd-stable" User-Agent: UDNSMS/2.0.3 MIME-Version: 1.0 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Mar 2014 20:04:04 -0000 Greetings, I'm evaluating/experimenting on releng_9. The install, and now custom kernel have noting exotic, or anything out of the ordinary. top(1), and ps(1) indicate a (1) zombie, or process. On my releng_8 systems, when I occasionally encounter one of these, they soon disappear (are reaped) from the process table. While I have not investigated this far enough on both versions to determine whether the parent process reaped the child on the releng_8 systems, and the parent on releng_9 is simply an irresponsible parent, eg; a different parent. Before I do, I was wondering if there was any specific difference between the 2 versions that might cause better handling of such situations. While I recognize that resource starvation is HIGHLY unlikely, except by perhaps a rouge parent spawning multitudes of zombies. I thought it might be useful for "housekeeping" to 1) provide a process table housekeeper (zombie reaper), or 2) create a system utility/command like SunOS/OpenSolaris has; preap(1). http://www.freebsd.org/cgi/man.cgi?query=preap&manpath=SunOS+5.10 Thank you for your time, and consideration. --Chris