Re: System Crash (freebsd+clamscan) !

2003-12-22 Thread Steve Bertrand
On Sun, 2003-12-21 at 23:46, Bikrant wrote:
> On Monday 22 December 2003 03:45, Derrick Ryalls wrote:
> > > Hi,
> > > I'm running qmail+qmail-scanner+clamscan on freebsd 4.9. The
> > > system is P-IV
> > > with 1 GB of RAM and 1 GB Swap.
> > > My system crashed twice with the following message in my syslog.
> > >
> > > Dec 21 11:19:19 qmail-scanner /kernel: pid 57024 (clamscan),
> > > uid 1009, was
> > > killed: out of swap space
> > > Dec 21 11:19:23 qmail-scanner last message repeated 6 times
> > > Dec 21 11:20:14 qmail-scanner /kernel:
> > > swap_pager_getswapspace: failed Dec 21 11:20:16 qmail-scanner
> > > last message repeated 516 times Dec 21 11:20:16 qmail-scanner
> > > /kernel: pid 57204 (clamscan), uid 1009, was
> > > killed: out of swap space
> >
> > What is the output of:
> > %df -H
> >
> > Also, check the top section of top
> >
> > Here is mine:
> >
> > 45 processes:  3 running, 42 sleeping
> > CPU states:  0.0% user,  0.0% nice,  0.0% system,  0.0% interrupt,  100%
> > idle
> > Mem: 113M Active, 253M Inact, 88M Wired, 13M Cache, 60M Buf, 32M Free
> > Swap: 512M Total, 100K Used, 512M Free
> > ^
> > list of swap space usage.
> Thanks a lot for the response.
> I've been regularly monitoring the swap usage and I never saw anything above 
> 10MB. Unfortunately I couldn't access my system when it crashed!!
> Now i've increased the swap space to 2GB.
> 

You may want to increase the amount of physical RAM as well, so swap
isn't used as frequently.

Steve

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


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


Re: System Crash (freebsd+clamscan) !

2003-12-21 Thread Bikrant
On Monday 22 December 2003 03:45, Derrick Ryalls wrote:
> > Hi,
> > I'm running qmail+qmail-scanner+clamscan on freebsd 4.9. The
> > system is P-IV
> > with 1 GB of RAM and 1 GB Swap.
> > My system crashed twice with the following message in my syslog.
> >
> > Dec 21 11:19:19 qmail-scanner /kernel: pid 57024 (clamscan),
> > uid 1009, was
> > killed: out of swap space
> > Dec 21 11:19:23 qmail-scanner last message repeated 6 times
> > Dec 21 11:20:14 qmail-scanner /kernel:
> > swap_pager_getswapspace: failed Dec 21 11:20:16 qmail-scanner
> > last message repeated 516 times Dec 21 11:20:16 qmail-scanner
> > /kernel: pid 57204 (clamscan), uid 1009, was
> > killed: out of swap space
>
> What is the output of:
> %df -H
>
> Also, check the top section of top
>
> Here is mine:
>
> 45 processes:  3 running, 42 sleeping
> CPU states:  0.0% user,  0.0% nice,  0.0% system,  0.0% interrupt,  100%
> idle
> Mem: 113M Active, 253M Inact, 88M Wired, 13M Cache, 60M Buf, 32M Free
> Swap: 512M Total, 100K Used, 512M Free
> ^
> list of swap space usage.
Thanks a lot for the response.
I've been regularly monitoring the swap usage and I never saw anything above 
10MB. Unfortunately I couldn't access my system when it crashed!!
Now i've increased the swap space to 2GB.

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

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


RE: System Crash (freebsd+clamscan) !

2003-12-21 Thread Derrick Ryalls
> 
> Hi,
> I'm running qmail+qmail-scanner+clamscan on freebsd 4.9. The 
> system is P-IV 
> with 1 GB of RAM and 1 GB Swap.
> My system crashed twice with the following message in my syslog.
> 
> Dec 21 11:19:19 qmail-scanner /kernel: pid 57024 (clamscan), 
> uid 1009, was 
> killed: out of swap space
> Dec 21 11:19:23 qmail-scanner last message repeated 6 times
> Dec 21 11:20:14 qmail-scanner /kernel: 
> swap_pager_getswapspace: failed Dec 21 11:20:16 qmail-scanner 
> last message repeated 516 times Dec 21 11:20:16 qmail-scanner 
> /kernel: pid 57204 (clamscan), uid 1009, was 
> killed: out of swap space

What is the output of:
%df -H

Also, check the top section of top

Here is mine:

45 processes:  3 running, 42 sleeping
CPU states:  0.0% user,  0.0% nice,  0.0% system,  0.0% interrupt,  100%
idle
Mem: 113M Active, 253M Inact, 88M Wired, 13M Cache, 60M Buf, 32M Free
Swap: 512M Total, 100K Used, 512M Free
^
list of swap space usage.


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


System Crash (freebsd+clamscan) !

2003-12-21 Thread bikrant
Hi,
I'm running qmail+qmail-scanner+clamscan on freebsd 4.9. The system is P-IV 
with 1 GB of RAM and 1 GB Swap.
My system crashed twice with the following message in my syslog.

Dec 21 11:19:19 qmail-scanner /kernel: pid 57024 (clamscan), uid 1009, was 
killed: out of swap space
Dec 21 11:19:23 qmail-scanner last message repeated 6 times
Dec 21 11:20:14 qmail-scanner /kernel: swap_pager_getswapspace: failed
Dec 21 11:20:16 qmail-scanner last message repeated 516 times
Dec 21 11:20:16 qmail-scanner /kernel: pid 57204 (clamscan), uid 1009, was 
killed: out of swap space

I know the system had worked under heavy loads but the last time it crashed 
during off hours (ie. smtp connection was quite low compared to peak hours). 
I guess the problem occured due to some malformed attachments but I'm not 
sure. Did anyone ran through this problem before? 
Below I've included my qmail, sysctl and loader.conf settings.

This is how is run qmil-smtpd /var/qmail/supervise/qmail-smtpd/run:
#!/bin/sh
QMAILDUID=`id -u qmaild`
NOFILESGID=`id -g qmaild`
MAXSMTPD=500
LOCAL=`head -1 /var/qmail/control/me`

exec /usr/local/bin/softlimit -m 5000 \
/usr/local/bin/tcpserver -v -R -l "$LOCAL" -x /etc/tcp.smtp.cdb -c 
"$MAXSMTPD" \
-u "$QMAILDUID" -g "$NOFILESGID" 0 smtp /var/qmail/bin/qmail-smtpd 
2>&1

qmail-scanner# cat /etc/tcp.smtp
127.:allow,RELAYCLIENT="",QMAILQUEUE="/var/qmail/bin/qmail-scanner-queue.pl"
202.79.32.:allow,RELAYCLIENT="",QMAILQUEUE="/var/qmail/bin/qmail-scanner-queue.pl"
202.79.36.:allow,RELAYCLIENT="",QMAILQUEUE="/var/qmail/bin/qmail-scanner-queue.pl"

sysctl settings
kern.maxfilesperproc=8192
kern.ipc.somaxconn=8192
kern.maxfiles=65536
kern.maxprocperuid=8192

and boot/loader.conf
kern.ipc.nmbclusters="16384"
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"