Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Oct 2020 16:33:32 +0000 (UTC)
From:      doug@safeport.com
To:        "Steve O'Hara-Smith" <steve@sohara.org>
Cc:        Doug Hardie <bc979@lafn.org>, FreeBSD Mailing List <freebsd-questions@freebsd.org>
Subject:   Re: FreeBSD using swap even though there's a lot of free memory
Message-ID:  <alpine.BSF.2.21.9999.2010191551060.72530@fledge.watson.org>
In-Reply-To: <20201016212841.0864fb91b9f2e72e1246bbfa@sohara.org>
References:  <5f885b772d622_95aa2adab2b9c5b41576495c3@sirportly-app-02.mail> <CAHu1Y72pNNXt-i552F2JT+uthqAMjQdXLoRNofw6Xr0iwenjVw@mail.gmail.com> <20201016195546.a3392f971837aa2eeace1325@sohara.org> <89B99A9E-C3A2-47BE-8A0E-D296846946CB@mail.sermon-archive.info> <20201016212841.0864fb91b9f2e72e1246bbfa@sohara.org>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
On Fri, 16 Oct 2020, Steve O'Hara-Smith wrote:

> On Fri, 16 Oct 2020 13:24:13 -0700
> Doug Hardie <bc979@lafn.org> 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.



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.21.9999.2010191551060.72530>