From owner-freebsd-stable@freebsd.org Sat Feb 3 21:54:31 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 56B61EEFBAD for ; Sat, 3 Feb 2018 21:54:31 +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 DBA817CE26 for ; Sat, 3 Feb 2018 21:54:30 +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 w13LsN1P090631 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Sat, 3 Feb 2018 16:54:25 -0500 (EST) (envelope-from mvoorhis@mcvau.net) Cc: freebsd-stable Subject: Re: 50 percent swap used, but "ps auxww" output shows no processes swapped out References: From: Michael Voorhis Message-ID: <0ab4cffd-fad4-3a54-e8bd-559ffbca9a9d@mcvau.net> Date: Sat, 3 Feb 2018 16:54:23 -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: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=2.8 required=5.0 tests=ALL_TRUSTED,BAYES_50, MISSING_HEADERS,RATWR8_MESSID,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 21:54:31 -0000 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.