Michael Voorhis
2018-Feb-03 21:14 UTC
50 percent swap used, but "ps auxww" output shows no processes swapped out
Hi all, I've got an amd64 system running 11.1-STABLE r325027, with something like 20G of swap. "swapinfo" shows that half the swap is used. So of course I'm curious to know which processes have been swapped out. I'm not using any "tmpfs" filesystems; no ZFS, no huge amounts of wired-down memory. The system's got 16 processors and 128G of RAM. "ps auxww" output shows *no* processes that are swapped out (2nd character in "STAT" field is "W"). Not a single one. The only process with a W in the stat field at all is the "[intr]" kernel thread. What is using the swapspace? Please educate me. Thanks, --MCV.
Brandon Allbery
2018-Feb-03 21:18 UTC
50 percent swap used, but "ps auxww" output shows no processes swapped out
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. (I'm not sure "W" status even means swap; I thought whole-process swapping wasn't even supported any more.) On Sat, Feb 3, 2018 at 4:14 PM, Michael Voorhis <mvoorhis at mcvau.net> wrote:> Hi all, > > I've got an amd64 system running 11.1-STABLE r325027, with something > like 20G of swap. "swapinfo" shows that half the swap is used. > > So of course I'm curious to know which processes have been swapped > out. I'm not using any "tmpfs" filesystems; no ZFS, no huge amounts of > wired-down memory. The system's got 16 processors and 128G of RAM. "ps > auxww" output shows *no* processes that are swapped out (2nd character > in "STAT" field is "W"). Not a single one. The only process with a W in > the stat field at all is the "[intr]" kernel thread. > > What is using the swapspace? > > Please educate me. > > Thanks, > > --MCV. > _______________________________________________ > freebsd-stable at freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe at freebsd.org" >-- brandon s allbery kf8nh sine nomine associates allbery.b at gmail.com ballbery at sinenomine.net unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net
Eugene Grosbein
2018-Feb-03 22:48 UTC
50 percent swap used, but "ps auxww" output shows no processes swapped out
04.02.2018 4:14, Michael Voorhis wrote:> I've got an amd64 system running 11.1-STABLE r325027, with something > like 20G of swap. "swapinfo" shows that half the swap is used. > > So of course I'm curious to know which processes have been swapped > out. I'm not using any "tmpfs" filesystems; no ZFS, no huge amounts of > wired-down memory. The system's got 16 processors and 128G of RAM. "ps > auxww" output shows *no* processes that are swapped out (2nd character > in "STAT" field is "W"). Not a single one. The only process with a W in > the stat field at all is the "[intr]" kernel thread. > > What is using the swapspace?These 10G may be just several pages of several processes. Please show output of "top -ores -d1".