Re: Swap filling up, usermode process swap usage doesn't explain

From: Scott Gasch <scott.gasch_at_gmail.com>
Date: Wed, 19 Jul 2023 22:50:44 UTC
-cc hackers

The laundry is abnormally high and doesn't seem to go down.  My
understanding of it is that it's pages that are available for reuse and
have to be zeroed by some kernel thread that does that job(?).

Typically this filling up swap with no clear usermode culprit happens after
the machine has been running for ~10 days and I eventually reboot.  I can
say for sure laundry is nowhere near this full after a reboot for several
days.




On Wed, Jul 19, 2023 at 3:40 PM Pete Wright <pete@nomadlogic.org> wrote:

>
>
> On 7/19/23 15:11, Scott Gasch wrote:
> > Yes, I'm using ZFS.  Here's what top says:
> >
> > last pid: 88926;  load averages:  1.20,  0.96,  0.87
> >     up 5+17:48:34  15:09:58
> > 274 processes: 1 running, 272 sleeping, 1 zombie
> > CPU:  1.8% user,  0.0% nice,  0.5% system,  0.0% interrupt, 97.8% idle
> > Mem: 1844M Active, 7777M Inact, 77G Laundry, 35G Wired, 750M Buf, 3367M
> Free
> > ARC: 24G Total, 2878M MFU, 18G MRU, 21M Anon, 119M Header, 2622M Other
> >       18G Compressed, 25G Uncompressed, 1.33:1 Ratio
> > Swap: 144G Total, 11G Used, 133G Free, 7% Inuse
> >
> > If I leave this alone it will grow to consume all available swap space.
> > I'll try your fix with the sysctl knob and see what happens...  I hope
> > this is it, I've been fighting this for a while now.
>
> worth a shot, but 24G of ARC isn't that bad, especially if you are doing
> quite a bit of disk i/o.
>
> i'm more interested in the 77G of Laundry memory, that seems like quite
> a bit.  but i don't know your workload so not sure...
>
> -p
>
> --
> Pete Wright
> pete@nomadlogic.org
> @nomadlogicLA
>