From owner-freebsd-questions@FreeBSD.ORG Sat Oct 1 19:43:05 2011 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 1A99C106564A for ; Sat, 1 Oct 2011 19:43:05 +0000 (UTC) (envelope-from kes-kes@yandex.ru) Received: from forward6.mail.yandex.net (forward6.mail.yandex.net [IPv6:2a02:6b8:0:202::1]) by mx1.freebsd.org (Postfix) with ESMTP id C045B8FC0C for ; Sat, 1 Oct 2011 19:43:02 +0000 (UTC) Received: from smtp8.mail.yandex.net (smtp8.mail.yandex.net [77.88.61.54]) by forward6.mail.yandex.net (Yandex) with ESMTP id D1EFDF81D34; Sat, 1 Oct 2011 23:43:00 +0400 (MSD) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1317498180; bh=+lozpgH/warV0Fqqj2an1T35ICSpEHdv8iS86uHQ4GY=; h=Date:From:Reply-To:Message-ID:To:CC:Subject:In-Reply-To: References:MIME-Version:Content-Type; b=QDCQQF4retbVyhYuO9VRUH+VB0jzupiqA4Gpm0DWpcQjFT4qpI8E8glIRxB/C4esZ SNZoes79QeBPt7KEiLV4VBopSG/MK3jmYIzkBcfw+SV8UAaI0Lsazcd66FMVa7mqIi nIsM1so5l0EDacD7jI6oUHdFUhqIyHl6TxkYTncU= Received: from smtp8.mail.yandex.net (localhost [127.0.0.1]) by smtp8.mail.yandex.net (Yandex) with ESMTP id B6AF81B60207; Sat, 1 Oct 2011 23:43:00 +0400 (MSD) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1317498180; bh=+lozpgH/warV0Fqqj2an1T35ICSpEHdv8iS86uHQ4GY=; h=Date:From:Reply-To:Message-ID:To:CC:Subject:In-Reply-To: References:MIME-Version:Content-Type; b=QDCQQF4retbVyhYuO9VRUH+VB0jzupiqA4Gpm0DWpcQjFT4qpI8E8glIRxB/C4esZ SNZoes79QeBPt7KEiLV4VBopSG/MK3jmYIzkBcfw+SV8UAaI0Lsazcd66FMVa7mqIi nIsM1so5l0EDacD7jI6oUHdFUhqIyHl6TxkYTncU= Received: from unknown (unknown [77.93.52.20]) by smtp8.mail.yandex.net (nwsmtp/Yandex) with ESMTP id gxeaknhA-gxeOBq3Y; Sat, 1 Oct 2011 23:43:00 +0400 X-Yandex-Spam: 1 Date: Sat, 1 Oct 2011 22:42:54 +0300 From: =?windows-1251?B?yu7t/Oru4iDF4uPl7ejp?= X-Mailer: The Bat! (v4.0.24) Professional Organization: =?windows-1251?B?188gyu7t/Oru4iwgRnJlZUxpbmU=?= X-Priority: 3 (Normal) Message-ID: <637456677.20111001224254@yandex.ru> To: Frank Shute In-Reply-To: <20111001183856.GA35442@orange.esperance-linux.co.uk> References: <3691887.20111001203849@yandex.ru> <20111001183856.GA35442@orange.esperance-linux.co.uk> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----------78FF13E3B31830C" X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: Re[2]: top: how to obtain which process take CPU time X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: =?windows-1251?B?yu7t/Oru4iDF4uPl7ejp?= List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Oct 2011 19:43:05 -0000 ------------78FF13E3B31830C Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: 8bit Здравствуйте, Frank. Вы писали 1 октября 2011 г., 21:38:56: FS> On Sat, Oct 01, 2011 at 08:38:49PM +0300, ??????? ??????? wrote: >> >> hi, Freebsd-questions. >> >> last pid: 92665; load averages: 2.40, 2.68, 4.75 up 5+02:45:23 20:29:07 >> 218 processes: 3 running, 215 sleeping >> CPU: 59.6% user, 0.0% nice, 40.4% system, 0.0% interrupt, 0.0% idle >> Mem: 225M Active, 81M Inact, 115M Wired, 3936K Cache, 60M Buf, 64M Free >> Swap: 2048M Total, 190M Used, 1857M Free, 9% Inuse >> >> PID USERNAME THR PRI NICE SIZE RES STATE TIME WCPU COMMAND >> 92520 cacti 1 -8 0 22796K 12656K piperd 0:00 1.46% php >> 92593 cacti 1 -8 0 4620K 2316K piperd 0:00 1.46% perl5.8.8 >> 92594 cacti 1 8 0 3460K 1120K wait 0:00 1.46% sh >> 92592 cacti 1 8 0 3460K 1120K wait 0:00 1.46% sh >> 92595 cacti 1 55 0 5448K 2692K select 0:00 1.37% snmpget >> 92518 cacti 1 8 0 23820K 12896K nanslp 0:00 0.98% php >> 92528 cacti 1 -8 0 22796K 12640K piperd 0:00 0.98% php >> 92555 cacti 1 -8 0 4620K 2332K piperd 0:00 0.98% perl5.8.8 >> 92556 root 1 96 0 3280K 1292K select 0:00 0.98% sudo >> 92554 cacti 1 8 0 3460K 1120K wait 0:00 0.98% sh >> 92542 cacti 1 8 0 3460K 1128K wait 0:00 0.98% sh >> 92543 cacti 1 -8 0 10200K 3664K piperd 0:00 0.78% rrdtool >> 81166 firebird 1 45 0 23344K 6188K select 0:08 0.49% fb_inet_serve FS> That looks to me like quite a weak system and has got 3 running FS> processes and 215 sleeping. I can easily see that 59.6% of your CPU is FS> being used and your load averages being as they are. I see that too, but which process take that CPU? >> >> top -SIHP >> last pid: 99336; load averages: 1.47, 2.05, 3.66 up 5+02:52:06 20:35:50 >> 291 processes: 6 running, 266 sleeping, 18 waiting, 1 lock >> CPU: 52.2% user, 0.0% nice, 27.9% system, 0.0% interrupt, 19.9% idle >> Mem: 236M Active, 81M Inact, 115M Wired, 3436K Cache, 60M Buf, 54M Free >> Swap: 2048M Total, 189M Used, 1858M Free, 9% Inuse >> >> PID USERNAME PRI NICE SIZE RES STATE TIME WCPU COMMAND >> 11 root 171 ki31 0K 8K RUN 70.1H 27.59% idle: cpu0 >> 98502 cacti 8 0 23820K 12932K nanslp 0:00 0.20% php >> 44054 root 8 0 3124K 524K nanslp 0:56 0.10% monitord >> 99051 root 44 0 3496K 2020K RUN 0:00 0.10% top >> 99331 cacti -8 0 4620K 2332K piperd 0:00 0.00% perl5.8.8 >> 99326 cacti -8 0 4620K 2332K piperd 0:00 0.00% perl5.8.8 >> 99333 root 46 0 3240K 1008K select 0:00 0.00% ping >> 99328 root 45 0 3240K 972K select 0:00 0.00% ping >> 99332 root 47 0 3280K 1292K select 0:00 0.00% sudo >> 99327 root 47 0 3280K 1292K select 0:00 0.00% sudo >> >> It is unclear which process take CPU time. >> is there any other tool, which help me to see processes that take CPU? >> FS> I don't think another tool would help. You've just got a weak system FS> running lots of processes. None very big but they all add up to quite FS> a big chunk of CPU. It looks like it's handling it OK though. No. it is not weak. it is about 40% load averages, but somethig is happen and take of 100% CPU (see SNMP graph). And I got a problem in FreeBSD I can not obtain which process take all CPU (( > Robert Bonomi > It is unclear which process take CPU time. is there any other tool, which > help me to see processes that take CPU? >>One -obvious- anwser is the 'ps' commnd. >>Something like 'ps gxua". You mean that 'ps gxua' shows wrong results? FS> Regards, ------------78FF13E3B31830C--