From owner-freebsd-questions@FreeBSD.ORG Thu Nov 18 21:00:33 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5D9721065673 for ; Thu, 18 Nov 2010 21:00:33 +0000 (UTC) (envelope-from jonc@chen.org.nz) Received: from mail-ey0-f182.google.com (mail-ey0-f182.google.com [209.85.215.182]) by mx1.freebsd.org (Postfix) with ESMTP id F37108FC15 for ; Thu, 18 Nov 2010 21:00:32 +0000 (UTC) Received: by eyb7 with SMTP id 7so2303729eyb.13 for ; Thu, 18 Nov 2010 13:00:32 -0800 (PST) MIME-Version: 1.0 Received: by 10.216.165.15 with SMTP id d15mr1171894wel.111.1290113673691; Thu, 18 Nov 2010 12:54:33 -0800 (PST) Received: by 10.216.160.11 with HTTP; Thu, 18 Nov 2010 12:54:33 -0800 (PST) X-Originating-IP: [203.99.129.1] In-Reply-To: <683205662.20101117203818@yandex.ru> References: <683205662.20101117203818@yandex.ru> Date: Fri, 19 Nov 2010 09:54:33 +1300 Message-ID: From: Jonathan Chen To: =?KOI8-R?B?68/O2MvP1yDl18fFzsnK?= Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable Cc: freebsd-questions@freebsd.org Subject: Re: strange behaviour on FreeBSD 7.1 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Nov 2010 21:00:33 -0000 2010/11/18 =EB=CF=CE=D8=CB=CF=D7 =E5=D7=C7=C5=CE=C9=CA : > Hi. > > Sometimes system goes to this situation: 0% idle and no processes take CP= U time > > #top -SIHP > last pid: 62813; =9Aload averages: =9A4.17, =9A3.64, =9A2.16 =9A up 28+06= :44:02 =9A20:41:41 > 155 processes: 7 running, 129 sleeping, 19 waiting > CPU: 99.3% user, =9A0.0% nice, =9A0.7% system, =9A0.0% interrupt, =9A0.0%= idle > Mem: 177M Active, 27M Inact, 124M Wired, 13M Cache, 60M Buf, 148M Free > Swap: 2048M Total, 51M Used, 1997M Free, 2% Inuse > > =9APID USERNAME =9A PRI NICE =9A SIZE =9A =9ARES STATE =9A =9ATIME =9A WC= PU COMMAND > > #top > last pid: 62852; =9Aload averages: =9A4.10, =9A3.67, =9A2.22 =9A up 28+06= :44:36 =9A20:42:15 > 172 processes: 4 running, 168 sleeping > CPU: 99.6% user, =9A0.0% nice, =9A0.4% system, =9A0.0% interrupt, =9A0.0%= idle > Mem: 203M Active, 27M Inact, 125M Wired, 13M Cache, 60M Buf, 121M Free > Swap: 2048M Total, 51M Used, 1997M Free, 2% Inuse > > =9APID USERNAME =9A =9ATHR PRI NICE =9A SIZE =9A =9ARES STATE =9A =9ATIME= =9A WCPU COMMAND > 62817 root =9A =9A =9A =9A 36 =9A-8 =9A =9A0 29696K 23276K piperd =9A 0:0= 0 =9A7.62% perl5.8.8 If you look at the "last pid" between the 2 top-output snippets, you can see that approx 40 processes came and went in-between. This indiciates that you probably have some script running that's spawning a large number of short-lived processes. --=20 Jonathan Chen