Date: Thu, 30 Jul 2015 16:44:44 +1000 From: Peter Jeremy <peter@rulingia.com> To: Doug Hardie <bc979@lafn.org> Cc: FreeBSD Stable ML <stable@freebsd.org> Subject: Re: Swap Usage Message-ID: <20150730064444.GA88137@server.rulingia.com> In-Reply-To: <BCA67F7E-676A-4226-83A0-84229948895E@lafn.org> References: <BCA67F7E-676A-4226-83A0-84229948895E@lafn.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--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 <bc979@lafn.org> 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150730064444.GA88137>