FreeBSD using swap even though there's a lot of free memory
doug at safeport.com
doug at safeport.com
Mon Oct 19 16:38:50 UTC 2020
On Fri, 16 Oct 2020, Steve O'Hara-Smith wrote:
> On Fri, 16 Oct 2020 13:24:13 -0700
> Doug Hardie <bc979 at 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.
More information about the freebsd-questions
mailing list