Date: Thu, 31 Mar 2011 09:04:05 GMT From: Artjom Nikushkin <arni@balticom.lv> To: freebsd-gnats-submit@FreeBSD.org Subject: kern/156083: ipfw pipe flush - memleak Message-ID: <201103310904.p2V945CF067052@red.freebsd.org> Resent-Message-ID: <201103310910.p2V9A995052753@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 156083 >Category: kern >Synopsis: ipfw pipe flush - memleak >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: Thu Mar 31 09:10:09 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Artjom Nikushkin >Release: 8.2-RELEASE >Organization: Balticom >Environment: FreeBSD bsd82-test.balticom.lv 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Fri Feb 18 02:24:46 UTC 2011 root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 >Description: After sequental pipe config/flush, dummynet hits limit of memory and `dmesg` ouputs : "ipfw: setsockopt(IP_DUMMYNET_CONFIGURE): Cannot allocate memory", and crashes. Pipe is configured with src-ip or dst-ip mask (dummynet hash pipes). >How-To-Repeat: In fresh install : for ((i=1;$i<2000000; i=$i+1)); do ipfw pipe 1 config bw 10Mbit/s mask src-ip 0xffffffff ; ipfw -f pipe flush ; done When Wired memory hits about 370Mb of RAM, it crashes. It's possible to make it crash faster - rise net.inet.ip.dummynet.hash_size up to the maximum size. >Fix: >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201103310904.p2V945CF067052>