Re: Whats eating my cpu ?

2007-06-08 Thread Thanos Rizoulis

O/H Nikos Vassiliadis έγραψε:

Ah it's a virtual machine! Add to /boot/loader.conf kern.hz=100.
This will make the kernel tick 100 time per second. The default is
1000 times per second, which might be a bit high for your virtual
machine server. Don't know if it's going to affect your situation,
but it's good to set it this way, anyway.

This goes for vmware server too. Although when I am running freebsd 
under vmware in linux,

no changes are necessary and speed is just blazing.

--
RTFM and STFW before anything bad happens
_
Thanos Rizoulis
Electronic Computing Systems Engineer
Larissa, Greece
FreeBSD/PCBSD user

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


Whats eating my cpu ?

2007-06-07 Thread Ian Lord
Isnt top suppose to show all the process eating cpu ?

System takes 20% cpu and I don't see in which process. any idea ?

last pid:  1021;  load averages:  0.20,  0.39,  0.34
up 0+00:22:56  04:08:51
52 processes:  1 running, 51 sleeping
CPU states:  0.0% user,  0.0% nice,  1.7% system, 20.2% interrupt, 78.1%
idle
Mem: 109M Active, 39M Inact, 61M Wired, 304K Cache, 106M Buf, 787M Free
Swap: 1024M Total, 1024M Free

  PID USERNAME THR PRI NICE   SIZERES STATETIME   WCPU COMMAND
 1021 root   1  960  2372K  1628K RUN  0:01  0.05% top
  695 mysql  3  200   441M 81324K kserel   0:06  0.00% mysqld
  672 nobody 1   40  9056K  8712K kqread   0:03  0.00% memcached
  698 root   1   80 16532K  9560K nanslp   0:01  0.00% httpd
  864 msdi   1  960  6252K  3340K select   0:01  0.00% sshd
  723 www1  200 18600K 12436K lockf0:01  0.00% httpd
  494 root   1  960  1376K  1032K select   0:01  0.00% syslogd
  860 msdi   1  960  3292K  2248K select   0:01  0.00%
sftp-server
  725 www1  200 18728K 13748K lockf0:01  0.00% httpd
  862 root   1   40  6268K  3300K sbwait   0:00  0.00% sshd
  852 root   1   40  6252K  3268K sbwait   0:00  0.00% sshd
  857 msdi   1  960  6540K  3476K select   0:00  0.00% sshd
  556 bind   1  960  4144K  3280K select   0:00  0.00% named
  726 www1  200 18512K 12192K lockf0:00  0.00% httpd
  742 root   1  960  3504K  2872K select   0:00  0.00% sendmail
  865 msdi   1  200  4628K  2644K pause0:00  0.00% csh
  711 root   1  980  3524K  2764K select   0:00  0.00% sshd
  658 mysql  1   80  1728K  1312K wait 0:00  0.00% sh
  859 msdi   1  200  3788K  1948K pause0:00  0.00% csh
  993 msdi   1   80  1776K  1408K wait 0:00  0.00% su
  752 root   1   80  1388K  1100K nanslp   0:00  0.00% cron
  804 root   1   50  1344K   952K ttyin0:00  0.00% getty
  799 root   1   50  1344K   952K ttyin0:00  0.00% getty
  798 root   1   50  1344K   952K ttyin0:00  0.00% getty
  801 root   1   50  1344K   952K ttyin0:00  0.00% getty
  803 root   1   50  1344K   952K ttyin0:00  0.00% getty
  800 root   1   50  1344K   952K ttyin0:00  0.00% getty
  805 root   1   50  1344K   952K ttyin0:00  0.00% getty
  802 root   1   50  1344K   952K ttyin0:00  0.00% getty
  746 smmsp  1  200  3384K  2812K pause0:00  0.00% sendmail
  738 www1  200 16552K  9612K lockf0:00  0.00% httpd
  737 www1  200 16552K  9612K lockf0:00  0.00% httpd
  735 www1  200 16552K  9612K lockf0:00  0.00% httpd
  733 www1  200 16552K  9612K lockf0:00  0.00% httpd
  729 www1  200 16552K  9612K lockf0:00  0.00% httpd
  728 www1  200 16552K  9612K lockf0:00  0.00% httpd
  732 www1  200 16552K  9612K lockf0:00  0.00% httpd
  730 www1  200 16552K  9612K lockf0:00  0.00% httpd
  727 www1   40 16552K  9612K kqread   0:00  0.00% httpd
  741 www1  200 16552K  9612K lockf0:00  0.00% httpd
  739 www1  200 16552K  9612K lockf0:00  0.00% httpd
  719 www1  200 16552K  9612K lockf0:00  0.00% httpd
  740 www1  200 16552K  9612K lockf0:00  0.00% httpd
  734 www1  200 16552K  9612K lockf0:00  0.00% httpd
  731 www1  200 16552K  9612K lockf0:00  0.00% httpd
  721 www1  200 16552K  9612K lockf0:00  0.00% httpd
  736 www1  200 16552K  9612K lockf0:00  0.00% httpd
  435 root   1 1030   528K   388K select   0:00  0.00% devd
  118 root   1  200  1252K   728K pause0:00  0.00% adjkerntz


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


