Bug 202787 - [vfs] routetbl memory leak
Summary: [vfs] routetbl memory leak
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2015-08-31 08:59 UTC by Peter Holm
Modified: 2021-11-02 18:23 UTC (History)
1 user (show)

See Also:


Attachments
Fix submitted by "Alexander V. Chernikov" <melifaro@freebsd.org> (476 bytes, patch)
2015-08-31 08:59 UTC, Peter Holm
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Holm freebsd_committer freebsd_triage 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
$