From owner-freebsd-stable@freebsd.org Sat Feb 3 23:42:51 2018 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2384EED2822 for ; Sat, 3 Feb 2018 23:42:51 +0000 (UTC) (envelope-from mvoorhis@mcvau.net) Received: from atom.mcvau.net (2600-6c64-627f-e4f4-5054-00ff-fe0a-d781.dhcp6.chtrptr.net [IPv6:2600:6c64:627f:e4f4:5054:ff:fe0a:d781]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "atomvm.mcvau.net", Issuer "atomvm.mcvau.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id A081881679 for ; Sat, 3 Feb 2018 23:42:50 +0000 (UTC) (envelope-from mvoorhis@mcvau.net) Received: from [192.168.2.66] (mcvx1c.mcvau.net [192.168.2.66]) (authenticated bits=0) by atom.mcvau.net (8.15.2/8.15.2) with ESMTPSA id w13Ngg3o087718 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Sat, 3 Feb 2018 18:42:45 -0500 (EST) (envelope-from mvoorhis@mcvau.net) Cc: Michael C Voorhis Subject: Re: 50 percent swap used, but "ps auxww" output shows no processes swapped out To: freebsd-stable@freebsd.org References: <5A763C48.5020907@grosbein.net> From: Michael Voorhis Message-ID: <798bb18f-cdd6-f30a-5f21-832032a15d52@mcvau.net> Date: Sat, 3 Feb 2018 18:42:42 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <5A763C48.5020907@grosbein.net> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=1.1 required=5.0 tests=ALL_TRUSTED,BAYES_20, RATWR8_MESSID,TW_JS,TW_PG,T_RP_MATCHES_RCVD autolearn=no autolearn_force=no version=3.4.1 X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on atom.mcvau.net X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Feb 2018 23:42:51 -0000 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> [...]