RE: Whats eating my cpu ?

2007-06-07 Thread Ian Lord


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ian Lord
Sent: 7 juin 2007 04:14
To: freebsd-questions@freebsd.org
Subject: Whats eating my cpu ?

Isnt top suppose to show all the process eating cpu ?

System takes 20% cpu and I don't see in which process. any idea ?

last pid:  1021;  load averages:  0.20,  0.39,  0.34
up 0+00:22:56  04:08:51
52 processes:  1 running, 51 sleeping
CPU states:  0.0% user,  0.0% nice,  1.7% system, 20.2% interrupt, 78.1%
idle
Mem: 109M Active, 39M Inact, 61M Wired, 304K Cache, 106M Buf, 787M Free
Swap: 1024M Total, 1024M Free

  PID USERNAME THR PRI NICE   SIZERES STATETIME   WCPU COMMAND
 1021 root   1  960  2372K  1628K RUN  0:01  0.05% top
  695 mysql  3  200   441M 81324K kserel   0:06  0.00% mysqld
  672 nobody 1   40  9056K  8712K kqread   0:03  0.00% memcached
  698 root   1   80 16532K  9560K nanslp   0:01  0.00% httpd
  864 msdi   1  960  6252K  3340K select   0:01  0.00% sshd
  723 www1  200 18600K 12436K lockf0:01  0.00% httpd
  494 root   1  960  1376K  1032K select   0:01  0.00% syslogd
  860 msdi   1  960  3292K  2248K select   0:01  0.00%
sftp-server
  725 www1  200 18728K 13748K lockf0:01  0.00% httpd
  862 root   1   40  6268K  3300K sbwait   0:00  0.00% sshd
  852 root   1   40  6252K  3268K sbwait   0:00  0.00% sshd
  857 msdi   1  960  6540K  3476K select   0:00  0.00% sshd
  556 bind   1  960  4144K  3280K select   0:00  0.00% named
  726 www1  200 18512K 12192K lockf0:00  0.00% httpd
  742 root   1  960  3504K  2872K select   0:00  0.00% sendmail
  865 msdi   1  200  4628K  2644K pause0:00  0.00% csh
  711 root   1  980  3524K  2764K select   0:00  0.00% sshd
  658 mysql  1   80  1728K  1312K wait 0:00  0.00% sh
  859 msdi   1  200  3788K  1948K pause0:00  0.00% csh
  993 msdi   1   80  1776K  1408K wait 0:00  0.00% su
  752 root   1   80  1388K  1100K nanslp   0:00  0.00% cron
  804 root   1   50  1344K   952K ttyin0:00  0.00% getty
  799 root   1   50  1344K   952K ttyin0:00  0.00% getty
  798 root   1   50  1344K   952K ttyin0:00  0.00% getty
  801 root   1   50  1344K   952K ttyin0:00  0.00% getty
  803 root   1   50  1344K   952K ttyin0:00  0.00% getty
  800 root   1   50  1344K   952K ttyin0:00  0.00% getty
  805 root   1   50  1344K   952K ttyin0:00  0.00% getty
  802 root   1   50  1344K   952K ttyin0:00  0.00% getty
  746 smmsp  1  200  3384K  2812K pause0:00  0.00% sendmail
  738 www1  200 16552K  9612K lockf0:00  0.00% httpd
  737 www1  200 16552K  9612K lockf0:00  0.00% httpd
  735 www1  200 16552K  9612K lockf0:00  0.00% httpd
  733 www1  200 16552K  9612K lockf0:00  0.00% httpd
  729 www1  200 16552K  9612K lockf0:00  0.00% httpd
  728 www1  200 16552K  9612K lockf0:00  0.00% httpd
  732 www1  200 16552K  9612K lockf0:00  0.00% httpd
  730 www1  200 16552K  9612K lockf0:00  0.00% httpd
  727 www1   40 16552K  9612K kqread   0:00  0.00% httpd
  741 www1  200 16552K  9612K lockf0:00  0.00% httpd
  739 www1  200 16552K  9612K lockf0:00  0.00% httpd
  719 www1  200 16552K  9612K lockf0:00  0.00% httpd
  740 www1  200 16552K  9612K lockf0:00  0.00% httpd
  734 www1  200 16552K  9612K lockf0:00  0.00% httpd
  731 www1  200 16552K  9612K lockf0:00  0.00% httpd
  721 www1  200 16552K  9612K lockf0:00  0.00% httpd
  736 www1  200 16552K  9612K lockf0:00  0.00% httpd
  435 root   1 1030   528K   388K select   0:00  0.00% devd
  118 root   1  200  1252K   728K pause0:00  0.00% adjkerntz


