From owner-freebsd-hackers@FreeBSD.ORG Tue Jun 28 20:02:18 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 98AE91065670 for ; Tue, 28 Jun 2011 20:02:18 +0000 (UTC) (envelope-from josh.carroll@gmail.com) Received: from mail-pw0-f54.google.com (mail-pw0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id 748798FC14 for ; Tue, 28 Jun 2011 20:02:18 +0000 (UTC) Received: by mail-pw0-f54.google.com with SMTP id 7so539706pwi.13 for ; Tue, 28 Jun 2011 13:02:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:cc:content-type:content-transfer-encoding; bh=95rqL8lnsMH4e6IPGIKQSqPyfHKysvo9TiVh1rQe41g=; b=fycXMAGEsUw6BWLLjC2B/BvjemGRI+m1WtLvBU49OzTzX6Z3OJ/KGWssl1UaNxAJnd d4E/eJ2B1/CV14h9fpXg10tpWSnA6DbVisfeNtATl9oC5PvXwPiS6VRicD2IbknrkN0o V4CmBTRVB5wwGyger+Ww8jDkzYdXRdIiibz6Y= MIME-Version: 1.0 Received: by 10.68.12.71 with SMTP id w7mr1400465pbb.373.1309289839091; Tue, 28 Jun 2011 12:37:19 -0700 (PDT) Received: by 10.68.46.200 with HTTP; Tue, 28 Jun 2011 12:37:19 -0700 (PDT) In-Reply-To: <4E0A201D.9000601@rawbw.com> References: <4E0A201D.9000601@rawbw.com> Date: Tue, 28 Jun 2011 12:37:19 -0700 Message-ID: From: Josh Carroll To: Yuri Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org Subject: Re: How can process in STOP state consume 200% CPU? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: josh.carroll@gmail.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Jun 2011 20:02:18 -0000 On Tue, Jun 28, 2011 at 11:40 AM, Yuri wrote: > I got VirtualBox process in a strange state. It has the status STOP but > shows by top as consuming 200% CPU for a very long time. > How is this possible and what does this mean? Process time stays at 0:00 > TIME. kill -9 doesn't kill it. > > =A0PID USERNAME =A0 =A0 =A0THR PRI NICE =A0 SIZE =A0 =A0RES STATE =A0 C = =A0 TIME =A0 =A0CPU > COMMAND > =A09390 yuri =A0 =A0 =A0 =A0 =A0 =A03 =A044 =A0 =A00 =A0 508M =A0 246M ST= OP =A0 =A03 =A0 0:00 200.00% > VirtualBox Can you send the output of these various procstat commands: procstat -kk 9390 procstat -f 9390 procstat -t 9390 procstat -i 9390 | grep -vE -- '---$' procstat -j 9390 | grep -vE -- '--$' As well as ps output for the process: ps auwwx | grep -w 9390 Also ktrace'ing the process and sending a kdump (or part of it) could be us= eful. Thanks, Josh