kern/145865: kernel memory leak with disabled devd and hw.bus.devctl_disable=1

Alexey Illarionov littlesavage at orionet.ru
Tue Apr 20 04:30:06 UTC 2010


>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:


More information about the freebsd-bugs mailing list