From owner-freebsd-arm@freebsd.org Fri Jun 15 15:43:24 2018 Return-Path: Delivered-To: freebsd-arm@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 8EE71101024A for ; Fri, 15 Jun 2018 15:43:24 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Received: from www.zefox.net (www.zefox.net [50.1.20.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "www.zefox.org", Issuer "www.zefox.org" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id E35B7747A1 for ; Fri, 15 Jun 2018 15:43:23 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Received: from www.zefox.net (localhost [127.0.0.1]) by www.zefox.net (8.15.2/8.15.2) with ESMTPS id w5FFhZ4K039870 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 15 Jun 2018 08:43:36 -0700 (PDT) (envelope-from fbsd@www.zefox.net) Received: (from fbsd@localhost) by www.zefox.net (8.15.2/8.15.2/Submit) id w5FFhY2m039869; Fri, 15 Jun 2018 08:43:34 -0700 (PDT) (envelope-from fbsd) Date: Fri, 15 Jun 2018 08:43:34 -0700 From: bob prohaska To: Mark Millard Cc: Warner Losh , freebsd-arm@freebsd.org, "Rodney W. Grimes" , bob prohaska Subject: Re: GPT vs MBR for swap devices Message-ID: <20180615154334.GA39777@www.zefox.net> References: <20180614175622.GC35161@www.zefox.net> <201806142110.w5ELAL0N046840@pdx.rh.CN85.dnsmgr.net> <20180615035225.GA37370@www.zefox.net> <20180615051527.GB37370@www.zefox.net> <834EA7A6-B567-436F-96B2-0C75FACA3FF9@yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <834EA7A6-B567-436F-96B2-0C75FACA3FF9@yahoo.com> User-Agent: Mutt/1.5.24 (2015-08-30) X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Jun 2018 15:43:24 -0000 On Thu, Jun 14, 2018 at 11:37:48PM -0700, Mark Millard wrote: > > When I look at: > > # vmstat -c -w 5 > procs memory page disks faults cpu > r b w avm fre flt re pi po fr sr da0 ad0 in sy cs us sy id > 1 0 0 416M 224M 1647 1 0 0 1856 142 0 0 144 1791 1024 4 2 94 > 0 0 0 416M 224M 9 0 0 0 0 1 0 0 4 85 116 0 0 100 > 0 0 0 416M 224M 12 0 0 0 0 1 0 0 2 93 113 0 0 100 > 0 0 0 416M 224M 9 0 0 0 2 1 1 0 4 64 121 0 0 100 > . . . > > and "man vmstat" I do not see any column that is the swap space > usage (nor any combination of columns to do such a calculation > from). > > I do not expect that vmstat reports what you are likely/primarily > looking for. > > An example is "avm" which for which the man page reports: > > . . . Note that the entire > memory object's size is considered mapped even if only a subset > of the object's pages are currently mapped. This statistic is > not related to the active page queue which is used to track real > memory. > > The free list size ("fre") is not sufficient either. > That seems astonishing. I imagined that among those columns _had_ to be reads from and writes to the swap partitions. It looks as if top -d 1000 | grep Swap produces a running list of swap usage, but one must guess how many times to iterate: bob@www:/usr/src % top -d 1000 | grep Swap Swap: 3072M Total, 30M Used, 3041M Free Swap: 3072M Total, 30M Used, 3041M Free Swap: 3072M Total, 30M Used, 3041M Free Swap: 3072M Total, 30M Used, 3041M Free Swap: 3072M Total, 30M Used, 3041M Free ....... Replacing the "1000" with "0" or "infinite" triggers a syntax error. Is there a special parameter that makes top run till it's killed, as in interactive mode? I didn't recognize any hint in the man page. Thanks for reading! bob prohaska