From owner-freebsd-bugs Sun Apr 19 22:56:58 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA08111 for freebsd-bugs-outgoing; Sun, 19 Apr 1998 22:56:58 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from critter.freebsd.dk (critter.freebsd.dk [195.8.129.14]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id FAA08088 for ; Mon, 20 Apr 1998 05:56:53 GMT (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.8.7/8.8.5) with ESMTP id HAA16265; Mon, 20 Apr 1998 07:54:29 +0200 (CEST) To: pb@fasterix.freenix.org (Pierre Beyssac) cc: freebsd-bugs@FreeBSD.ORG Subject: Re: kern/5236 In-reply-to: Your message of "Mon, 20 Apr 1998 01:13:35 +0200." <19980420011335.SG57732@@> Date: Mon, 20 Apr 1998 07:54:29 +0200 Message-ID: <16263.893051669@critter.freebsd.dk> From: Poul-Henning Kamp Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In message <19980420011335.SG57732@@>, Pierre Beyssac writes: >Poul-Henning Kamp writes: >> Synopsis: CPU and mem not zeroed for zombie process >> >> I don't think this behaviour is wrong. What do you perceive as a problem >> with it ? > >The problem is that a zombie process can be shown (by ps) as using a >non-zero amount of CPU (and mem) for hours. It clearly isn't an >accurate view of actual usage of system resources. Maybe it has an >influence on load averages computations too. Well, first: zombies are signs of programming errors in the parent process. Second: ps doesn't give an atomic snapshot of the system, so it isn't an accurate view of system resources. Third: since it isn't scheduled none of those awful things will happen. Fourth: If you had included a patch for ps things would probably happen :-) -- Poul-Henning Kamp FreeBSD coreteam member phk@FreeBSD.ORG "Real hackers run -current on their laptop." "Drink MONO-tonic, it goes down but it will NEVER come back up!" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message