From owner-freebsd-current@freebsd.org Sun Aug 20 12:58:47 2017 Return-Path: Delivered-To: freebsd-current@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 7182ADD0CE5 for ; Sun, 20 Aug 2017 12:58:47 +0000 (UTC) (envelope-from tech-lists@zyxst.net) Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) (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 3F2E963BB7 for ; Sun, 20 Aug 2017 12:58:46 +0000 (UTC) (envelope-from tech-lists@zyxst.net) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id C25FA207C0 for ; Sun, 20 Aug 2017 08:58:45 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute4.internal (MEProxy); Sun, 20 Aug 2017 08:58:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zyxst.net; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=fm1; bh=RV215U7pxqUw/wb5go 15+wW5zHa7A26G2O7s5WFJ18I=; b=bw49oq6voOAxiyBSUlAF7gYAeXY6hgWvNp IioNOSs5UOt6KsGSm3QElmOaWpOS2S21PyOntW5iE1el4D3ZDYOIKyGoKYf4CzjO emAp82nRooHw8UgqRzyRcKHSlxL70PgnUCkjG0TbcTEVRCHCp2gaIod5OJEbWgRS utRZymjpYyuo6SE/BMtZXFFawSoQW/ZtN1jPz2cdH6WcPH4FqwNw3RQTN7dPegYM dYOc6a+9pMpBFZMVrcPW+oHpuAo+LKc3Ejd8ubb12nhmi/u1Bhsuucm0BWR+0gKs PQngi3NFlWk/fb4c7wTYPWTJrCZAOsgj+9i0d98LcqS119tt2lAA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s= fm1; bh=RV215U7pxqUw/wb5go15+wW5zHa7A26G2O7s5WFJ18I=; b=pK7mNfRB gwmVmzQCIWBPo2gFNXzvoj6wjRD5hcpE4eQVCiaS1Jw6Z9NoOTvwhCdK6aKvB25I 3b2uH9B2dOTpAmBrma31CK2TcRxSaAZYiRsbW+U8xNmTOMWFeNwiWsdzgbYO186F s2+cvmUIH5nVe5/9B/2FLxI13qBxn+wHxwzm40MrqSQFitGmno2Jo2SfprJ1GCu7 HpsAz/kjR3TM3LE2VlWvgbiXdlkGnouyFpFwjnKUER7YWYrcrBQiVtWu7nVP7mS3 WiSRzSi65YISULDAeTmERAINEVHQ0xm319yY8SgUuaJDBJIFRxBUEyPCuZS5tiIw uKNhtCjIiFX+Pw== X-ME-Sender: X-Sasl-enc: akGt+08l6SwM7QFvfAKyvZzRaZJRLuonxFcPyxSccWIg 1503233925 Received: from pumpkin.growveg.org (pumpkin.growveg.org [82.70.91.101]) by mail.messagingengine.com (Postfix) with ESMTPA id 5E41C7E543 for ; Sun, 20 Aug 2017 08:58:45 -0400 (EDT) Subject: Re: swapfile query To: freebsd-current@freebsd.org References: <201708192100.v7JL0vFk003935@slippy.cwsent.com> From: tech-lists Message-ID: <71366ec3-efca-5e18-9c67-706b86cdfa7e@zyxst.net> Date: Sun, 20 Aug 2017 13:58:44 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <201708192100.v7JL0vFk003935@slippy.cwsent.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 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: Sun, 20 Aug 2017 12:58:47 -0000 On 19/08/2017 22:00, Cy Schubert wrote: > An easy way to find out is to run top, type in "w", then "o" and "swap" to > see which processes are using swap. You'll notice that the numbers won't > add up. I haven't looked at this but my guess is that there may be swap > leak. You can verify this by replacing the swapfile (add a new and remove > the old). Thanks for the tip. I need to wait (might be a few weeks) to see when it starts eating swap again, then I'll do what you suggest. I got the system from 94% swap in use to 39% by restarting some of the VMs, then I was able to swapoff/swapon to empty the swapfile. Here's a snapshot of the system in an idle state, sr is mostly above 300 procs memory page disks faults cpu r b w avm fre flt re pi po fr sr ad0 da0 in sy cs us sy id 0 0 27 189G 27G 103 0 0 0 77 329 0 0 74 801 1663 0 0 100 0 0 27 189G 27G 38 0 0 0 0 337 0 0 93 745 1997 0 0 100 0 0 27 189G 27G 187 0 0 0 0 329 0 0 90 669 1853 0 0 100 1 0 27 189G 27G 38 0 0 0 0 340 0 0 83 774 1816 0 0 100 0 0 27 189G 27G 37 0 0 0 1 370 0 0 77 767 1839 0 0 100 1 0 27 189G 27G 48 0 0 0 0 294 1 0 125 2239 3382 0 0 100 0 0 27 189G 27G 20 0 0 0 0 329 3 0 88 651 1797 0 0 100 ^C yet mem from top shows 27GB free: last pid: 71790; load averages: 0.11, 0.09, 0.05 up 121+03:19:29 13:55:49 99 processes: 1 running, 98 sleeping CPU: 0.0% user, 0.0% nice, 0.1% system, 0.1% interrupt, 99.8% idle Mem: 769M Active, 11G Inact, 21G Laundry, 64G Wired, 924M Buf, 27G Free ARC: 60G Total, 8979M MFU, 51G MRU, 16K Anon, 153M Header, 755K Other 60G Compressed, 62G Uncompressed, 1.04:1 Ratio, 41M Overhead Swap: 4034M Total, 4034M Free thanks, -- J.