Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Mar 2019 08:30:42 -0700
From:      Cy Schubert <Cy.Schubert@cschubert.com>
To:        freebsd-current@freebsd.org, Andriy Gapon <avg@FreeBSD.org>, FreeBSD Current <freebsd-current@FreeBSD.org>
Subject:   Re: leaked swap?
Message-ID:  <A0A81BBF-AA4B-4469-8117-8D0AD7399854@cschubert.com>
In-Reply-To: <9c5eaa94-f55b-464a-ab0f-267e7fce4bd0@FreeBSD.org>
References:  <9c5eaa94-f55b-464a-ab0f-267e7fce4bd0@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On March 18, 2019 8:20:35 AM PDT, Andriy Gapon <avg@FreeBSD=2Eorg> wrote:
>
>First, a note that this was observed on a system that runs a fairly old
>current
>(~ 1 year old) with a fairly long uptime (> 6 months)=2E
>I noticed that the system was nearly out of memory, 98% of swap was in
>use,
>there was less than 1 GB of free memory, several GBs of each of active,
>inactive
>and laundry memory, and many GBs of wired (mostly ZFS)=2E
>I decided to pro-actively reboot the system, but to speed that up I put
>the
>system to the single-user mode (via shutdown) and then back to
>multi-user=2E So,
>there was no real hardware reboot and the kernel kept running=2E=20
>However, all
>userland processes were terminated=2E
>
>To my surprise, even while in the single-user mode the swap utilization
>didn't
>go below 70%=2E  Also, laundry memory remained in multi-GB area, but
>let's ignore
>this for now=2E
>
>I think that the swap could be used only for anonymous memory, so I
>expected it
>go to zero after the shutdown to the single user mode=2E
>Does anyone have any ideas?
>Maybe that's something that has already been fixed?
>If not, any ideas on what to look for?
>Thanks!

I've had a hunch of this but haven't gone down this rabbit hole to investi=
gate=2E Related, yesterday I performed a git gc --aggressive=2E Top did not=
 report any swap used by git and GB of swap were used=2E I think to help ad=
dress this we need a reliable reporting tool=2E Obviously two separate symp=
toms, not sure if the same cause=2E




--=20
Pardon the typos and autocorrect, small keyboard in use=2E
Cheers,
Cy Schubert <Cy=2ESchubert@cschubert=2Ecom>
FreeBSD UNIX: <cy@FreeBSD=2Eorg> Web: http://www=2EFreeBSD=2Eorg

	The need of the many outweighs the greed of the few=2E



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?A0A81BBF-AA4B-4469-8117-8D0AD7399854>