From owner-freebsd-arm@freebsd.org Mon Jun 18 23:42:25 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 E500D1006454 for ; Mon, 18 Jun 2018 23:42:24 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic302-22.consmr.mail.ne1.yahoo.com (sonic302-22.consmr.mail.ne1.yahoo.com [66.163.186.148]) (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 7E1467A186 for ; Mon, 18 Jun 2018 23:42:24 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: HowYzncVM1mECcnus57RDf8tg3HwhVFPs3.7VXHVbm.Obv2JjRxRo5JJcqzKXRD qqmefl3Fv7kaew3qBqo0XoPB.47Q_yxRQ7RAeSqaEdaeZWxWY3xbGo9RyxuPXlXqSWsPKKanjyPo .jFh6sTrMfHZ.Mj8fEAP4vNrZ_seOQP0nOOnE2_OBWTm6lI33pqo5Xz9AHus7eTewX6EZpJnALHQ Wjcw5JNUMEDFHqxKUbBzu4W4jLK0yBkQC.ckE3cjpdMpwdX2ZXYqRsXwbALK7yxirxIR70tAK7Dl E4Ingg19qCC67DOjqtt4cQkcnDoGcE8HZ0RGlNZAaBPzswt5TZ8mlMtbkWf_y23_68oTEnvZ7IBv jUJqiXMUUFpEcB0DT119IHsXCy2BNXtUE3mTzxHnPm1yRx9HOaKFO7IkCpRIeRiDVH6Mcl_cjfrn of7dTG2DZxiSfb_ZSCoyFmqV9ybdd.y0TVlCPXVpGddeNFlLSeI45IGkyx4Vx_jxHAouwD1pXddR CJO2UO3QXQtfrT7BbuLNQKGATR8XjPcE5EAPHvBsRZPQi4.y4KRw5fSQZNsitDAzswZLBuR4iuLK TXhZJ42shfunPaawSSZLyQHtPOpvJ312lOSspZZc3b5JH74EJReQ3b_EixF4g0QoUhge6MpvEJga lnO1sbpn8Q.sdfHt4zysXF27xLjVB.4Y9Dri0fR3oOjFYY8Jd6bp.dqUYdNgcs8_oJrVN7TKYB5G b4vrJQqHioS9CnClDglscKKr1YgPPJA.9X9rjKRlJ.vwz.m4lwA6SFf1JXRB1XPkLFmD7aClFuca mZWLzYGF0uz1kpNe1JwGdOtzfzM1JtkDee9CBvYPBzqVDtLVWDYQnqOV2LPBtxrBSi2GrLdzw2c4 uyhSBHGtUFpV_.rT9PVz3rmejaWEilW7v0AYhpHCfdi0OBOV1GxknW3fp368ry7qkS8p39R3ZWHt cqXl9 Received: from sonic.gate.mail.ne1.yahoo.com by sonic302.consmr.mail.ne1.yahoo.com with HTTP; Mon, 18 Jun 2018 23:42:23 +0000 Received: from ip70-189-131-151.lv.lv.cox.net (EHLO [192.168.0.105]) ([70.189.131.151]) by smtp413.mail.ne1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID f77194a64898ad4c22342b0568e0bfa2; Mon, 18 Jun 2018 23:42:23 +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: <20180618230419.GA81275@www.zefox.net> Date: Mon, 18 Jun 2018 16:42:21 -0700 Cc: freebsd-arm@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <7AB401DF-7AE4-409B-8263-719FD3D889E5@yahoo.com> <20180618230419.GA81275@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: Mon, 18 Jun 2018 23:42:25 -0000 On 2018-Jun-18, at 4:04 PM, bob prohaska wrote: > On Sat, Jun 16, 2018 at 04:03:06PM -0700, Mark Millard wrote: >>=20 >> Since the "multiple swap partitions across multiple >> devices" context (my description) is what has problems, >> it would be interesting to see swapinfo information >> from around the time frame of the failures: how much is >> used vs. available on each swap partition? Is only one >> being (significantly) used? The small one (1 GiByte)? >>=20 > There are some preliminary observations at >=20 > = http://www.zefox.net/~fbsd/rpi3/swaptests/newtests/1gbusbflash_1gbsdflash_= swapinfo/1gbusbflash_1gbsdflash_swapinfo.log >=20 > If you search for 09:44: (the time of the OOM kills) it looks like > both swap partitions are equally used, but only 8% full. >=20 > At this point I'm wondering if the gstat interval (presently 10 = seconds) > might well be shortened and the ten second sleep eliminated. On the = runs > that succeed swap usage changes little in twenty seconds, but the = failures > seem to to culminate rather briskly. One thing I find interesting somewhat before the OOM activity is the 12355 ms/w and 12318 ms/w on da0 and da0d that goes along with having 46 or 33 L(q) and large %busy figures in the same lines --and 0 w/s on every line: Mon Jun 18 09:42:05 PDT 2018 Device 1K-blocks Used Avail Capacity /dev/da0b 1048576 3412 1045164 0% /dev/mmcsd0s3b 1048576 3508 1045068 0% Total 2097152 6920 2090232 0% dT: 10.043s w: 10.000s L(q) ops/s r/s kBps ms/r w/s kBps ms/w d/s kBps = ms/d %busy Name 0 0 0 0 0.0 0 9 10.8 0 0 = 0.0 0.1 mmcsd0 46 0 0 0 0.0 0 16 12355 0 0 = 0.0 85.9 da0 0 0 0 0 0.0 0 9 10.8 0 0 = 0.0 0.1 mmcsd0s3 0 0 0 0 0.0 0 9 10.8 0 0 = 0.0 0.1 mmcsd0s3a 33 0 0 0 0.0 0 22 12318 0 0 = 0.0 114.1 da0d Mon Jun 18 09:42:25 PDT 2018 Device 1K-blocks Used Avail Capacity /dev/da0b 1048576 3412 1045164 0% /dev/mmcsd0s3b 1048576 3508 1045068 0% Total 2097152 6920 2090232 0% The kBps figures for the writes are not very big above. There is an earlier example of something similar, again for da0 and da0d having the large ms/w (and ms/r here): Mon Jun 18 09:32:00 PDT 2018 Device 1K-blocks Used Avail Capacity /dev/da0b 1048576 3516 1045060 0% /dev/mmcsd0s3b 1048576 3604 1044972 0% Total 2097152 7120 2090032 0% dT: 10.010s w: 10.000s L(q) ops/s r/s kBps ms/r w/s kBps ms/w d/s kBps = ms/d %busy Name 0 1 0 0 0.0 1 8 5.4 0 0 = 0.0 0.2 mmcsd0 6 1 0 1 373.9 1 18 1070 0 0 = 0.0 73.6 da0 0 0 0 0 0.0 0 7 6.1 0 0 = 0.0 0.1 mmcsd0s2 0 0 0 0 0.0 0 7 6.1 0 0 = 0.0 0.1 ufs/rootfs 4 1 0 1 373.9 1 18 1243 0 0 = 0.0 73.6 da0d Mon Jun 18 09:32:20 PDT 2018 Device 1K-blocks Used Avail Capacity /dev/da0b 1048576 3516 1045060 0% /dev/mmcsd0s3b 1048576 3604 1044972 0% Total 2097152 7120 2090032 0% =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)