[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Google
  Web www.spinics.net

load average: 75.05, 72.27, 62.04



Comparing two servers - both Dell 2650's:

S1: 2x2.8Ghz CPU's - Debian Sarge with exim 4.31 and 2.4.24 kernel
S2: 2x3.2Ghz CPU's - Debian Woody with backports on exim (4.32),
		     Spamassassin (2.63), shorewall (1.4.8) and 2.4.26 kernel

S1 is receiving mail from outside, scan it for spam and deliver it to
two other mail servers inside the firewall.

S2 recveive mail from both outside and inside, delivers to a worldwide
and inside the campus, do spam- and virusscanning (uvscan).

The configuration for exim is different but for spamassassin it is
practically identical.

As you can see from the statistics below there is a problem on S2.

A few questions:

1. Why does S2 use so much resources for the same programs?
2. Why does S1 have only two or three process running while on S2 it
   is up to 70?
3. How do I find out what is causing the high system CPU-usage on S2?
4. Why does S2 swop so much while there is still about 1 Gig of ram
   free?
5. It seems that both spamassassin and exim uses much more resources
   on S2 while S1 is handling more messages.  How do I reconcile that?


Statistics for the past 24 hours:
             Emails Received Sent  Rejected at smtp-time
S1	            26471    28341 22713
S2		    18390    19020 20264

On S1 the load average looks like this:

top - 11:35:08 up 18 days,  1:29,  3 users,  load average: 1.08, 1.01, 0.95
Tasks: 109 total,   2 running, 107 sleeping,   0 stopped,   0 zombie
Cpu(s):  10.3% user,   3.2% system,   0.0% nice,  86.5% idle
Mem:   3883092k total,  2677560k used,  1205532k free,   160556k buffers
Swap:  2000084k total,     2132k used,  1997952k free,  2220484k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
 4194 Debian-e  12   0  2992 2984 2632 S  2.3  0.1   0:00.08 exim4
   43 root      10   0     0    0    0 S  1.0  0.0  98:41.57 kjournald
  628 postgres   9   0  2152 1980 1868 S  0.7  0.1   8:11.41 postmaster
30295 spamd     14   0 33224  32m  31m S  0.7  0.9   0:22.35 spamd
 3190 Debian-e   9   0  2796 2788 2600 S  0.7  0.1   0:00.80 exim4
  393 root       9   0   612  612  516 S  0.3  0.0  35:32.20 syslogd
 4929 Debian-e   9   0  2808 2800 2616 S  0.3  0.1   0:00.02 exim4
 4987 spamd     10   0  1044 1044  812 R  0.3  0.0   0:00.03 top
 5030 root      11   0  2544 2536 2400 S  0.3  0.1   0:00.01 exim4
 5032 root      13   0  2544 2536 2400 S  0.3  0.1   0:00.01 exim4
 5037 root      14   0  2544 2536 2396 S  0.3  0.1   0:00.01 exim4
 5041 spamd     15   0 33496  32m  30m R  0.3  0.9   0:00.01 spamd

While on S2:

 11:21:08 up 1 day, 20:02,  4 users,  load average: 75.05, 72.27, 62.04
364 processes: 281 sleeping, 71 running, 12 zombie, 0 stopped
CPU states:   0.5% user,  98.2% system,   1.3% nice,   0.1% idle
Mem:   3881872K total,  3773048K used,   108824K free,     8500K buffers
Swap:  2097136K total,  2097136K used,        0K free,    84160K cached

  PID USER     PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME COMMAND
 7362 Debian-e  20   0  9112 9104  1736 R     8.7  0.2   0:17 uvscan
 7926 Debian-e  20   0  2144 1980  1876 R     8.6  0.0   0:04 exim4
 7551 Debian-e  20   0  5260 5256   956 R     8.5  0.1   0:13 uvscan
32747 Debian-e  20   0  2536 2284  2104 R     8.3  0.0   0:32 exim4
21882 Debian-e  20   0  2504 2108  2096 R     8.2  0.0   0:51 exim4
 7341 root      17   0   500  500   384 R     8.2  0.0   0:16 grep
 1197 Debian-e  20   0  2092 1784  1760 R     8.1  0.0   2:23 exim4
 4588 Debian-e  20   0  2496 2096  2044 R     8.1  0.0   0:50 exim4
 8086 Debian-e  14   0  1960 1956   956 R     7.9  0.0   0:00 uvscan
 7708 Debian-e  20   0  5652 5648  1012 R     7.8  0.1   0:07 uvscan
 8010 Debian-e  20   0  2112 1924  1860 R     7.7  0.0   0:02 exim4
 7602 Debian-e  20   0  2332 2196  2020 R     7.5  0.0   0:09 exim4
 8037 Debian-e  20   0  2132 1980  1868 R     7.5  0.0   0:04 exim4
 8084 Debian-e  19   0  2092 1788  1768 R     7.5  0.0   0:01 exim4
 2179 Debian-e  20   0  2496 2104  2052 R     7.4  0.0   0:40 exim4
 7771 Debian-e  20   0  2416 2412   956 R     7.4  0.0   0:07 uvscan
 8013 Debian-e  20   0  2680 2544  2216 R     7.4  0.0   0:04 exim4
 7607 Debian-e  20   0  5376 5372   956 R     7.3  0.1   0:12 uvscan
 4495 Debian-e  20   0  2544 2408  2260 R     7.1  0.0   0:23 exim4
 7723 Debian-e  20   0  5656 5652  1012 R     7.1  0.1   0:07 uvscan

vmstat on S2 shows:

11:41:20 js@maties6:/usr/local/src$ vmstat 5
   procs                      memory    swap          io     system
cpu
 r  b  w   swpd   free   buff  cache  si  so    bi    bo   in    cs  us  sy
id
51  1  2 2097136 108820  10144  65608   3   6    7    39   34     7  52   4
45
35  2  0 2097132 131100  10420  65416 361  10 1030   514  564   562  23  77
0
32  1  1 2097136 118696  10896  73756 756  23 2840  1071 1170  1089  41  59
0
36  0  1 2097136 115260  11380  90124 1766 245 5650 1525 1963  1834  76  24
0
69  1  1 2097136 108644  11344  91468  98 272   388  506  415   259  10  90
0
80  1  2 2097136 108896  11376  91408   6  35    10   62  216    91   2  98
0

I hope some of you can help me to solve his one.

Regards
Johann
--
Johann Spies          Telefoon: 021-808 4036
Informasietegnologie, Universiteit van Stellenbosch

     "Thy word have I hid in mine heart, that I might not
      sin against thee."          Psalm 119:11

[demime 1.01d removed an attachment of type application/pgp-signature which had a name of signature.asc]
_______________________________________________
LinuxManagers mailing list - http://www.linuxmanagers.org
submissions: LinuxManagers@linuxmanagers.org
subscribe/unsubscribe: http://www.linuxmanagers.org/mailman/listinfo/linuxmanagers

[Home]     [Kernel List]     [Linux SCSI]     [Video 4 Linux]     [Linux Admin]     [Yosemite News]     [Motherboards]

Powered by Linux