On 1 Jun 2006, at 17:49, Davide Libenzi wrote:

> 
> On Wed, 31 May 2006, David Lord wrote:
> 
> > I'm not sure of exact cause but I'm getting fairly regular coredumps
> > from XMail on NetBSD-3.0. Whist the fd-open files issue on my
> > FreeBSD setup isn't apparent it is still an annoyance and if
> > anything was a little more frequent, 2 - 3 days vs 2 - 3 weeks.
> >
> > I've been able to produce a coredump by a kernel compile and have
> > noticed that attempting to send to multiple domains or make multiple
> > pop3 connections. This was apparent to a much lesser extent on
> > FreeBSD. NetBSD server has 64 MB ram and vmstat has avm = 35332 fre
> > = 7976 whilst FreeBSD one has 128 MB with avm = 47528 and fre =
> > 25464.
> >
> > So my best guess was a problem memory and reducing the values of
> > SmtpMinVirtMemSpace and Pop3MinVirtMemSpace from 10000 to 5000 in
> > steps of 1000 seems to confirm this. At around 8000 an improvement
> > in that starting a kernel compile didn't produce an immediate
> > coredump and at 7000 some compiles completed and so far at 5000 I've
> > not had a coredump.
> >
> > So are SmtpMinVirtMemSpace and Pop3MinVirtMemSpace where the problem
> > lies and if so what values should I be using or could eliminating
> > the problem require adjusting one of the NetBSD memory sysctls?
> 
> Hmmm, does NetBSD have an OOM killer in the kernel? Can you build
> XMail in debug mode and send a gdb `bt full`?

Sorry I'll have to put this on hold for a while as configuring 
replacement server which is a mini-itx with 1 GB ram. I'll get the 
info (for which I'd need to do some reading up) after new system is 
online. I have a cron job that cleans up and restarts xmail should it 
stop but in normal server operation it's only when there are multiple 
smtp or pop3 connections being made.

I did notice a couple of sysctls that might be relevant,
eg. sysctl vm.anonmin = 10. This is minimum vm available as % of 
total so 6400 KB which might explain why I've not had a coredump so 
far with *MinVirtMemSpace in server.tab set to 4000.

I might try another kernel compile with the sysctl = 20% and 
*MinVirtMemSpace back to 10000 which ensured XMail would coredump on 
starting the compile.

Regards

David

-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]

Reply via email to