From owner-freebsd-questions@FreeBSD.ORG Wed Aug 22 10:00:36 2007 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 C977C16A41A for ; Wed, 22 Aug 2007 10:00:36 +0000 (UTC) (envelope-from unixvn@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.183]) by mx1.freebsd.org (Postfix) with ESMTP id 6BEA713C46B for ; Wed, 22 Aug 2007 10:00:36 +0000 (UTC) (envelope-from unixvn@gmail.com) Received: by py-out-1112.google.com with SMTP id u77so250565pyb for ; Wed, 22 Aug 2007 03:00:36 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=U9UR+DfGns/1w9Ew4bTcjQImLNr9mOW50vVAT/IwUVoaeBeImw+vvEbyBWXuq4/YEsJaNVoUx/1GjVjsCIBXNVsNQlZD/T4BYyeFGjysHQG+YBwla7ixec++Z2lOPNw70p6fNUFn7mYYqlkQUbtjaFHvyYCo6DksnLj9J4z5txc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=JE2LSj7jyMN+YsCyJIiOTrmsbHcqfbNuzzBCr4J9srr/v/yT/WpYiNyufGUzudHmFWgbK47YmQQqnIEa8MBuJPt7LPFA7WTV9qR1EwWcXDifutPvh0EumpoW0IeEilOCCfyoMO4JNAZbNkRDKPVUFjIJBt5nOz261lulQdd6qSo= Received: by 10.64.27.13 with SMTP id a13mr561833qba.1187775278754; Wed, 22 Aug 2007 02:34:38 -0700 (PDT) Received: by 10.65.250.12 with HTTP; Wed, 22 Aug 2007 02:34:38 -0700 (PDT) Message-ID: <64b284310708220234n4a01cf47r3767079b6c50eb55@mail.gmail.com> Date: Wed, 22 Aug 2007 16:34:38 +0700 From: "Nguyen Tam Chinh" To: FreeBSD-Questions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: It's top shows wrong load percent? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Aug 2007 10:00:37 -0000 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 AMD Features=0xc0400800 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: 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: on acpi0 acpi_button0: on acpi0 acpi_button1: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 agp0: mem 0xe0000000-0xe3ffffff at device 0.0 on pci0 pcib1: at device 1.0 on pci0 pci1: on pcib1 pci1: at device 0.0 (no driver attached) fxp0: port 0xd000-0xd03f mem 0xeb020000-0xeb020fff,0xeb000000-0xeb01ffff irq 10 at device 8.0 on pci0 miibus0: on fxp0 inphy0: on miibus0 inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto fxp0: Ethernet address: 00:02:b3:ee:78:48 isab0: at device 17.0 on pci0 isa0: on isab0 atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xe000-0xe00f at device 17.1 on pci0 ata0: on atapci0 ata1: on atapci0 acpi_tz0: on acpi0 fdc0: 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