Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Apr 2010 04:26:28 GMT
From:      Alexey Illarionov <littlesavage@orionet.ru>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   kern/145865: kernel memory leak with disabled devd and hw.bus.devctl_disable=1
Message-ID:  <201004200426.o3K4QSpt021807@www.freebsd.org>
Resent-Message-ID: <201004200430.o3K4U55K049890@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         145865
>Category:       kern
>Synopsis:       kernel memory leak with disabled devd and hw.bus.devctl_disable=1
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Apr 20 04:30:05 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Alexey Illarionov
>Release:        7.3-STABLE
>Organization:
>Environment:
7.3-STABLE FreeBSD 7.3-STABLE #1: Mon Apr 19 05:25:53 MSD 2010 i386

>Description:
The 7.3-STABLE kernel leaks memory when devd is disabled even when hw.bus.devctl_disable=1.

The same problem exists on recent 8 stable with hw.bus.devctl_queue=0 and hw.bus.devctl_disable=1

I have mpd5 server with about 400 online users. After about month of uptime there was a kernel panic:

panic: kmem_malloc(16384): kmem_map too small: 335544320 total allocated

vmstat points to high bus memory usage:

bus 4891890 191093K       -  4907302  16,32,64,128,1024

>How-To-Repeat:
1. Turn off devd:

# /etc/rc.d/devd stop
# sysctl hw.bus.devctl_disable=1


2. Create some kernel events and watch for memory:

# vmstat -m | awk '$1=="bus"{print $1,$2,$3}'
bus 1053 50K

# for i in `jot - 1 50` ; do ifconfig gre$i create ; ifconfig gre$i destroy ; done
# vmstat -m | awk '$1=="bus"{print $1,$2,$3}'
bus 1153 57K

# for i in `jot - 1 50` ; do ifconfig gre$i create ; ifconfig gre$i destroy ; done
# vmstat -m | awk '$1=="bus"{print $1,$2,$3}'
bus 1254 63K





>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201004200426.o3K4QSpt021807>