Date: Mon, 20 Apr 1998 13:46:38 -0400 (EDT) From: woods@zeus.leitch.com (Greg A. Woods) To: freebsd-bugs@FreeBSD.ORG Subject: Re: kern/5236 Message-ID: <199804201746.NAA13877@brain.zeus.leitch.com> In-Reply-To: Pierre Beyssac's message of "Mon, April 20, 1998 10:54:46 %2B0200" regarding "Re: kern/5236" id <19980420105446.AG32944@mars.hsc.fr> References: <19980420011335.SG57732@@> <16263.893051669@critter.freebsd.dk> <19980420105446.AG32944@mars.hsc.fr>
next in thread | previous in thread | raw e-mail | index | archive | help
[ On Mon, April 20, 1998 at 10:54:46 (+0200), Pierre Beyssac wrote: ] > Subject: Re: kern/5236 > > > Second: ps doesn't give an atomic snapshot of the system, > > so it isn't an accurate view of system resources. > > Even though they are supposed to be updated atomically, the problem > is most certainly with kernel tables, ps only reflects this. I assume > top would, too, but I haven't tried it (hence the filing of my > PR in the "kern" category). In theory ps should report the last state of *all* variables in struct proc *and* struct user, but since the data in the u-area goes away when the process becomes a zombie, zeros must be reported for those values. IMNSHO it would be wrong to zero out other fields in struct proc when making the process a zombie, esp. since this would make it difficult to account some values to the parent upon final exit(). I.e. what I'm getting at is that this PR is a *user* problem -- a misunderstanding of what's being reported by ps. Ps doesn't report about system resource utilization -- it reports per-*process* resource utilization, and the numbers reported for a zombie represent the resources it had used up to the point it died. -- Greg A. Woods +1 416 443-1734 VE3TCP <gwoods@acm.org> <robohack!woods> Planix, Inc. <woods@planix.com>; Secrets of the Weird <woods@weird.com> To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199804201746.NAA13877>