From owner-freebsd-questions@freebsd.org Mon Oct 19 16:38:50 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 0013E42E081 for ; Mon, 19 Oct 2020 16:38:49 +0000 (UTC) (envelope-from doug@safeport.com) Received: from cyrus.watson.org (cyrus.watson.org [204.107.128.30]) by mx1.freebsd.org (Postfix) with ESMTP id 4CFMs531rRz3ZmG for ; Mon, 19 Oct 2020 16:38:49 +0000 (UTC) (envelope-from doug@safeport.com) Received: from fledge.watson.org (fledge.watson.org [198.74.231.63]) by cyrus.watson.org (Postfix) with ESMTPS id 9EC7D2317; Mon, 19 Oct 2020 16:33:32 +0000 (UTC) Received: from fledge.watson.org (doug@localhost [127.0.0.1]) by fledge.watson.org (8.16.1/8.16.1) with ESMTPS id 09JGXWA6077753 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Mon, 19 Oct 2020 16:33:32 GMT (envelope-from doug@safeport.com) Received: from localhost (doug@localhost) by fledge.watson.org (8.16.1/8.16.1/Submit) with ESMTP id 09JGXWgA077749; Mon, 19 Oct 2020 16:33:32 GMT (envelope-from doug@safeport.com) X-Authentication-Warning: fledge.watson.org: doug owned process doing -bs Date: Mon, 19 Oct 2020 16:33:32 +0000 (UTC) From: doug@safeport.com X-X-Sender: doug@fledge.watson.org Reply-To: doug@fledge.watson.org To: "Steve O'Hara-Smith" cc: Doug Hardie , FreeBSD Mailing List Subject: Re: FreeBSD using swap even though there's a lot of free memory In-Reply-To: <20201016212841.0864fb91b9f2e72e1246bbfa@sohara.org> Message-ID: References: <5f885b772d622_95aa2adab2b9c5b41576495c3@sirportly-app-02.mail> <20201016195546.a3392f971837aa2eeace1325@sohara.org> <89B99A9E-C3A2-47BE-8A0E-D296846946CB@mail.sermon-archive.info> <20201016212841.0864fb91b9f2e72e1246bbfa@sohara.org> User-Agent: Alpine 2.21.9999 (BSF 287 2018-06-16) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Rspamd-Queue-Id: 4CFMs531rRz3ZmG X-Spamd-Bar: +++++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=fail (mx1.freebsd.org: domain of doug@safeport.com does not designate 204.107.128.30 as permitted sender) smtp.mailfrom=doug@safeport.com X-Spamd-Result: default: False [5.53 / 15.00]; ARC_NA(0.00)[]; R_SPF_FAIL(1.00)[-all:c]; HAS_REPLYTO(0.00)[doug@fledge.watson.org]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_SPAM_SHORT(0.76)[0.758]; REPLYTO_DN_EQ_FROM_DN(0.00)[]; MIME_GOOD(-0.10)[text/plain]; REPLYTO_DOM_NEQ_FROM_DOM(0.00)[]; HAS_XAW(0.00)[]; NEURAL_SPAM_MEDIUM(0.47)[0.473]; DMARC_NA(0.00)[safeport.com]; NEURAL_HAM_LONG(-0.20)[-0.199]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; VIOLATED_DIRECT_SPF(3.50)[]; FROM_NO_DN(0.00)[]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:11288, ipnet:204.107.128.0/24, country:US]; GREYLIST(0.00)[pass,body]; MAILMAN_DEST(0.00)[freebsd-questions] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Oct 2020 16:38:50 -0000 On Fri, 16 Oct 2020, Steve O'Hara-Smith wrote: > On Fri, 16 Oct 2020 13:24:13 -0700 > Doug Hardie wrote: > >> I encountered this issue a year or so ago. In my case it turned out to >> be a process that was allocating anonymous segments using mmap. > > Now that's an interesting one - thank you for mentioning it. Neither is the case for me. A 'real' swapfile and no paging. I have a range of FreeBSD versions with the kind of workload using up swap space. For me only the 11.1 system does this. The current numbers below show some "lost" space but the unaccounted for space is a relative small amount. Device 1K-blocks Used Avail Capacity /dev/aacd0p3 4194304 1776000 2418304 42% [ 0 50861 ] root [ 20 281903 ] camden [ 21 322759 ] bassharbor [ 19 343522 ] monhegan [ 18 369139 ] newharbor [ 17 587332 ] pemaquid Jails: 1904655 total: 1955516 I wrote a program to track this in real time as several weeks ago the system ran out of swap space. Numbers are from top.