Bug 202787

Summary: [vfs] routetbl memory leak
Product: Base System Reporter: Peter Holm <pho>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: New ---    
Severity: Affects Only Me Keywords: patch
Priority: ---    
Version: CURRENT   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
Fix submitted by "Alexander V. Chernikov" <melifaro@freebsd.org> none

Description Peter Holm freebsd_committer 2015-08-31 08:59:11 UTC
Created attachment 160554 [details]
Fix submitted by "Alexander V. Chernikov" <melifaro@freebsd.org>

$ cat umount.sh
#!/bin/sh

uname -a
vmstat -m | sed -n '1p;/routetbl/p'
start=`date '+%s'`
while [ $((`date '+%s'` - start)) -lt 120 ]; do
        mount -t procfs proc /mnt
        while mount | grep -q /mnt; do
                umount /mnt || sleep .2
        done
done
vmstat -m | sed -n '/routetbl/p'
$ ./umount.sh
FreeBSD x4.osted.lan 11.0-CURRENT FreeBSD 11.0-CURRENT #3 r287001: Thu Aug 27 20:16:23 CEST 2015     pho@x4.osted.lan:/usr/src/sys/i386/compile/PHO  i386
         Type InUse MemUse HighUse Requests  Size(s)
     routetbl    38     6K       -       43  16,32,64,128,256
     routetbl  7624  1902K       -    15215  16,32,64,128,256
$