From owner-freebsd-questions@FreeBSD.ORG Sun Dec 18 15:52:45 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 08A18106564A for ; Sun, 18 Dec 2011 15:52:45 +0000 (UTC) (envelope-from DStaal@usa.net) Received: from mail.magehandbook.com (173-8-4-45-WashingtonDC.hfc.comcastbusiness.net [173.8.4.45]) by mx1.freebsd.org (Postfix) with ESMTP id CDF4E8FC14 for ; Sun, 18 Dec 2011 15:52:41 +0000 (UTC) Received: from [192.168.1.50] (Mac-Pro.magehandbook.com [192.168.1.50]) by mail.magehandbook.com (Postfix) with ESMTP id 1781F72; Sun, 18 Dec 2011 10:52:41 -0500 (EST) Date: Sun, 18 Dec 2011 10:52:00 -0500 From: Daniel Staal To: =?UTF-8?Q?=D0=9A=D0=BE=D0=BD=D1=8C=D0=BA=D0=BE=D0=B2_=D0=95=D0=B2=D0=B3=D0=B5=D0=BD=D0=B8=D0=B9?= , freebsd-questions@freebsd.org Message-ID: <3A4BDC1D114ED73D51E019BA@mac-pro.magehandbook.com> In-Reply-To: <1374625746.20111217102942@yandex.ru> References: <1374625746.20111217102942@yandex.ru> X-Mailer: Mulberry/4.0.8 (Mac OS X) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Cc: Subject: Re: high load system do not take all CPU time X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: FreeBSD Questions List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Dec 2011 15:52:45 -0000 --As of December 17, 2011 10:29:42 AM +0200, = =D0=9A=D0=BE=D0=BD=D1=8C=D0=BA=D0=BE=D0=B2 = =D0=95=D0=B2=D0=B3=D0=B5=D0=BD=D0=B8=D0=B9=20 is alleged to have said: > How to debug why system do not use free CPU resouces? > > On this pictures you can see that CPU can not exceed 400tics > http://piccy.info/view3/2368839/c9022754d5fcd64aff04482dd360b5b2/ > http://piccy.info/view3/2368837/a12aeed98681ed10f1a22f5b5edc5abc/ > http://piccy.info/view3/2368836/da6a67703af80eb0ab8088ab8421385c/ > > > On these pictures you can see that problems begin with trafic on re0 > when CPU load rise to "maximum" > http://piccy.info/view3/2368834/512139edc56eea736881affcda490eca/ > http://piccy.info/view3/2368827/d27aead22eff69fd1ec2b6aa15e2cea3/ > > But there is 25% CPU idle yet at that moment. ># top -SIHP > last pid: 93050; load averages: 1.45, 1.41, 1.29 > up 9+16:32:06 10:28:43 237 processes: 5 running, 210 sleeping, 2 > stopped, 20 waiting > CPU 0: 0.8% user, 0.0% nice, 8.7% system, 17.7% interrupt, 72.8% idle > CPU 1: 0.0% user, 0.0% nice, 9.1% system, 20.1% interrupt, 70.9% idle > CPU 2: 0.4% user, 0.0% nice, 9.4% system, 19.7% interrupt, 70.5% idle > CPU 3: 1.2% user, 0.0% nice, 6.3% system, 22.4% interrupt, 70.1% idle > Mem: 843M Active, 2476M Inact, 347M Wired, 150M Cache, 112M Buf, 80M Free > Swap: 4096M Total, 15M Used, 4080M Free --As for the rest, it is mine. You are I/O bound; most of your time is spent in interrupts. The CPU is=20 dealing with things as fast as it can get them, but it has to wait for the=20 disk and/or network card to get them to it. The CPU is not your problem;=20 if you need more performance, you need to tune the I/O. (And possibly get=20 better I/O cards, if available.) Daniel T. Staal --------------------------------------------------------------- This email copyright the author. Unless otherwise noted, you are expressly allowed to retransmit, quote, or otherwise use the contents for non-commercial purposes. This copyright will expire 5 years after the author's death, or in 30 years, whichever is longer, unless such a period is in excess of local copyright law. ---------------------------------------------------------------