List Info

Thread: FreeBSD-6.1 reboots due to high mbufs




FreeBSD-6.1 reboots due to high mbufs
country flaguser name
Nepal
2007-03-30 01:43:58
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Dear All,

I am quite new to FreeBSD in general and I also don't have
much experience and knowledge as required by this mailing
list. I had posted this on freebsd-questions but till now
have not received any kind of feedback which is fine. 

I need some help and suggestions from this mailing list if
permissible. I am sorry if I am posting this to the wrong
mailing list. 

I have squid proxy server running on a FreeBSD-6.1 (amd)
box. I have been facing this problem for sometime now. It's
related to mbufs. For some reasons, my mbufs usage is
extremely high. This high mbufs usage causes slow responses
from Squid and in rare occasions, it even causes my server
to reboot or locks out SSH sessions. 

This FreeBSD-6.1 squid box serves about 3000-4000 users.

Server specs are:

Dell 430 Intel(R) Pentium(R) D CPU 3.00GHz-Dual CPU
real memory  = 2145959936 (2046 MB)
bge0: <Broadcom BCM5751 Gigabit Ethernet
traffic load: 10Mb/s (through satellite)

rootserver# netstat -m

66713/2677/69390 mbufs in use (current/cache/total)
66686/2210/68896/0 mbuf clusters in use
(current/cache/total/max)
66686/2178 mbuf+clusters out of packet secondary zone in use
(current/cache)
0/0/0/0 4k (page size) jumbo clusters in use
(current/cache/total/max)
0/0/0/0 9k jumbo clusters in use (current/cache/total/max)
0/0/0/0 16k jumbo clusters in use (current/cache/total/max)
150050K/5089K/155139K bytes allocated to network
(current/cache/total)
0/0/0 requests for mbufs denied
(mbufs/clusters/mbuf+clusters)
0/0/0 requests for jumbo clusters denied (4k/9k/16k)
0/0/0 sfbufs in use (current/peak/max)
0 requests for sfbufs denied
0 requests for sfbufs delayed
0 requests for I/O initiated by sendfile
0 calls to protocol drain routines


/etc/sysctl.conf:

kern.maxfilesperproc=8192
kern.ipc.somaxconn=8192
kern.maxprocperuid=8192
net.inet.ip.portrange.hifirst=10000
net.inet.ip.portrange.first=30000
net.inet.ip.portrange.last=65535
net.inet.tcp.recvspace=65535
net.inet.tcp.sendspace=65535
net.inet.tcp.blackhole=2
net.inet.udp.blackhole=1
net.inet.ip.fw.verbose_limit=5000
net.inet.icmp.icmplim=0
net.inet.tcp.msl=3000
net.isr.direct=1
vfs.read_max=16

/boot/loader.conf:

kern.ipc.nmbclusters=0
kern.maxusers=0
kern.maxfiles=16384
kern.maxproc=8192

Relevant Kernel Options:

options         IPFIREWALL              
options         IPFIREWALL_VERBOSE     
options         IPFIREWALL_FORWARD      
options         IPFIREWALL_VERBOSE_LIMIT=5000    
options         IPFIREWALL_FORWARD_EXTENDED     

options         MSGMNB=16384
options         MSGMNI=41
options         MSGSEG=2049
options         MSGSSZ=64
options         MSGTQL=2048
options         SHMSEG=128
options         SHMMNI=192
options         SHMMAX=33554432
options         SHMMIN=1
options         SHMALL=8192

options HZ=1000  #Polling Enabled 


Note: Running IPFW. Also my other FreeBSD-4.x servers don't
seem to suffer from this problem. They have almost the same
IPFW, Squid and Sysctl configs. 

Any feedback and suggestions will be highly appreciated. 

Thanking you...


- -- 


With best regards and good wishes,

Yours sincerely,

Tek Bahadur Limbu

(TAG/TDG Group)
Jwl Systems Department

Worldlink Communications Pvt. Ltd.

Jawalakhel, Nepal

http://www.wlink.com.np
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (FreeBSD)

iD8DBQFGDLGuVrOl+eVhOvYRAk8dAJ9dumhWCNTp6iHUy5PsQ0ie2OdMqQCg
jG8u
eTxXgRCNSe3R2mmTGSbuSqo=
=mVGh
-----END PGP SIGNATURE-----
_______________________________________________
freebsd-performancefreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-p
erformance
To unsubscribe, send any mail to
"freebsd-performance-unsubscribefreebsd.org"

Re: FreeBSD-6.1 reboots due to high mbufs
country flaguser name
United States
2007-03-30 03:25:06
At 02:43 AM 3/30/2007, Tek Bahadur Limbu wrote:

>I have squid proxy server running on a FreeBSD-6.1 (amd)
box. I have 
>been facing this problem for sometime now. It's related
to mbufs. 
>For some reasons, my mbufs usage is extremely high. This
high mbufs 
>usage causes slow responses from Squid and in rare
occasions, it 
>even causes my server to reboot or locks out SSH
sessions.
>
>This FreeBSD-6.1 squid box serves about 3000-4000
users.
>

Lower your net.inet.tcp.{recv,send}space to 32768, or 16384





_______________________________________________
freebsd-performancefreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-p
erformance
To unsubscribe, send any mail to
"freebsd-performance-unsubscribefreebsd.org"

Re: FreeBSD-6.1 reboots due to high mbufs
country flaguser name
Nepal
2007-04-03 02:10:20
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Fri, 30 Mar 2007 04:25:06 -0400
Gary Stanley <garyvelocity-servers.net> wrote:

> At 02:43 AM 3/30/2007, Tek Bahadur Limbu wrote:
> 
> >I have squid proxy server running on a FreeBSD-6.1
(amd) box. I have 
> >been facing this problem for sometime now. It's
related to mbufs. 
> >For some reasons, my mbufs usage is extremely high.
This high mbufs 
> >usage causes slow responses from Squid and in rare
occasions, it 
> >even causes my server to reboot or locks out SSH
sessions.
> >
> >This FreeBSD-6.1 squid box serves about 3000-4000
users.
> >
> 
> Lower your net.inet.tcp.{recv,send}space to 32768, or
16384

Hi Gary,

I am sorry for the late reply.

I had lowered my net.inet.tcp.{recv,send}space to
16384/32768.

It seemed to help lower the mbufs usage at first but after
about 2-3 days, the mbufs usage is almost the same. 

I am looking into the sysctls forwarded by Alessandro. 

I will continue to monitor net.inet.tcp.{recv,send}space
values too. 

Thanking all of you. 



> 
> 
> 
> 
> 
> 


- -- 


With best regards and good wishes,

Yours sincerely,

Tek Bahadur Limbu

(TAG/TDG Group)
Jwl Systems Department

Worldlink Communications Pvt. Ltd.

Jawalakhel, Nepal

http://www.wlink.com.np
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (FreeBSD)

iD8DBQFGEf3cVrOl+eVhOvYRAiF+AJ9FkAcyTeAz0FuF08UUHdUAae+h0QCd
GcPq
TP87tnWSVvjsDQXask8KWlY=
=P51Y
-----END PGP SIGNATURE-----
_______________________________________________
freebsd-performancefreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-p
erformance
To unsubscribe, send any mail to
"freebsd-performance-unsubscribefreebsd.org"

RE: FreeBSD-6.1 reboots due to high mbufs
country flaguser name
United States
2007-04-14 19:37:27
Hi,

Seems to be an old posting. Were you able to solve this
problem. What is 
your ifconfig output.

Sunil Sunder Raj
http://daemon.in


