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".
Michael Voorhis
2018-Feb-03 23:42 UTC
50 percent swap used, but "ps auxww" output shows no processes swapped out
On 02/03/2018 05:48 PM, Eugene Grosbein wrote:> These 10G may be just several pages of several processes. > Please show output of "top -ores -d1".This just shows a bunch of hungry postgres processes (see below). In response to your slightly-earlier email, swap_enabled is set (its default) and swap_idle_enabled is NOT set. No swap-related sysctl's are set in /etc/sysctl.conf. 1 frame of your requested "top" output, sorted as specified:> last pid: 47195; load averages: 0.17, 0.37, 0.44 up 99+20:40:41 18:37:07 > 369 processes: 1 running, 368 sleeping > CPU: 0.2% user, 0.0% nice, 0.2% system, 0.0% interrupt, 99.7% idle > Mem: 6989M Active, 79G Inact, 27G Laundry, 10G Wired, 1568M Buf, 1680M Free > Swap: 21G Total, 11G Used, 10G Free, 50% Inuse > > PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND > 61839 pgsql 1 21 0 32665M 31349M select 13 3:13 0.00% postgres > 59354 pgsql 1 20 0 32659M 26625M select 12 288:57 0.00% postgres > 40354 pgsql 1 20 0 32660M 26182M select 12 220:15 0.00% postgres > 24708 pgsql 1 20 0 32659M 26144M select 3 204:14 0.00% postgres > 37664 pgsql 1 20 0 32649M 25967M select 12 48:55 0.00% postgres > 56094 pgsql 1 25 0 32659M 25734M select 5 189:00 0.00% postgres > 57255 pgsql 1 20 0 32661M 25414M select 6 143:53 0.00% postgres > 38662 pgsql 1 20 0 32659M 23669M select 1 229:03 0.00% postgres > 48035 pgsql 1 20 0 32663M 22195M select 3 149:13 0.00% postgres > 66831 pgsql 1 20 0 32659M 21944M select 2 61:00 0.13% postgres > 45832 pgsql 1 20 0 32659M 21427M select 4 158:26 0.00% postgres > 56976 pgsql 1 20 0 32661M 14110M select 1 56:26 0.00% postgres > 26207 pgsql 1 20 0 32659M 11620M select 8 34:21 0.00% postgres > 383 www 64 20 0 34010M 8860M nanslp 14 11:26 0.11% jsvc > 44067 pgsql 1 20 0 32659M 6194M select 11 15:16 0.00% postgres > 31431 pgsql 1 20 0 32661M 4928M select 15 15:41 0.00% postgres > 34641 pgsql 1 20 0 32650M 2383M select 14 2:04 0.00% postgres> [...]