Date: Sun, 8 Jan 2012 17:25:02 +0200 From: =?windows-1251?B?yu7t/Oru4iDF4uPl7ejp?= <kes-kes@yandex.ru> To: =?windows-1251?B?yu7t/Oru4iDF4uPl7ejp?= <kes-kes@yandex.ru> Cc: freebsd-bugs@FreeBSD.org, freebsd-questions@freebsd.org Subject: Re[10]: high load system do not take all CPU time Message-ID: <819444292.20120108172502@yandex.ru> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
ÊÅ> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?819444292.20120108172502>