From owner-freebsd-arm@freebsd.org Fri Jun 15 07:18:22 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 A836E1002213 for ; Fri, 15 Jun 2018 07:18:22 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic314-21.consmr.mail.gq1.yahoo.com (sonic314-21.consmr.mail.gq1.yahoo.com [98.137.69.84]) (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 2EC357D895 for ; Fri, 15 Jun 2018 07:18:22 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: Wu1NSjQVM1lNWFoPfFpm2XLVz4lQ3vTQQZvQwvtK1EwWn7ZO0EIAZgMrw7_hXRo HVt4MTyX1JPJI8kugkssuPYuXgkWJ40Pzfimlm6VoaFReYFo7KB4JHjOD2kYdvjx.5uD1PxaVabD ucZnXby6HPmUpaangx.Hr8LFjk6z43rHmlo9i5bnYMPFW0IGpQLHcIdCeNIKGWXEQG04N9bHZFIa JbBMPQmR9swx07oTop2xFFmBHMh2Dxuk8VOkLZEpsiQPo3QhvbLnatHBSYqUSNfIv5MgUHt9NDGt kTgasvpQY1YSYK4SgNOJutqo8QZ53MQdXFxQ.6l6VUjAm0zynQLe0_3c9qPTC9IocE_s6j9Qo3Pl 5JXVjfYXjwtiStM0Oor9BDHynBk7rBXjjCyGcq6BrB1PQELHZHtWsW8imWpAzGsErxb2WNA9RNLm gTJJvBOxDpV3GU5GAUntOBy.ad37GMIdOw8W1KWbimpHUHA2OKFUed891om4ebO0sI8i_WjC8TX3 5FDy8v6r0WMc1fmKGdVhxwiiOsGrv3tjC90Gq4NapyxAnMIvxhSJxYWwPxLGmwoHSmI0_8_iBM1Z IKnBQT6XfTgfp5bTTCEJSX0jxE.sG_4cyXP31u6r6R6zvJGfO6aAKGG7YRQsK0jUqA8QaMpF8YpT yWM1PGqxW7uqAbblI1WIlG_LzdKTSnBUqW3A5Y8FZd1Y_BcnFw5ypTFc2s7T9pn.ptk6LXzQRTdh vuF2R3_fjkIXLSZd7ByywRfouUZBcab.yK6f6ZmaCtZd5vpyFP58Y9.ywuLEM9wmoXKhHrG07CQI VZ.MAbk9MNXI_EhZPCYFlxiGoUs9UojRI7wsGOW2zJZkPQQ7LXZXMd8N464qwiavPOYbzAfzgW5O FHqJvbYFpnH2zjBl0FxqxsG9.rFA4rU1nCSdeTW8QoJxRDp1xDcJVkJNq3IUUEZtiSjdgqK3Koo0 xfGGN Received: from sonic.gate.mail.ne1.yahoo.com by sonic314.consmr.mail.gq1.yahoo.com with HTTP; Fri, 15 Jun 2018 07:18:20 +0000 Received: from ip70-189-131-151.lv.lv.cox.net (EHLO [192.168.0.109]) ([70.189.131.151]) by smtp422.mail.gq1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 52fb4ad77c201e6280a60c7ca80bd5d0; Fri, 15 Jun 2018 06:37:49 +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: <20180615051527.GB37370@www.zefox.net> Date: Thu, 14 Jun 2018 23:37:48 -0700 Cc: Warner Losh , freebsd-arm@freebsd.org, "Rodney W. Grimes" Content-Transfer-Encoding: quoted-printable Message-Id: <834EA7A6-B567-436F-96B2-0C75FACA3FF9@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> 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 07:18:22 -0000 # 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 On 2018-Jun-14, at 10:15 PM, bob prohaska wrote: > On Thu, Jun 14, 2018 at 10:00:59PM -0600, Warner Losh wrote: >>=20 >> I think that's because USB flash can't swap fast enough to keep up = with the >> page demand. You might be able to confirm this by looking at the = write >> rates to the swap portions for the various other media with gstat.=20 >=20 > I'll try capturing vmstat -c -w 5 to a file, but will need help=20 > interpreting the results. It seems particularly hard to correlate > vmstat output with corresponding compilation activity.=20 >=20 >> . . . 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. =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)