From owner-freebsd-stable@freebsd.org Thu Jul 30 06:51:04 2015 Return-Path: Delivered-To: freebsd-stable@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 791989AE42E for ; Thu, 30 Jul 2015 06:51:04 +0000 (UTC) (envelope-from peter@rulingia.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 5A2FA13A4 for ; Thu, 30 Jul 2015 06:51:04 +0000 (UTC) (envelope-from peter@rulingia.com) Received: by mailman.ysv.freebsd.org (Postfix) id 58C309AE42D; Thu, 30 Jul 2015 06:51:04 +0000 (UTC) Delivered-To: stable@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 3EFBE9AE42C for ; Thu, 30 Jul 2015 06:51:04 +0000 (UTC) (envelope-from peter@rulingia.com) Received: from vps.rulingia.com (vps.rulingia.com [103.243.244.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "vps.rulingia.com", Issuer "CAcert Class 3 Root" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id C0A6813A2 for ; Thu, 30 Jul 2015 06:51:03 +0000 (UTC) (envelope-from peter@rulingia.com) Received: from server.rulingia.com (c220-239-242-83.belrs5.nsw.optusnet.com.au [220.239.242.83]) by vps.rulingia.com (8.15.2/8.15.2) with ESMTPS id t6U6ishA007292 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 30 Jul 2015 16:45:00 +1000 (AEST) (envelope-from peter@rulingia.com) X-Bogosity: Ham, spamicity=0.000000 Received: from server.rulingia.com (localhost.rulingia.com [127.0.0.1]) by server.rulingia.com (8.14.9/8.14.9) with ESMTP id t6U6invX001001 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 30 Jul 2015 16:44:49 +1000 (AEST) (envelope-from peter@server.rulingia.com) Received: (from peter@localhost) by server.rulingia.com (8.14.9/8.14.9/Submit) id t6U6ii0B001000; Thu, 30 Jul 2015 16:44:44 +1000 (AEST) (envelope-from peter) Date: Thu, 30 Jul 2015 16:44:44 +1000 From: Peter Jeremy To: Doug Hardie Cc: FreeBSD Stable ML Subject: Re: Swap Usage Message-ID: <20150730064444.GA88137@server.rulingia.com> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="6TrnltStXW4iwmi0" Content-Disposition: inline In-Reply-To: X-PGP-Key: http://www.rulingia.com/keys/peter.pgp User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Jul 2015 06:51:04 -0000 --6TrnltStXW4iwmi0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable [reformatted] On 2015-Jul-29 17:41:33 -0700, Doug Hardie wrote: >I have several FreeBSD 9.3 systems that are using swap and I can=E2=80=99t >figure out what is doing it. The key system has 6GB swap and >currently it has over 2GB in use. Is the system currently paging (top(1) and "systat -v" will show this)? If not, this just means that at some time in the past, the system was under memory pressure and paged some process memory out. Since then, that memory hasn't been touched so the system hasn't paged it in. >ps shows only a kernel module >[intr] with a W status. 'W' means the whole process is 'swapped' out - this will only occur under severe RAM pressure. Normally, the system will just page out inactive parts of a processes address space - and none of the ps flags will show this. > How do I figure out what that swap space is being used for? I don't think this can be trivially done. "procstat -v" will show the number of resident pages within each swap-backed region, any pages in that region that have been touched but are not resident are on the swap device but any pages that have never been touched aren't counted at all. --=20 Peter Jeremy --6TrnltStXW4iwmi0 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQJ8BAEBCgBmBQJVucfcXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRFRUIyOTg2QzMwNjcxRTc0RTY1QzIyN0Ux NkE1OTdBMEU0QTIwQjM0AAoJEBall6Dkogs0C2oQAIdzdj2j1FmUvf4I+ADSCdmu QNKWaRJyhy9AHTHzAzJfm/gm14i5T9VyNVPjo4imDxqxuLlcQMmhjkHerqV5TLOz Qe7MImmQM6f3MeoR62eo/JK3kSpUIOXgFxBHHp5UxRrhM/HSvh6PtFGpje7GQa0N zIakQ9B32Xbw+1N+dDaV9fQ19LUjhBjK3xleQKOjdm+DUlZOZkQfO98rkLjk2mNy H9QY8b04vwna+bEg+uAc0actkfg6OkwyVAJf7AIRLjyJzI3ItjT9Bg+bvb1CyBxC 9Gbcdyt/NIOiUgRpO6MaCR1A2WlU/Yj0JkHbBcnLaL92o2NnbC3tbcTtQ3zReJs0 RzRKo3CeSbQChsnsLQEige0u8APdh8gCDeKBw/UxIUhYWkW3Ui/QEx94b4zrDI40 5hNo9UX9kSgu67rU+1Q/HR88Dukwv/4SDu7Goq6nTb41lz4Q8GVXOCAC0X93ik8+ 2WIYwlENE6Z8t7z/WjWGU2+rh2ElXNK+L8LMAJWE8mZbk0oxw6y9JQxhSyjtXomC 9bjSrLpKcunuvD5eU2ZX/jqNiqxwJO3Ut/wiODh60VAMDZ/dxRaN/YFGhzz9ldlt q3T3po+gAUO+WiZ5WvnFlcasiSzqF/W3gywusOO1dVbCjqs1GPOFoTIcLOxq6K0/ AeGS/lFBsJdZ8d7X4XGR =cCZL -----END PGP SIGNATURE----- --6TrnltStXW4iwmi0--