From owner-freebsd-current@freebsd.org Tue Mar 6 19:36:50 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6703CF26EB7 for ; Tue, 6 Mar 2018 19:36:50 +0000 (UTC) (envelope-from ler@lerctr.org) Received: from thebighonker.lerctr.org (thebighonker.lerctr.org [IPv6:2001:470:1f0f:3ad:bb:dcff:fe50:d900]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "lerctr.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 02AF786B2A for ; Tue, 6 Mar 2018 19:36:49 +0000 (UTC) (envelope-from ler@lerctr.org) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lerctr.org; s=lerami; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=VgOCVQipvYy/mfojihqiTrkrnQR7PPT80Fqv1r3iP/k=; b=iBYIMxBssPor+qUv1vv9J6iQ+z TyZRgmMniBOLFkoK1LbhDFqBWd1dk4iia/FbDVlSHkozmbPKZCtSFw9U2aBqHNJaP56UmeD3xU5bm GIq4BBg7qraUBtn2C82jTnyu4fLlPAf6ePgpqaAl/alpbPo8AtD5UXxKGsl6XeTRnCio=; Received: from [2600:1700:210:b18f:49b1:faaf:d4e0:66d4] (port=52093 helo=ler-imac.lerctr.org) by thebighonker.lerctr.org with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1 (FreeBSD)) (envelope-from ) id 1etIOE-0005kH-Fn; Tue, 06 Mar 2018 13:36:46 -0600 Date: Tue, 6 Mar 2018 13:36:45 -0600 From: Larry Rosenman To: "Rodney W. Grimes" Cc: Trond Endrest?l , FreeBSD current Subject: Re: Strange ARC/Swap/CPU on yesterday's -CURRENT Message-ID: <20180306193645.vv3ogqrhauivf2tr@ler-imac.lerctr.org> Mail-Followup-To: "Rodney W. Grimes" , Trond Endrest?l , FreeBSD current References: <20180306173455.oacyqlbib4sbafqd@ler-imac.lerctr.org> <201803061816.w26IGaW5050053@pdx.rh.CN85.dnsmgr.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="hmgbyx5apge22vah" Content-Disposition: inline In-Reply-To: <201803061816.w26IGaW5050053@pdx.rh.CN85.dnsmgr.net> User-Agent: NeoMutt/20180223 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Mar 2018 19:36:50 -0000 --hmgbyx5apge22vah Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Mar 06, 2018 at 10:16:36AM -0800, Rodney W. Grimes wrote: > > On Tue, Mar 06, 2018 at 08:40:10AM -0800, Rodney W. Grimes wrote: > > > > On Mon, 5 Mar 2018 14:39-0600, Larry Rosenman wrote: > > > >=20 > > > > > Upgraded to: > > > > >=20 > > > > > FreeBSD borg.lerctr.org 12.0-CURRENT FreeBSD 12.0-CURRENT #11 r33= 0385: Sun Mar 4 12:48:52 CST 2018 root@borg.lerctr.org:/usr/obj/usr/sr= c/amd64.amd64/sys/VT-LER amd64 > > > > > +1200060 1200060 > > > > >=20 > > > > > Yesterday, and I'm seeing really strange slowness, ARC use, and S= WAP use and swapping. > > > > >=20 > > > > > See http://www.lerctr.org/~ler/FreeBSD/Swapuse.png > > > >=20 > > > > I see these symptoms on stable/11. One of my servers has 32 GiB of= =20 > > > > RAM. After a reboot all is well. ARC starts to fill up, and I still= =20 > > > > have more than half of the memory available for user processes. > > > >=20 > > > > After running the periodic jobs at night, the amount of wired memor= y=20 > > > > goes sky high. /etc/periodic/weekly/310.locate is a particular nast= y=20 > > > > one. > > >=20 > > > I would like to find out if this is the same person I have > > > reporting this problem from another source, or if this is > > > a confirmation of a bug I was helping someone else with. > > >=20 > > > Have you been in contact with Michael Dexter about this > > > issue, or any other forum/mailing list/etc? =20 > > Just IRC/Slack, with no response. > > >=20 > > > If not then we have at least 2 reports of this unbound > > > wired memory growth, if so hopefully someone here can > > > take you further in the debug than we have been able > > > to get. > > What can I provide? The system is still in this state as the full back= up is slow. >=20 > One place to look is to see if this is the recently fixed: > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D222288 > g_bio leak. >=20 > vmstat -z | egrep 'ITEM|g_bio|UMA' >=20 > would be a good first look >=20 borg.lerctr.org /home/ler $ vmstat -z | egrep 'ITEM|g_bio|UMA' ITEM SIZE LIMIT USED FREE REQ FAIL SLEEP UMA Kegs: 280, 0, 346, 5, 560, 0, 0 UMA Zones: 1928, 0, 363, 1, 577, 0, 0 UMA Slabs: 112, 0,25384098, 977762,102033225, 0, 0 UMA Hash: 256, 0, 59, 16, 105, 0, 0 g_bio: 384, 0, 33, 1627,542482056, 0, 0 borg.lerctr.org /home/ler $ > > > > Limiting the ARC to, say, 16 GiB, has no effect of the high amount = of=20 > > > > wired memory. After a few more days, the kernel consumes virtually = all=20 > > > > memory, forcing processes in and out of the swap device. > > >=20 > > > Our experience as well. > > >=20 > > > ... > > >=20 > > > Thanks, > > > Rod Grimes rgrimes@fr= eebsd.org > > Larry Rosenman http://www.lerctr.org/~ler >=20 > --=20 > Rod Grimes rgrimes@freebs= d.org --=20 Larry Rosenman http://www.lerctr.org/~ler Phone: +1 214-642-9640 E-Mail: ler@lerctr.org US Mail: 5708 Sabbia Drive, Round Rock, TX 78665-2106 --hmgbyx5apge22vah Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQHABAABCgCqFiEEHjgknedhWzvJgwVzaXyZsatIp30FAlqe7c0sFIAAAAAAFQAO cGthLWFkZHJlc3NAZ251cGcub3JnbGVyQGxlcmN0ci5vcmdfFIAAAAAALgAoaXNz dWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDFFMzgy NDlERTc2MTVCM0JDOTgzMDU3MzY5N0M5OUIxQUI0OEE3N0QACgkQaXyZsatIp31n zQf/RI8snUq43fJnLWWTIgdfkPpBVYUMD8sRDzZBYZN96U13bOM8fZOxl/Sy0h1B WoHZzXGnpptr6kWfEimkmWYQEiVFTX6xLOaeK7XdpCKe8GGcLPaLL6/TIEIE6x8g K1j4NcJ1AQzXQJG3kRgGHb2fgTWOjpxRUx/Sh4myDDnYEuY9ZEZdE/3kgR0+b7tP rVW/mk/GZQBWVzqdecRmTCYyhMAdPlhvm2mm0KHDoHLDFDS0sL2QWZ78glIdKFue dFaIFKsdOaAfHqfuj4FCp8CpNNALhmFNeyIRBs523MWV52qu+aZPcu9aczByV159 4WkHPr3QKwK1Z0XFyqZXGl0ovg== =7Kl9 -----END PGP SIGNATURE----- --hmgbyx5apge22vah--