From owner-freebsd-net@freebsd.org Tue Jul 11 14:12:11 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 6B024DA0E2B for ; Tue, 11 Jul 2017 14:12:11 +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 F30FE75A47 for ; Tue, 11 Jul 2017 14:12:10 +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 v6BEC57V034633 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 11 Jul 2017 17:12:05 +0300 (EEST) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua v6BEC57V034633 Received: (from kostik@localhost) by tom.home (8.15.2/8.15.2/Submit) id v6BEC5f7034632; Tue, 11 Jul 2017 17:12:05 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Tue, 11 Jul 2017 17:12:05 +0300 From: Konstantin Belousov To: Kajetan Staszkiewicz Cc: freebsd-net@freebsd.org Subject: Re: memory leaks in 11.0? Message-ID: <20170711141205.GX1935@kib.kiev.ua> References: <1771938.JUakJLQFm8@energia> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1771938.JUakJLQFm8@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: Tue, 11 Jul 2017 14:12:11 -0000 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.