From owner-freebsd-questions@FreeBSD.ORG Sun Jan 8 15:25:08 2012 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 DFA0B106566C; Sun, 8 Jan 2012 15:25:08 +0000 (UTC) (envelope-from kes-kes@yandex.ru) Received: from forward18.mail.yandex.net (forward18.mail.yandex.net [IPv6:2a02:6b8:0:1402::3]) by mx1.freebsd.org (Postfix) with ESMTP id A1C238FC0A; Sun, 8 Jan 2012 15:25:07 +0000 (UTC) Received: from smtp17.mail.yandex.net (smtp17.mail.yandex.net [95.108.252.17]) by forward18.mail.yandex.net (Yandex) with ESMTP id 1B1871782113; Sun, 8 Jan 2012 19:25:06 +0400 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1326036306; bh=JOXgkqGixz+wRhtTuZHkXaslEPHl3cw5RRQK2xcU+UM=; h=Date:From:Reply-To:Message-ID:To:CC:Subject:In-Reply-To: References:MIME-Version:Content-Type:Content-Transfer-Encoding; b=AMe5FsIwSzWT61PGA1vHf/E/ML8A2DwQMr0HAvIF9yAE1vPNKMsoZFeiKnYqIQQrj zEbjhwlnQ6gs8/khV6ilQemcJ/dNXiAUYfJ1FwLDqRbhEc75JRbzPpzwJ8mmO40V5N r3/9y7gM5EzTVTKlzbDy8tvdPkzprqBG1LwnSmos= Received: from smtp17.mail.yandex.net (localhost [127.0.0.1]) by smtp17.mail.yandex.net (Yandex) with ESMTP id E22F51900194; Sun, 8 Jan 2012 19:25:05 +0400 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1326036306; bh=JOXgkqGixz+wRhtTuZHkXaslEPHl3cw5RRQK2xcU+UM=; h=Date:From:Reply-To:Message-ID:To:CC:Subject:In-Reply-To: References:MIME-Version:Content-Type:Content-Transfer-Encoding; b=AMe5FsIwSzWT61PGA1vHf/E/ML8A2DwQMr0HAvIF9yAE1vPNKMsoZFeiKnYqIQQrj zEbjhwlnQ6gs8/khV6ilQemcJ/dNXiAUYfJ1FwLDqRbhEc75JRbzPpzwJ8mmO40V5N r3/9y7gM5EzTVTKlzbDy8tvdPkzprqBG1LwnSmos= Received: from unknown (unknown [77.93.52.22]) by smtp17.mail.yandex.net (nwsmtp/Yandex) with ESMTP id P5OORYxX-P5OaEXWb; Sun, 8 Jan 2012 19:25:05 +0400 X-Yandex-Spam: 1 Date: Sun, 8 Jan 2012 17:25:02 +0200 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: <819444292.20120108172502@yandex.ru> To: =?windows-1251?B?yu7t/Oru4iDF4uPl7ejp?= In-Reply-To: <1332691712.20120108165534@yandex.ru> References: <9110154891.20111226214424@yandex.ru> <201112262154.pBQLsxJt038471@mail.r-bonomi.com> <1863129064.20120105223118@yandex.ru> <1332691712.20120108165534@yandex.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: 8bit Cc: freebsd-bugs@FreeBSD.org, freebsd-questions@freebsd.org Subject: Re[10]: 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: =?windows-1251?B?yu7t/Oru4iDF4uPl7ejp?= List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Jan 2012 15:25:09 -0000 ÊÅ> Also I notice next: ÊÅ> in case of overload 'ping localhost' or any IP this router has get ÊÅ> timeouts about 50-100ms, pinging any external host on LAN or Internet ÊÅ> get normal results: 5ms LAN, 40ms Internet. ÊÅ> I do not think this issue related to re0 interface or its driver. ÊÅ> This is related to kernel and its structures. details: which system queues or buffers can cause such bad results for localhost pinging? # ping 127.0.0.1 PING 127.0.0.1 (127.0.0.1): 56 data bytes 64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=122.377 ms 64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=53.025 ms 64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=36.214 ms 64 bytes from 127.0.0.1: icmp_seq=3 ttl=64 time=85.151 ms 64 bytes from 127.0.0.1: icmp_seq=4 ttl=64 time=105.704 ms 64 bytes from 127.0.0.1: icmp_seq=5 ttl=64 time=1.145 ms 64 bytes from 127.0.0.1: icmp_seq=6 ttl=64 time=26.240 ms 64 bytes from 127.0.0.1: icmp_seq=7 ttl=64 time=37.532 ms 64 bytes from 127.0.0.1: icmp_seq=8 ttl=64 time=20.161 ms 64 bytes from 127.0.0.1: icmp_seq=9 ttl=64 time=7.876 ms 64 bytes from 127.0.0.1: icmp_seq=10 ttl=64 time=36.441 ms 64 bytes from 127.0.0.1: icmp_seq=11 ttl=64 time=0.840 ms 64 bytes from 127.0.0.1: icmp_seq=12 ttl=64 time=45.483 ms 64 bytes from 127.0.0.1: icmp_seq=13 ttl=64 time=29.629 ms 64 bytes from 127.0.0.1: icmp_seq=14 ttl=64 time=0.025 ms 64 bytes from 127.0.0.1: icmp_seq=15 ttl=64 time=86.228 ms 64 bytes from 127.0.0.1: icmp_seq=16 ttl=64 time=141.489 ms 64 bytes from 127.0.0.1: icmp_seq=17 ttl=64 time=118.011 ms 64 bytes from 127.0.0.1: icmp_seq=18 ttl=64 time=14.077 ms 64 bytes from 127.0.0.1: icmp_seq=19 ttl=64 time=0.599 ms 64 bytes from 127.0.0.1: icmp_seq=20 ttl=64 time=0.041 ms 64 bytes from 127.0.0.1: icmp_seq=21 ttl=64 time=59.191 ms 64 bytes from 127.0.0.1: icmp_seq=22 ttl=64 time=36.222 ms 64 bytes from 127.0.0.1: icmp_seq=23 ttl=64 time=3.278 ms 64 bytes from 127.0.0.1: icmp_seq=24 ttl=64 time=153.970 ms 64 bytes from 127.0.0.1: icmp_seq=25 ttl=64 time=71.832 ms 64 bytes from 127.0.0.1: icmp_seq=26 ttl=64 time=0.740 ms 64 bytes from 127.0.0.1: icmp_seq=27 ttl=64 time=22.389 ms 64 bytes from 127.0.0.1: icmp_seq=28 ttl=64 time=6.637 ms 64 bytes from 127.0.0.1: icmp_seq=29 ttl=64 time=2.888 ms 64 bytes from 127.0.0.1: icmp_seq=30 ttl=64 time=27.595 ms 64 bytes from 127.0.0.1: icmp_seq=31 ttl=64 time=59.914 ms 64 bytes from 127.0.0.1: icmp_seq=32 ttl=64 time=8.892 ms ^C --- 127.0.0.1 ping statistics --- 33 packets transmitted, 33 packets received, 0.0% packet loss round-trip min/avg/max/stddev = 0.025/43.086/153.970/43.818 ms last pid: 34214; load averages: 4.02, 4.13, 4.38 up 8+20:50:08 17:18:01 276 processes: 6 running, 251 sleeping, 16 waiting, 3 lock CPU 0: 16.5% user, 0.0% nice, 12.2% system, 48.9% interrupt, 22.3% idle CPU 1: 12.2% user, 0.0% nice, 13.7% system, 60.4% interrupt, 13.7% idle CPU 2: 8.6% user, 0.0% nice, 8.6% system, 68.3% interrupt, 14.4% idle CPU 3: 10.8% user, 0.0% nice, 4.3% system, 72.7% interrupt, 12.2% idle Mem: 638M Active, 2804M Inact, 313M Wired, 135M Cache, 112M Buf, 8736K Free Swap: 4096M Total, 16M Used, 4080M Free PID USERNAME PRI NICE SIZE RES STATE C TIME WCPU COMMAND 12 root -72 - 0K 160K *per-i 3 67.7H 95.26% {swi1: netisr 3} 12 root -72 - 0K 160K CPU1 1 46.5H 84.62% {swi1: netisr 1} 12 root -72 - 0K 160K *per-i 2 24.5H 36.57% {swi1: netisr 2} 11 root 155 ki31 0K 32K RUN 0 139.3H 34.81% {idle: cpu0} 12 root -72 - 0K 160K *per-i 3 19.6H 32.57% {swi1: netisr 0} 11 root 155 ki31 0K 32K RUN 1 141.2H 19.48% {idle: cpu1} 11 root 155 ki31 0K 32K CPU2 2 140.2H 17.43% {idle: cpu2} 11 root 155 ki31 0K 32K CPU3 3 141.5H 15.92% {idle: cpu3} 12 root -92 - 0K 160K WAIT 0 26.4H 13.09% {irq256: re0} 93929 root 24 0 15392K 5616K select 0 86:57 6.88% snmpd 13 root -16 - 0K 32K sleep 2 599:49 4.83% {ng_queue1} 13 root -16 - 0K 32K sleep 2 600:32 4.20% {ng_queue0} 13 root -16 - 0K 32K sleep 3 600:57 3.86% {ng_queue3} 13 root -16 - 0K 32K sleep 0 600:05 3.76% {ng_queue2} 34145 cacti 27 0 12000K 3096K select 0 0:00 1.22% snmpwalk 34185 cacti 52 0 32256K 16604K nanslp 2 0:00 0.93% php 86746 root 20 0 139M 57632K select 2 17:09 0.29% {mpd5} 86746 root 20 0 139M 57632K select 0 0:00 0.29% {mpd5} 86746 root 20 0 139M 57632K select 2 0:00 0.29% {mpd5} 32865 freeradius 20 -20 151M 123M usem 3 1:31 0.24% {radiusd} 32865 freeradius 20 -20 151M 123M usem 2 1:31 0.24% {radiusd} 32865 freeradius 20 -20 151M 123M usem 0 1:25 0.24% {radiusd} 1 users Load 4.88 4.34 4.45 Jan 8 17:18 Mem:KB REAL VIRTUAL VN PAGER SWAP PAGER Tot Share Tot Share Free in out in out Act 883556 12112 3211480 38276 159236 count 24 All 1086936 19504 5456924 92620 pages 26 Proc: Interrupts r p d s w Csw Trp Sys Int Sof Flt 534 cow 36566 total 1 199 126k 4667 12k 20k 13k 2280 765 zfod 43 ata0 14 157 ozfod 1 ehci0 16 8.2%Sys 62.7%Intr 2.8%User 0.0%Nice 26.3%Idle 20%ozfod 2 ehci1 23 | | | | | | | | | | | daefr 4127 cpu0:timer ====+++++++++++++++++++++++++++++++>> 826 prcfr 20188 re0 256 155 dtbuf 2434 totfr 4096 cpu1:timer Namei Name-cache Dir-cache 142271 desvn react 4032 cpu3:timer Calls hits % hits % 48240 numvn pdwak 4077 cpu2:timer 12498 12492 100 34644 frevn pdpgs intrn Disks ad0 da0 pass0 320468 wire KB/t 16.85 0.00 0.00 632440 act tps 43 0 0 2879156 inact MB/s 0.70 0.00 0.00 132996 cache %busy 3 0 0 26376 free 114976 buf -- Ñ óâàæåíèåì, Êîíüêîâ mailto:kes-kes@yandex.ru