From owner-freebsd-net@freebsd.org Wed Jul 12 08:26:57 2017 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C14A0D91002 for ; Wed, 12 Jul 2017 08:26:57 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id CE2E77EEB5; Wed, 12 Jul 2017 08:26:56 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from tom.home (kib@localhost [127.0.0.1]) by kib.kiev.ua (8.15.2/8.15.2) with ESMTPS id v6C8Qqsl075449 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 12 Jul 2017 11:26:52 +0300 (EEST) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua v6C8Qqsl075449 Received: (from kostik@localhost) by tom.home (8.15.2/8.15.2/Submit) id v6C8QquA075448; Wed, 12 Jul 2017 11:26:52 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Wed, 12 Jul 2017 11:26:52 +0300 From: Konstantin Belousov To: Kajetan Staszkiewicz Cc: freebsd-net@freebsd.org, ae@freebsd.org Subject: Re: memory leaks in 11.0? Message-ID: <20170712082652.GD1935@kib.kiev.ua> References: <1771938.JUakJLQFm8@energia> <20170711141205.GX1935@kib.kiev.ua> <3858976.1e6N5M9emt@energia> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3858976.1e6N5M9emt@energia> User-Agent: Mutt/1.8.3 (2017-05-23) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on tom.home X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Jul 2017 08:26:57 -0000 On Wed, Jul 12, 2017 at 10:16:25AM +0200, Kajetan Staszkiewicz wrote: > Dnia wtorek, 11 lipca 2017 17:12:05 CEST Konstantin Belousov pisze: > > On Tue, Jul 11, 2017 at 03:56:04PM +0200, Kajetan Staszkiewicz wrote: > > > `vmstat -z` shows constantly increasing allocation of "512" and "UMA > > > Slabs". Memory allocated for all pf-related things seems fine. I have > > > graphite graps for every `vmstat -z` and the icrease on "512" grows > > > in similar way as "wired" memory. "512" has 2 917 392 used objects > > > allocated at this moment, "UMA Slabs" is 379 006, there is 2636MiB > > > "wired" memory. > > > > UMA zone 512 is used for kernel mallocs of size less than 512 (and greater > > than 256). You can see mallocs types usage with vmstat -m. > > Thank you for pointing me to that command, now I see that the biggest > allocation is: > lltable 3240611 1620278K - 3311016 256,512 > > I'll push all `vmstat -m` to graphite to see which one is growing. lltable is the arp table, AFAIU. Do you have something unusual configured there, or some non-usual network activity ? I have no idea if some leaks there were known and fixed since 11.0.