From owner-freebsd-net@freebsd.org Wed Jul 12 08:58:42 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 3E0A0D91A66 for ; Wed, 12 Jul 2017 08:58:42 +0000 (UTC) (envelope-from vegeta@tuxpowered.net) Received: from mail-wr0-x22d.google.com (mail-wr0-x22d.google.com [IPv6:2a00:1450:400c:c0c::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id DFE9E7FBB1 for ; Wed, 12 Jul 2017 08:58:41 +0000 (UTC) (envelope-from vegeta@tuxpowered.net) Received: by mail-wr0-x22d.google.com with SMTP id 77so24399024wrb.1 for ; Wed, 12 Jul 2017 01:58:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxpowered-net.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:organization:user-agent :in-reply-to:references:mime-version; bh=9pNxlXyz/QqJRfzHBq+W9mc6HvU5YWQDwUGFbl/+Fq0=; b=J1QBeR3jBowB1hiFJXDYggy0saYZMyEciRzvLdMq1ngS5nreprvHkJtC3efTRIrq9u 0o9OX6xWoZlZlp6eUqML+ZmGpFHezw3Hwaey/wF12PP/Ca7J+T3AKI4XHWEirJAjYnl6 7hKARD/YtQSYm2qMquWWEp40HC9xUGFdyjTMDZxmtT/uUEFQ+vmRtzSy7FQNcVgtMvBJ OIggg5yxvLnkbaGUhY9ijjuJHGn9QUG351MQq+WZsPCTOidgGYYefExMWgYFf4OohM11 nYFyOTS3s59Qu7CAJRB3lnevVeRTF3dsINONNL/FfXw4qrr+SGvXvcWy3Qwyct1SXTa3 9QHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :user-agent:in-reply-to:references:mime-version; bh=9pNxlXyz/QqJRfzHBq+W9mc6HvU5YWQDwUGFbl/+Fq0=; b=kheXqcu6usJLLZnPSeZYUhFln9RlK1zFF+NRPWojfYmQFRJHnQAY4rPX6nqokktd2i APOESfT2tvHj5VBoqr+/AS8ArAXJHZl7PDVtw0gsx28c8BcF1zjPrgLYHbqyqNMVxKtP 7qDMg6nlKvG8c293z6rjOCY64MIll/xpjtG9JTcltvbDY8V1VBHrqezxqqyHlfEbwr00 x3waSvzWyTLkO4KIerOIDm2n15J1EICADmtuunT50bsp88vLt1PsCWHkRngOeSvo/PHY 9925nLMU5nPKYO8P2BKUBsR96mzCWkxc594duhUEhmrXvycRCylwcXl3SdBHsuRl2CX5 PTYg== X-Gm-Message-State: AIVw112wg/lh4TLEMlWxg2qd06g+jEcx+gR7C05Fi1FaXmQiDDISE2ve epJnOxlLkdfN+UIu X-Received: by 10.28.27.15 with SMTP id b15mr1784675wmb.60.1499849920372; Wed, 12 Jul 2017 01:58:40 -0700 (PDT) Received: from energia.localnet ([2a00:1f78:fffb:220:c7f7:2dda:4b51:2d6b]) by smtp.gmail.com with ESMTPSA id 2sm1065382wrn.24.2017.07.12.01.58.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 12 Jul 2017 01:58:39 -0700 (PDT) From: Kajetan Staszkiewicz To: Konstantin Belousov Cc: freebsd-net@freebsd.org, ae@freebsd.org Subject: Re: memory leaks in 11.0? Date: Wed, 12 Jul 2017 10:58:35 +0200 Message-ID: <34090826.WM7W0CICNb@energia> Organization: tuxpowered.net User-Agent: KMail/5.2.3 (Linux/4.11.0-3.3-liquorix-amd64; KDE/5.28.0; x86_64; ; ) In-Reply-To: <20170712082652.GD1935@kib.kiev.ua> References: <1771938.JUakJLQFm8@energia> <3858976.1e6N5M9emt@energia> <20170712082652.GD1935@kib.kiev.ua> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1651514.ej94J7XUA0"; micalg="pgp-sha1"; protocol="application/pgp-signature" 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:58:42 -0000 --nextPart1651514.ej94J7XUA0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" Dnia =C5=9Broda, 12 lipca 2017 11:26:52 CEST Konstantin Belousov pisze: > 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 ha= ve > > > > 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. > > >=20 > > > 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. > >=20 > > Thank you for pointing me to that command, now I see that the biggest > > allocation is: > > lltable 3240611 1620278K - 3311016 256,512 > >=20 > > I'll push all `vmstat -m` to graphite to see which one is growing. >=20 > lltable is the arp table, AFAIU. AFAIR you are right. > Do you have something unusual configured there, or some non-usual network= =20 activity ? I have non-standard net.link.ether.inet.max_age=3D240. Default value was 12= 00.=20 Table size is: % arp -an | wc -l 2410 % ndp -an | wc -l 145 > I have no idea if some leaks there were known and fixed since 11.0. =2D-=20 | pozdrawiam / greetings | powered by Debian, FreeBSD and CentOS | | Kajetan Staszkiewicz | jabber,email: vegeta()tuxpowered net | | Vegeta | www: http://vegeta.tuxpowered.net | `------------------------^---------------------------------------' --nextPart1651514.ej94J7XUA0 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQSOEQZObv2B8mf0JbnjtFCvbXs6FAUCWWXkuwAKCRDjtFCvbXs6 FKnCAKDsj8x3NREVq/iII12knr/tRLB0AwCfR0HkXvUmvAwrZ1g7ixV0AhyeMLM= =2fpq -----END PGP SIGNATURE----- --nextPart1651514.ej94J7XUA0--