Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Aug 2007 16:34:38 +0700
From:      "Nguyen Tam Chinh" <unixvn@gmail.com>
To:        FreeBSD-Questions <freebsd-questions@freebsd.org>
Subject:   It's top shows wrong load percent?
Message-ID:  <64b284310708220234n4a01cf47r3767079b6c50eb55@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hello,

Recently we got some trouble on some FreeBSD 6.2-STABLE servers
(GENERIC kernel). Some python scripts are working on these servers and
after a day or two we get 0% idle in the CPU states. After sometime,
the operating system will unable to do even simple task like resolving
DNS name and the zabbix process can not send outbound packets to the
remote monitoring server. Maybe the top is showing wrong load percent?
vmstat -i shows that some kind of irq0: clk has a maximum value of
1000. Does this matter?
Please advice how to debug this overload problem.
Thank you very much!

--------------------------
%top
last pid: 12901;  load averages:  8.68,  8.65,  8.65    up 1+20:44:06  04:15:12
1438 processes:9 running, 1429 sleeping
CPU states: 38.8% user,  0.0% nice, 60.1% system,  1.2% interrupt,  0.0% idle
Mem: 191M Active, 784M Inact, 141M Wired, 4K Cache, 112M Buf, 824M Free
Swap: 3883M Total, 3883M Free

  PID USERNAME  THR PRI NICE   SIZE    RES STATE    TIME   WCPU COMMAND
  893 test     1205  20    0   283M   158M kserel 746:23  0.83% python
  878 test      207  96    0 59864K 39912K select 139:48  0.00% python
  693 zabbix      1 101    5  1876K  1180K RUN      0:31  0.00% zabbix_agentd
  699 zabbix      1 101    5  1876K  1308K RUN      0:15  0.00% zabbix_agentd
  719 zabbix      1 101    5  1876K  1308K RUN      0:14  0.00% zabbix_agentd
  717 zabbix      1 101    5  1876K  1308K RUN      0:14  0.00% zabbix_agentd
  718 zabbix      1 101    5  1876K  1316K RUN      0:14  0.00% zabbix_agentd
  666 root        1  96    0  3504K  2936K select   0:04  0.00% sendmail
  660 root        1  96    0  3524K  2692K select   0:02  0.00% sshd

%vmstat -i
interrupt                          total       rate
irq0: clk                      161045527       1000
irq8: rtc                       20609989        127
irq10: fxp0                     84315079        523
irq14: ata0                       341080          2
Total                          266311675       1653

%netstat -m
1100/2485/3585 mbufs in use (current/cache/total)
1092/1730/2822/96000 mbuf clusters in use (current/cache/total/max)
1092/1724 mbuf+clusters out of packet secondary zone in use (current/cache)
0/0/0/0 4k (page size) jumbo clusters in use (current/cache/total/max)
0/0/0/0 9k jumbo clusters in use (current/cache/total/max)
0/0/0/0 16k jumbo clusters in use (current/cache/total/max)
2459K/4081K/6540K bytes allocated to network (current/cache/total)
0/0/0 requests for mbufs denied (mbufs/clusters/mbuf+clusters)
0/0/0 requests for jumbo clusters denied (4k/9k/16k)
0/7/16896 sfbufs in use (current/peak/max)
0 requests for sfbufs denied
0 requests for sfbufs delayed
0 requests for I/O initiated by sendfile
0 calls to protocol drain routines

>From dmesg:

Copyright (c) 1992-2007 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
        The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 6.2-RELEASE #0: Fri Jan 12 10:40:27 UTC 2007
    root@dessler.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: AMD Athlon(tm) Prosussor (1994.95-MHz 686-class CPU)
  Origin = "AuthenticAMD"  Id = 0x6a0  Stepping = 0
  Features=0x383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE>
  AMD Features=0xc0400800<SYSCALL,MMX+,3DNow+,3DNow>
real memory  = 2080309248 (1983 MB)
avail memory = 2029355008 (1935 MB)
kbd1 at kbdmux0
ath_hal: 0.9.17.2 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413)
acpi0: <KM266P AWRDACPI> on motherboard
acpi0: Power Button (fixed)
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x4008-0x400b on acpi0
cpu0: <ACPI CPU> on acpi0
acpi_button0: <Power Button> on acpi0
acpi_button1: <Sleep Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
agp0: <VIA 8235/8237 (Apollo KM400/KM400A) host to PCI bridge> mem
0xe0000000-0xe3ffffff at device 0.0 on pci0
pcib1: <PCI-PCI bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pci1: <display, VGA> at device 0.0 (no driver attached)
fxp0: <Intel 82550 Pro/100 Ethernet> port 0xd000-0xd03f mem
0xeb020000-0xeb020fff,0xeb000000-0xeb01ffff irq 10 at device 8.0 on
pci0
miibus0: <MII bus> on fxp0
inphy0: <i82555 10/100 media interface> on miibus0
inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fxp0: Ethernet address: 00:02:b3:ee:78:48
isab0: <PCI-ISA bridge> at device 17.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <VIA 8235 UDMA133 controller> port
0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xe000-0xe00f at device 17.1 on
pci0
ata0: <ATA channel 0> on atapci0
ata1: <ATA channel 1> on atapci0
acpi_tz0: <Thermal Zone> on acpi0
fdc0: <floppy drive controller> port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on acpi0
fdc0: [FAST]

-- 
With best regards,        |         The Power to Serve
Nguyen Tam Chinh      |      http://www.FreeBSD.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?64b284310708220234n4a01cf47r3767079b6c50eb55>