Re: poudriere: swap_pager: out of swap space

From: Lexi Winter <lexi_at_le-fay.org>
Date: Mon, 15 Jan 2024 08:07:37 UTC
Mark Millard:
> You seem to be under the impression that "Inact" means "page is not
> dirty" and so can be freed without being written out to the swap
> space.

indeed, i was, because this is how sysutils/htop displays memory usage:

top(1)

Mem: 8502M Active, 15G Inact, 1568M Laundry, 5518M Wired, 1343M Buf, 690M Free

htop(1):

  Mem[||||||||||||||||||||||||||||||||||||||||||                          13.7G/31.9G]

i'm vaguely annoyed, but also not surprised, to find out that htop is
wrong here...

> Inact pages can be dirty and such pages can not be freed without
> being written out to the swap space first. If the swap space
> ends up filled, dirty pages that are not in active use stay or
> propogate into the Inact or Laundry states, accumulating there
> (for later potential use).

so, how are Inact pages created?  does this happen from filesystem
writes, or something else?

is there somewhere this that is documented?

	thanks, lexi.