Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 3 Feb 2018 16:54:23 -0500
From:      Michael Voorhis <mvoorhis@mcvau.net>
Cc:        freebsd-stable <freebsd-stable@freebsd.org>
Subject:   Re: 50 percent swap used, but "ps auxww" output shows no processes swapped out
Message-ID:  <0ab4cffd-fad4-3a54-e8bd-559ffbca9a9d@mcvau.net>
In-Reply-To: <CAKFCL4USAr8ia6bTqK4dXOAGBJmx51MKZDOPyrcD0Gm1WdWQrg@mail.gmail.com>
References:  <b4f2f623-4d58-a783-4c6b-5138c6dfcf52@mcvau.net> <CAKFCL4USAr8ia6bTqK4dXOAGBJmx51MKZDOPyrcD0Gm1WdWQrg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 02/03/2018 04:18 PM, Brandon Allbery wrote:
> Swapping whole processes out is not really a thing any more. 
> Individual pages are paged to/from memory; if a memory page has no 
> backing file, it will be allocated a block in swap space as its 
> backing storage.

Is there a method to determine what swap contents are connected to, if
looking at processes is no longer "a thing"? I have great confidence in
the wonderful FreeBSD documentation, but I find nothing (quickly) in the
manual pages.

> (I'm not sure "W" status even means swap; I thought whole-process 
> swapping wasn't even supported any more.)

The manpage for ps(1), (which I'm sure you're aware of!) describes the
"state" field and its multiple characters and their meanings... that's
what I used for reference.

"W" as 1st character means "idle interrupt thread [of the kernel]."
Subsequent W characters imply swapped-out processes. In subsequent
characters a W indicates that a PID is swapped out.

Thanks for your reply,

--MCV.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0ab4cffd-fad4-3a54-e8bd-559ffbca9a9d>