From owner-freebsd-hackers@freebsd.org Sat Nov 17 22:53:58 2018 Return-Path: Delivered-To: freebsd-hackers@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 3B7EA1109780 for ; Sat, 17 Nov 2018 22:53:58 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from smtp-out-so.shaw.ca (smtp-out-so.shaw.ca [64.59.136.139]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "Client", Issuer "CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 1623F845EC for ; Sat, 17 Nov 2018 22:53:56 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from spqr.komquats.com ([70.67.125.17]) by shaw.ca with ESMTPA id O9THgSpsAyqMYO9TIgO3Lr; Sat, 17 Nov 2018 15:53:49 -0700 X-Authority-Analysis: v=2.3 cv=CvFujUwD c=1 sm=1 tr=0 a=VFtTW3WuZNDh6VkGe7fA3g==:117 a=VFtTW3WuZNDh6VkGe7fA3g==:17 a=kj9zAlcOel0A:10 a=JHtHm7312UAA:10 a=-mWiuh9oAAAA:8 a=YxBL1-UpAAAA:8 a=6I5d2MoRAAAA:8 a=Xu-Avd0tElVI5LjkrIwA:9 a=CjuIK1q_8ugA:10 a=zQL-nbigMlujGkG7wPSG:22 a=Ia-lj3WSrqcvXOmTRaiG:22 a=IjZwj45LgO3ly-622nXo:22 Received: from slippy.cwsent.com (slippy [10.1.1.91]) by spqr.komquats.com (Postfix) with ESMTPS id C25AB420; Sat, 17 Nov 2018 14:53:46 -0800 (PST) Received: from slippy.cwsent.com (localhost [127.0.0.1]) by slippy.cwsent.com (8.15.2/8.15.2) with ESMTP id wAHMrkoW003190; Sat, 17 Nov 2018 14:53:46 -0800 (PST) (envelope-from Cy.Schubert@cschubert.com) Received: from slippy (cy@localhost) by slippy.cwsent.com (8.15.2/8.15.2/Submit) with ESMTP id wAHMrkgl003187; Sat, 17 Nov 2018 14:53:46 -0800 (PST) (envelope-from Cy.Schubert@cschubert.com) Message-Id: <201811172253.wAHMrkgl003187@slippy.cwsent.com> X-Authentication-Warning: slippy.cwsent.com: cy owned process doing -bs X-Mailer: exmh version 2.8.0 04/21/2012 with nmh-1.7.1 Reply-to: Cy Schubert From: Cy Schubert X-os: FreeBSD X-Sender: cy@cwsent.com X-URL: http://www.cschubert.com/ To: Rebecca Cran cc: freebsd-hackers Hackers Subject: Re: 13-CURRENT: several GB swap being used despite plenty of free RAM In-Reply-To: Message from Rebecca Cran via freebsd-hackers of "Sat, 17 Nov 2018 14:44:41 -0700." <1748688.u6MfGjpqfb@photon.int.bluestop.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 17 Nov 2018 14:53:46 -0800 X-CMAE-Envelope: MS4wfMYSL5LB6+4hbwVLYZyJSS53EVpi4vdI+b97mPAxBer5KeoSXT5atQZaJqSxAfT6qtc9fADfMC0ys9WJ/JqLh69A5bbB0wUFQk2CV70pqjVmkb4Dgp46 oEdOgaDyEJGK9fwFXId4nLgZ7zA4mPS2GZzWD0xMp+jvuLV1AytmUKhT7rxtIHNpKk222sE/0PrFNtWf6sO1oiIWXxA4/Z2SPOLAE8v4yEZycFPQ028T1Ma9 X-Rspamd-Queue-Id: 1623F845EC X-Spamd-Result: default: False [-2.68 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_COUNT_FIVE(0.00)[5]; HAS_REPLYTO(0.00)[Cy.Schubert@cschubert.com]; FROM_HAS_DN(0.00)[]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; HAS_XAW(0.00)[]; REPLYTO_EQ_FROM(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; MX_GOOD(-0.01)[spqr.komquats.com]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-0.95)[-0.948,0]; R_SPF_NA(0.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[17.125.67.70.zen.spamhaus.org : 127.0.0.11]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:6327, ipnet:64.59.128.0/20, country:CA]; RCVD_TLS_LAST(0.00)[]; IP_SCORE(-2.02)[ip: (-5.63), ipnet: 64.59.128.0/20(-2.43), asn: 6327(-1.94), country: CA(-0.10)]; RCVD_IN_DNSWL_LOW(-0.10)[139.136.59.64.list.dnswl.org : 127.0.5.1] X-Rspamd-Server: mx1.freebsd.org X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Nov 2018 22:53:58 -0000 In message <1748688.u6MfGjpqfb@photon.int.bluestop.org>, Rebecca Cran via freeb sd-hackers writes: > I'm running 13-CURRENT from a few days ago. I noticed the system using severa > l > GB of swap despite having 90GB RAM still free. I know FreeBSD will use *some* > , > but 3450MB seems excessive when there's still 90GB RAM free. > > CPU: 0.1% user, 0.0% nice, 0.0% system, 0.0% interrupt, 99.8% idle > Mem: 3392M Active, 5489M Inact, 390M Laundry, 25G Wired, 90G Free > ARC: 19G Total, 8080M MFU, 9242M MRU, 64K Anon, 197M Header, 1570M Other > 15G Compressed, 26G Uncompressed, 1.73:1 Ratio > Swap: 8192M Total, 3450M Used, 4742M Free, 42% Inuse, 36K In > > Quitting firefox caused the swap usage to drop to just 460MB. I don't > understand why it would decide to swap out so much, especially since I have > vm.swap_idle_enabled set to 0. Were you by chance building any ports at the time? Or, possibly extracting a tarball? -- Cheers, Cy Schubert FreeBSD UNIX: Web: http://www.FreeBSD.org The need of the many outweighs the greed of the few.