From owner-freebsd-stable@FreeBSD.ORG Thu Feb 16 08:47:12 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 120D316A424 for ; Thu, 16 Feb 2006 08:47:12 +0000 (GMT) (envelope-from agava-develop@yandex.ru) Received: from mx18.yandex.ru (mx18.yandex.ru [213.180.200.18]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3302543D48 for ; Thu, 16 Feb 2006 08:47:10 +0000 (GMT) (envelope-from agava-develop@yandex.ru) Received: from guns.agava.net ([81.200.14.42]:10227 "EHLO r4.agava-guns.domain" smtp-auth: "agava-develop" TLS-CIPHER: TLS-PEER-CN1: ) by mail.yandex.ru with ESMTP id S475727AbWBPIee (ORCPT ); Thu, 16 Feb 2006 11:34:34 +0300 X-Comment: RFC 2476 MSA function at mx18.yandex.ru logged sender identity as: agava-develop From: Ivan Kolosovskiy To: Dan Nelson In-Reply-To: <20060215223432.GH70956@dan.emsphone.com> References: <1140027060.83368.11.camel@r4.agava-guns.domain> <20060215194204.GC70956@dan.emsphone.com> <20060215215608.GA55676@xor.obsecurity.org> <20060215223432.GH70956@dan.emsphone.com> Content-Type: text/plain; charset=koi8-r Date: Thu, 16 Feb 2006 11:32:31 +0300 Message-Id: <1140078751.793.2.camel@r4.agava-guns.domain> Mime-Version: 1.0 X-Mailer: Evolution 2.4.2.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 8bit Cc: freebsd-stable@freebsd.org, Kris Kennaway Subject: Re: Strange process X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Feb 2006 08:47:12 -0000 В ср, 15/02/2006 в 16:34 -0600, Dan Nelson пишет: > In the last episode (Feb 15), Kris Kennaway said: > > On Wed, Feb 15, 2006 at 01:42:04PM -0600, Dan Nelson wrote: > > > In the last episode (Feb 15), Ivan Kolosovskiy said: > > > > top: > > > > PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND > > > > 38410 findfile 1 96 0 0K 0K START 0 0:00 0.00% grotty > > > > > > > > ps: > > > > host$ ps -waux | grep grotty > > > > findfile 38410 0,0 0,0 0 0 p6 REJ 19:57 0:00,25 [grotty] > > > > > > E in the STAT column means the process is trying to exit, but > > > can't. What does "ps lp 38410" print? The MWCHAN column should say > > > where in the kernel the process is stuck. > > > > I often see this too. For example: > > > > PID USERNAME THR PRI NICE SIZE RES STATE TIME WCPU COMMAND > > 5357 kkenn 1 96 0 0K 0K START 0:00 0.35% xpdf > > > > > ps -waux | grep xpdf > > kkenn 5357 0.3 0.0 0 0 ?? RE Sun08PM 0:00.20 [xpdf] > > > > > ps lp 5357 > > UID PID PPID CPU PRI NI VSZ RSS MWCHAN STAT TT TIME COMMAND > > That syntax should have worked... Try a plain "px axl | grep xpdf" > instead. > > I think top's START state corresponds to the ~200-line window of code > in kern_fork.c:fork1() between p_state=PRS_NEW and p_state=PRS_NORMAL, > but I'm not positive. ps axl UID PID PPID CPU PRI NI VSZ RSS MWCHAN STAT TT TIME COMMAND 1001 38410 38408 0 96 0 0 0 - REJ p6 0:00,25 [grotty] here it is.