Re: It's top shows wrong load percent?

2007-08-23 Thread [EMAIL PROTECTED]
On 22/08/07, Nguyen Tam Chinh <[EMAIL PROTECTED]> wrote:
. . .
> vmstat -i shows that some kind of irq0: clk has a maximum value of
> 1000. Does this matter?
. . .

I can't really help with your other problems, but:
no, on a 2GHz machine 1000 is a fine value for
that.

In case you were curious, it can be set at boot-time
via a "kern.hz=" line in your /boot/loader.conf.

-- 
--
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: It's top shows wrong load percent?

2007-08-22 Thread Nguyen Tam Chinh
On 8/23/07, Chuck Swiger <[EMAIL PROTECTED]> wrote:
> On Aug 22, 2007, at 2:34 AM, Nguyen Tam Chinh wrote:
> > Please advice how to debug this overload problem.
> > Thank you very much!
> >
> > --
> > %top
> > last pid: 12901;  load averages:  8.68,  8.65,  8.65up 1
> > +20:44:06  04:15:12
> > 1438 processes:9 running, 1429 sleeping
>
> Look at the number of processes you've got-- most likely you've got
> some scripts leaving zombie processes around, or one of the server
> programs you are running isn't cleaning up after it's children
> properly.  Do a "ps aux" and look for excessive numbers of processes

Thank you for your reply, we actually initialized over 1200 python
threads on each server. I'll try to low down the thread number for
tracking the problem.

-- 
With best regards,| The Power to Serve
Nguyen Tam Chinh  |  http://www.FreeBSD.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: It's top shows wrong load percent?

2007-08-22 Thread Chuck Swiger

On Aug 22, 2007, at 2:34 AM, Nguyen Tam Chinh wrote:

Please advice how to debug this overload problem.
Thank you very much!

--
%top
last pid: 12901;  load averages:  8.68,  8.65,  8.65up 1 
+20:44:06  04:15:12

1438 processes:9 running, 1429 sleeping


Look at the number of processes you've got-- most likely you've got  
some scripts leaving zombie processes around, or one of the server  
programs you are running isn't cleaning up after it's children  
properly.  Do a "ps aux" and look for excessive numbers of processes


--
-Chuck

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


It's top shows wrong load percent?

2007-08-22 Thread Nguyen Tam Chinh
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.65up 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   SIZERES STATETIME   WCPU COMMAND
  893 test 1205  200   283M   158M kserel 746:23  0.83% python
  878 test  207  960 59864K 39912K select 139:48  0.00% python
  693 zabbix  1 1015  1876K  1180K RUN  0:31  0.00% zabbix_agentd
  699 zabbix  1 1015  1876K  1308K RUN  0:15  0.00% zabbix_agentd
  719 zabbix  1 1015  1876K  1308K RUN  0:14  0.00% zabbix_agentd
  717 zabbix  1 1015  1876K  1308K RUN  0:14  0.00% zabbix_agentd
  718 zabbix  1 1015  1876K  1316K RUN  0:14  0.00% zabbix_agentd
  666 root1  960  3504K  2936K select   0:04  0.00% sendmail
  660 root1  960  3524K  2692K select   0:02  0.00% sshd

%vmstat -i
interrupt  total   rate
irq0: clk  161045527   1000
irq8: rtc   20609989127
irq10: fxp0 84315079523
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
[EMAIL PROTECTED]:/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
0xe000-0xe3ff 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
0xeb02-0xeb020fff,0xeb00-0xeb01 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
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"