Koozali.org: home of the SME Server

Server caving in - from what?

Offline holger

  • *
  • 11
  • +0/-0
Server caving in - from what?
« on: January 07, 2008, 11:24:07 PM »
Hi
I've been running my Via C3 server now for quite a while.
-----------------------------------
CPU: Centaur VIA Nehemiah stepping 0a
-----------------------------------

For the last half year or so it's been caving in on a regular basis - approx once or twice a month. It may be from spam bombs.

load will go way up to 15-20 or more:
-----------------------------------
top - 22:34:45 up 3 days,  3:59,  1 user,  load average: 17.19, 13.59, 11.43
Tasks: 217 total,   1 running, 216 sleeping,   0 stopped,   0 zombie
Cpu(s):  1.6% us,  1.3% sy,  0.0% ni,  0.0% id, 97.0% wa,  0.0% hi,  0.0% si
Mem:    191004k total,   185896k used,     5108k free,      980k buffers
Swap:  2386808k total,   524084k used,  1862724k free,    20276k cached

  PID USER      PR  NI %CPU    TIME+  %MEM  VIRT  RES  SHR S COMMAND
 1629 root      16   0  1.3   0:06.89  0.5  2648 1004  696 R top
 1767 stunnel   18   0  0.7   0:00.02  0.7  4496 1336 1064 S stunnel-tls
 1772 stunnel   19   0  0.3   0:00.01  0.7  4532 1336 1064 S stunnel-tls
-----------------------------------

Two spam processes will start consuming loads of mem:
-----------------------------------
1877 spamd     16   0  0.0   0:01.63 15.2 53764  28m 2092 S spamd
-----------------------------------

And as can be seen above the server will be 97% or so "waiting". Can't figure out what it is "waiting" for though!?

It will stop serving http, imap, smtp and smb - and ssh will be hard/slow to establish.

Suggestions for how to diagnose the problem - or even better solve it - are welcome.

Thank you. :D

Offline byte

  • *
  • 2,183
  • +2/-0
Re: Server caving in - from what?
« Reply #1 on: January 07, 2008, 11:40:37 PM »
I'd add more memory (RAM) go at least 512Mb if you can, specifically as you have spamassassin running as well.
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

Offline holger

  • *
  • 11
  • +0/-0
Re: Server caving in - from what?
« Reply #2 on: January 08, 2008, 12:29:39 AM »
I'd add more memory (RAM) go at least 512Mb if you can, specifically as you have spamassassin running as well.
Thanks for your reply.

So you think it's the evil swap death - and the only real solution is to just add more RAM?
 8-)


Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Server caving in - from what?
« Reply #3 on: January 08, 2008, 03:36:07 AM »
Thanks for your reply.

So you think it's the evil swap death - and the only real solution is to just add more RAM?
 8-)



Yes. The 'waiting' is waiting for disk, to swap stuff in and out. Look at how much swap space is being used. Ideally no swap will be used.

Offline mmccarn

  • *
  • 2,656
  • +10/-0
Re: Server caving in - from what?
« Reply #4 on: January 08, 2008, 02:50:33 PM »
I had similar issues that were eliminated by upgrading from 256MB to 512MB.

Offline holger

  • *
  • 11
  • +0/-0
Re: Server caving in - from what?
« Reply #5 on: January 08, 2008, 09:02:41 PM »
Hmm - my old 6.5 server had no problems running on 128M. But then spamming was nowhere near as heavy.

Well, thanks again. I've ordered 1G just to be on the safe side. Will report back... :-)

Offline raem

  • *
  • 3,972
  • +4/-0
Re: Server caving in - from what?
« Reply #6 on: January 09, 2008, 07:05:52 AM »
holger

You obviously have insufficient RAM, but you may also experience overload issues caused by spam processing. If you do not have RBL lists enabled see these tips
http://forums.contribs.org/index.php?topic=39639.0
...

Offline holger

  • *
  • 11
  • +0/-0
Re: Server caving in - from what?
« Reply #7 on: January 09, 2008, 09:03:41 PM »
Thanks,

I think I've already followed those:
http://wiki.contribs.org/Email

Code: [Select]
# config show qpsmtpd
qpsmtpd=service
    Bcc=disabled
    BccMode=cc
    BccUser=maillog
    DNSBL=enabled
    LogLevel=8
    MaxScannerSize=25000000
    RBLList=zen.spamhaus.org:whois.rfc-ignorant.org:dnsbl.njabl.org
    RHSBL=enabled
    RequireResolvableFromHost=no
    SBLList=dsn.rfc-ignorant.org
    access=public
    status=enabled

And
Code: [Select]
# config print spamassassin
spamassassin=service|DNSAvailable|yes|MessageRetentionTime|90|OkLanguages|all|OkLocales|all|RejectLevel|12| (...linebreak...)
ReportSafe|0|Sensitivity|custom|SkipRBLChecks|0|SortSpam|enabled|Subject|[SPAM]|SubjectTag|enabled|TagLevel|4|UseBayes|1|status|enabled

Offline holger

  • *
  • 11
  • +0/-0
Re: Server caving in - from what?
« Reply #8 on: January 15, 2008, 07:37:31 PM »
Just for the record. 1G RAM did the trick.
Everything is snappier, especially webmail which used to be dead slow and the system load is generally way lower than what it used to be.

Thanks and cheers :pint: