NetBSD Problem Report #26562

Received: (qmail 13137 invoked by uid 605); 5 Aug 2004 18:41:31 -0000
Message-Id: <200408051827.i75IRkY3018403@Server.HEH.Uni-Oldenburg.DE>
Date: Thu, 5 Aug 2004 20:27:46 +0200 (MEST)
From: Thilo Manske <thilo@HEH.Uni-Oldenburg.DE>
Sender: gnats-bugs-owner@NetBSD.org
Reply-To: Thilo.Manske@HEH.Uni-Oldenburg.DE
To: gnats-bugs@gnats.NetBSD.org
Subject: mbuf leakage - maybe ALTQ related
X-Send-Pr-Version: 3.95

>Number:         26562
>Category:       kern
>Synopsis:       mbuf leakage
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    kern-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Aug 05 18:42:00 +0000 2004
>Closed-Date:    Mon Mar 05 16:38:42 +0000 2018
>Last-Modified:  Mon Mar 05 16:38:42 +0000 2018
>Originator:     Thilo Manske
>Release:        NetBSD 2.0G
>Organization:
>Environment:
System: NetBSD Server 2.0G NetBSD 2.0G (HEHOL) #24: Sat Jul 31 01:05:08 MEST 2004 thilo@Server:/sys/arch/i386/compile/HEHOL i386
Architecture: i386
Machine: i386

Network related options:
options         NMBCLUSTERS=4096
options         SOSEND_NO_LOAN
options         GATEWAY         # packet forwarding
options         INET            # IP + ICMP + TCP + UDP
options         ALTQ            # Manipulate network interfaces' output queues
#options        ALTQ_BLUE       # Stochastic Fair Blue
options         ALTQ_CBQ        # Class-Based Queueing
#options        ALTQ_CDNR       # Diffserv Traffic Conditioner
#options        ALTQ_FIFOQ      # First-In First-Out Queue
#options        ALTQ_FLOWVALVE  # RED/flow-valve (red-penalty-box)
options         ALTQ_HFSC       # Hierarchical Fair Service Curve
#options        ALTQ_LOCALQ     # Local queueing discipline
options         ALTQ_PRIQ       # Priority Queueing
options         ALTQ_RED        # Random Early Detection
#options        ALTQ_RIO        # RED with IN/OUT
#options        ALTQ_WFQ        # Weighted Fair Queueing

SOSEND_NO_LOAD was added to help the situation (see below) but it didn't
make any difference.

>Description:
This system is used as a router, web proxy, webserver, mail server, DNS
server and some other stuff for about 150 students (i.e. a lot of network
traffic is generated by and routed through this box). On both of its
physical network interfaces (3c905 and 3c900) ALTQ is used (CBQ+PRIQ+RED, no
HFSC at the moment) to shape and prioritize the network traffic.

It wasn't possible to keep this system up for more than three weeks in this
use. With earlier versions of NetBSD (1.5+ALTQ patch) the symptoms were so
strange (crashes, freezes, or looping kernel messages from the SCSI
interface driver on the console) that I blamed rotting hardware for it but
after ALTQ got integrated into -current and I upgraded to 1.6ZI and later
2.0G the system didn't die that way, only network connections did and a
reboot was the only way I found to get out of that situations.

This made me gather some statistics:

The graph below shows the number of mbufs allocated to data and packet headers
plotted over the system's uptime (The data was collected by  mrtg running a
skript every 5 minutes which parses the output of netstat -m).

As you can see, the average number of mbufs allocated to data rises by about
100 with each day. 

                                 mbuf allocations
mbufs
       +-----------+----------+-----------+----------+-----------+----------+
       +           +          +           +          +          data ###### +
  1400 ++                                                    headers ******++
       |                                                                    |
       |                                                                    |
       |                                                             #      |
       |                                                             #      |
  1200 ++                                                            ##    ++
       |                                                             ##     |
       |                                          #                  ##     |
       |                                          #                  ##     |
  1000 ++                                         #                  ##    ++
       |                                          #          #       ## ##  |
       |                                # #       # #        ####    #####  |
       |                                ###       # #   # ########   #####  |
   800 ++                               ###   #   # ################ ###   ++
       |                                ###   # # # ############ ##### #    |
       |                               ####   ######## ####   #  #  ##      |
       |                               # ### ########  ###                  |
       |                #   #          # # ##### ##      #                  |
   600 ++               #  ##       ####     #                             ++
       |                #  #############                                    |
       |     ##  #  ###########     #             *     *                   |
       #    ### ## ### #                          *     *                   |
   400 #+   # ## # #                             **     *                  ++
       ##   #     ##                             **     *             *     |
       ######                                    **     * *         * *     |
       |  ##                            *        **     * * *       * *  *  |
       |                             ****     *  **  *  *******     * ** *  |
   200 ++                   *       *****     ** *****  ********    ****** ++
       |   **** ** *     *  **    ****** *    ********  *********   ******  |
       |   ******* *  ** *** **   ***    **  *********  *********  *******  |
       * *** *** ******** *   *****       *  *  *   ****** ** **** ** ****  +
     0 ****--------+***-------+***--------****-------****--------****------++
       0           1          2           3          4           5          6
                                    days uptime
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: maxv@NetBSD.org
State-Changed-When: Mon, 05 Mar 2018 16:38:42 +0000
State-Changed-Why:
The code has significantly changed, and the issue you were having is probably
long fixed. I'm closing this PR because it's not relevant anymore, if you're
still having similar issues please submit a new PR.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.