From owner-freebsd-arm@freebsd.org Fri Jun 15 20:19:07 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 E55FE101B0BB for ; Fri, 15 Jun 2018 20:19:06 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic309-21.consmr.mail.gq1.yahoo.com (sonic309-21.consmr.mail.gq1.yahoo.com [98.137.65.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 467C58188B for ; Fri, 15 Jun 2018 20:19:06 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: AP3jB7IVM1lWr.GJGGyoGnuyrdYWKc4JO0MWOhJdWVJv_uPA_UuQ1e8lDiyqvv_ 36wy0g8H0vuwz_M0z7rsIzOIZV2VPAXCJdmffe_STu_ll4dMamCIe59yqLRyk_sYLx06uwla499V QPNLH_2W2G4D6VwrGXceVc9wDxTaXCsrcarow.wrI8ghWaDqD1TDdpoe3dZrvW11AbrbViA63iiX 4Os3yCeWBhEEcywVI07kxqzw1EuZ64V.YWxAkvd3o87MCEyr12y8UDAc7Ke22tXk.dvugg0dK1OF UWWSISNYTg82FRGfWG9c8CPz8sC_PtR3XYBTtADr4koYN2kzu8AImFfBZVXKTw1s6Te4af3fa4Vx GZjBMFZ1eRNxnSoJDkA_aTtPr4_po9tKSfuMBUeqhBe.tCrWLTV6mWVXKPLhwnw4TFlzI0IW.8O5 xPTjc23C1nkUnGPdc3rQKDvaNP1PJganpmF8uIMNwCwSQN6c5MyMzWwq3k_StQQhdJGkrZf7qz1y zmy0ctFOyfA37UYFOLCX.0MFIUqKsGKfeUPttMQm6KvpkDZYPEjfuqCBZtE4tA_8f1JCKKGE0FoZ waazJ.UINHl1ijhcsMiEh_u85.Fvq6Fa5ul286QrlDYkPLJinms5_ON0cvGz2ZaDJHu3FVMBPq6C 3Z6JilpFQZf1Idx8M3WokBNOV.xuEABF.BXrKTO_96m8BWtH4eWQroCSWKupyEsDeRGaKq3BM5C. _dBoPjdMkw9eTpeqQohwA4BDH_pOiw3cB5fcEmcwF95NS_C_TBs73KoxPc7Pfy0t98arI2_RpGdU ij5w7R5EDysFpjjsZhJ89XwIPbnHEuXGrkWcKdAzFp5ii.YQii11lshlJhSC8wRJi9IOrL9uUBNw YpTyU.egBxuWLq0uJzEf1_cNq6m7w0Flp08.tb3CokJgdKovZcqIuo9CGwGnQT4wa2JN3ioBpBxB ZpuHDTAY- Received: from sonic.gate.mail.ne1.yahoo.com by sonic309.consmr.mail.gq1.yahoo.com with HTTP; Fri, 15 Jun 2018 20:18:59 +0000 Received: from ip70-189-131-151.lv.lv.cox.net (EHLO [192.168.0.109]) ([70.189.131.151]) by smtp423.mail.gq1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID a0d40ca6ab7332edf6b7fa58ea166bc0; Fri, 15 Jun 2018 20:18:58 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 11.4 \(3445.8.2\)) Subject: Re: GPT vs MBR for swap devices From: Mark Millard In-Reply-To: <20180615164202.GB39777@www.zefox.net> Date: Fri, 15 Jun 2018 13:18:56 -0700 Cc: Warner Losh , "freebsd-arm@freebsd.org" , "Rodney W. Grimes" Content-Transfer-Encoding: 7bit Message-Id: <91986169-F9AE-45AA-BA34-332BB89C5439@yahoo.com> 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> <20180615154334.GA39777@www.zefox.net> <20180615164202.GB39777@www.zefox.net> To: bob prohaska X-Mailer: Apple Mail (2.3445.8.2) 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 20:19:07 -0000 On 2018-Jun-15, at 9:42 AM, bob prohaska wrote: > On Fri, Jun 15, 2018 at 09:57:17AM -0600, Warner Losh wrote: > >> gstat -Bd -I 10 -f > gstat-swap-data.dat >> >> would be how I'd recommend collecting it. This file may get kinda big >> depending how long it takes to trigger the weird state. I'm hoping that if >> you put this on a known good device, we'll power through the issues. We >> might not get perfect correlation with this, but the data should show all >> kinds of crazy before the system drives off the cliff if I'm right, so we >> don't need perfect data. >> > > Apologies, we spoke of gstat earlier. I lost the distinction between > gstat and vmstat. In the case at hand the possible swap devices are > > /dev/da0b (this is the one causing trouble) > /dev/mmcsd0s3b > /dev/mmcsd0s3d > > > what would the correct look like? > > Is there any indication why problems seen on the RPI3 do not seem > apparent on an RPI2? A 2 GB USB flash swap partition seems to work > successfully on the Pi2. gstat and top/swapinfo are good for different things: gstat: for various I/O rates and such to the swap partition(s) top: for samples of how much swap space is in use (total). swapinfo: per swap partition swap space usage and the total. (swapinfo requires use of separate looping/sleeping for it to repeatedly report.) (swapinfo is a specialization/limitation of pstat.) There may be times when you want information about both aspects (I/O rates and usage-size figures from similar time frames). === Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)