~
Oops, it's not system, it's interrupt... is there a way to know what is
wrong with my interrupts ?

Thanks

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


Re: Whats eating my cpu ?

2007-06-07 Thread Nikos Vassiliadis
On Thursday 07 June 2007 11:16, Ian Lord wrote:
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Ian Lord
 Sent: 7 juin 2007 04:14
 To: freebsd-questions@freebsd.org
 Subject: Whats eating my cpu ?

 Isnt top suppose to show all the process eating cpu ?

 System takes 20% cpu and I don't see in which process. any idea ?


 ~
 Oops, it's not system, it's interrupt... is there a way to know what is
 wrong with my interrupts ?


Yes, try systat -vm 1.

Also, what about your network?

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


RE: Whats eating my cpu ?

2007-06-07 Thread Ian Lord
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Nikos Vassiliadis
Sent: 7 juin 2007 04:24
To: freebsd-questions@freebsd.org
Cc: Ian Lord
Subject: Re: Whats eating my cpu ?

On Thursday 07 June 2007 11:16, Ian Lord wrote:
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Ian Lord
 Sent: 7 juin 2007 04:14
 To: freebsd-questions@freebsd.org
 Subject: Whats eating my cpu ?

 Isnt top suppose to show all the process eating cpu ?

 System takes 20% cpu and I don't see in which process. any idea ?


 ~
 Oops, it's not system, it's interrupt... is there a way to know what is
 wrong with my interrupts ?


Yes, try systat -vm 1.

Also, what about your network?

Nikos
~~

Thanks for the quick response... 

Most of the interrupts avg 1000 are with clk, I guess this is the clock... I
guess it has something to do with the fact I'm currently running under
Microsoft Virtual Server

Interrupts
1143 total
986 0: clk
 1: atkb
128 8: rtc
3 11: de0
26 14: ata
15: ata

I'll try to find a way to reduce them cause my system is crawling, I guess
it's because of the interrupts

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

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


Re: Whats eating my cpu ?

2007-06-07 Thread Nikos Vassiliadis
On Thursday 07 June 2007 11:35, Ian Lord wrote:
 Most of the interrupts avg 1000 are with clk, I guess this is the
 clock... I guess it has something to do with the fact I'm currently
 running under Microsoft Virtual Server

Ah it's a virtual machine! Add to /boot/loader.conf kern.hz=100.
This will make the kernel tick 100 time per second. The default is
1000 times per second, which might be a bit high for your virtual
machine server. Don't know if it's going to affect your situation,
but it's good to set it this way, anyway.

Most virtual machine users, face problems with timing...

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


Re: Whats eating my cpu ?

2007-06-07 Thread Nikos Vassiliadis
On Thursday 07 June 2007 12:16, Nikos Vassiliadis wrote:
 On Thursday 07 June 2007 11:35, Ian Lord wrote:
  Most of the interrupts avg 1000 are with clk, I guess this is the
  clock... I guess it has something to do with the fact I'm currently
  running under Microsoft Virtual Server

 Ah it's a virtual machine! Add to /boot/loader.conf kern.hz=100.
 This will make the kernel tick 100 time per second. The default is
 1000 times per second, which might be a bit high for your virtual
 machine server. Don't know if it's going to affect your situation,
 but it's good to set it this way, anyway.

 Most virtual machine users, face problems with timing...

Forgot to mention that you have to reboot,
for the change to take effect.

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