>From: Tek Bahadur Limbu <teklimbuwlink.com.np>
>To: freebsd-performancefreebsd.org
>Subject: FreeBSD-6.1 reboots due to high mbufs
>Date: Fri, 30 Mar 2007 12:28:58 +0545
>
>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>Dear All,
>
>I am quite new to FreeBSD in general and I also don't
have much experience 
>and knowledge as required by this mailing list. I had
posted this on 
>freebsd-questions but till now have not received any
kind of feedback which 
>is fine.
>
>I need some help and suggestions from this mailing list
if permissible. I 
>am sorry if I am posting this to the wrong mailing
list.
>
>I have squid proxy server running on a FreeBSD-6.1 (amd)
box. I have been 
>facing this problem for sometime now. It's related to
mbufs. For some 
>reasons, my mbufs usage is extremely high. This high
mbufs usage causes 
>slow responses from Squid and in rare occasions, it even
causes my server 
>to reboot or locks out SSH sessions.
>
>This FreeBSD-6.1 squid box serves about 3000-4000
users.
>
>Server specs are:
>
>Dell 430 Intel(R) Pentium(R) D CPU 3.00GHz-Dual CPU
>real memory  = 2145959936 (2046 MB)
>bge0: <Broadcom BCM5751 Gigabit Ethernet
>traffic load: 10Mb/s (through satellite)
>
>rootserver# netstat -m
>
>66713/2677/69390 mbufs in use (current/cache/total)
>66686/2210/68896/0 mbuf clusters in use
(current/cache/total/max)
>66686/2178 mbuf+clusters out of packet secondary zone in
use 
>(current/cache)
>0/0/0/0 4k (page size) jumbo clusters in use
(current/cache/total/max)
>0/0/0/0 9k jumbo clusters in use
(current/cache/total/max)
>0/0/0/0 16k jumbo clusters in use
(current/cache/total/max)
>150050K/5089K/155139K bytes allocated to network
(current/cache/total)
>0/0/0 requests for mbufs denied
(mbufs/clusters/mbuf+clusters)
>0/0/0 requests for jumbo clusters denied (4k/9k/16k)
>0/0/0 sfbufs in use (current/peak/max)
>0 requests for sfbufs denied
>0 requests for sfbufs delayed
>0 requests for I/O initiated by sendfile
>0 calls to protocol drain routines
>
>
>/etc/sysctl.conf:
>
>kern.maxfilesperproc=8192
>kern.ipc.somaxconn=8192
>kern.maxprocperuid=8192
>net.inet.ip.portrange.hifirst=10000
>net.inet.ip.portrange.first=30000
>net.inet.ip.portrange.last=65535
>net.inet.tcp.recvspace=65535
>net.inet.tcp.sendspace=65535
>net.inet.tcp.blackhole=2
>net.inet.udp.blackhole=1
>net.inet.ip.fw.verbose_limit=5000
>net.inet.icmp.icmplim=0
>net.inet.tcp.msl=3000
>net.isr.direct=1
>vfs.read_max=16
>
>/boot/loader.conf:
>
>kern.ipc.nmbclusters=0
>kern.maxusers=0
>kern.maxfiles=16384
>kern.maxproc=8192
>
>Relevant Kernel Options:
>
>options         IPFIREWALL
>options         IPFIREWALL_VERBOSE
>options         IPFIREWALL_FORWARD
>options         IPFIREWALL_VERBOSE_LIMIT=5000
>options         IPFIREWALL_FORWARD_EXTENDED
>
>options         MSGMNB=16384
>options         MSGMNI=41
>options         MSGSEG=2049
>options         MSGSSZ=64
>options         MSGTQL=2048
>options         SHMSEG=128
>options         SHMMNI=192
>options         SHMMAX=33554432
>options         SHMMIN=1
>options         SHMALL=8192
>
>options HZ=1000  #Polling Enabled
>
>
>Note: Running IPFW. Also my other FreeBSD-4.x servers
don't seem to suffer 
>from this problem. They have almost the same IPFW, Squid
and Sysctl 
>configs.
>
>Any feedback and suggestions will be highly
appreciated.
>
>Thanking you...
>
>
>- --
>
>
>With best regards and good wishes,
>
>Yours sincerely,
>
>Tek Bahadur Limbu
>
>(TAG/TDG Group)
>Jwl Systems Department
>
>Worldlink Communications Pvt. Ltd.
>
>Jawalakhel, Nepal
>
>http://www.wlink.com.np
>-----BEGIN PGP SIGNATURE-----
>Version: GnuPG v1.4.2.2 (FreeBSD)
>
>iD8DBQFGDLGuVrOl+eVhOvYRAk8dAJ9dumhWCNTp6iHUy5PsQ0ie2OdM
qQCgjG8u
>eTxXgRCNSe3R2mmTGSbuSqo=
>=mVGh
>-----END PGP SIGNATURE-----
>_______________________________________________
>freebsd-performancefreebsd.org mailing list
>http://lists.freebsd.org/mailman/listinfo/freebsd-p
erformance
>To unsubscribe, send any mail to 
>"freebsd-performance-unsubscribefreebsd.org"

____________________________________________________________
_____
Interest Rates Fall Again! $430,000 Mortgage for $1,399/mo -
Calculate new 
payment 
http://www.lowermybills.com/lre/i
ndex.jsp?sourceid=lmb-9632-18679&moid=7581

_______________________________________________
freebsd-performancefreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-p
erformance
To unsubscribe, send any mail to
"freebsd-performance-unsubscribefreebsd.org"

[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )