From owner-freebsd-arm@freebsd.org Sun Sep 2 17:57:01 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 C411DFF5420 for ; Sun, 2 Sep 2018 17:57:01 +0000 (UTC) (envelope-from ronald-lists@klop.ws) Received: from smarthost1.greenhost.nl (smarthost1.greenhost.nl [195.190.28.92]) (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 6945D818C3 for ; Sun, 2 Sep 2018 17:57:01 +0000 (UTC) (envelope-from ronald-lists@klop.ws) Received: from smtp.greenhost.nl ([213.108.110.112]) by smarthost1.greenhost.nl with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1fwWcH-0003eN-Pt; Sun, 02 Sep 2018 19:56:54 +0200 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes To: "Mark Millard" , "bob prohaska" Cc: freebsd-arm@freebsd.org Subject: Re: RPI3 swap experiments (r338342 with vm.pageout_oom_seq="1024") References: <20180814014226.GA50013@www.zefox.net> <20180815013612.GB51051@www.zefox.net> <20180815225504.GB59074@www.zefox.net> <20180901230233.GA42895@www.zefox.net> <20180902083217.GA44384@www.zefox.net> <6B8E28DC-075D-4829-9BEA-F36DDB1E2A25@yahoo.com> <20180902152717.GB44384@www.zefox.net> Date: Sun, 02 Sep 2018 19:56:54 +0200 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: "Ronald Klop" Message-ID: In-Reply-To: <20180902152717.GB44384@www.zefox.net> User-Agent: Opera Mail/12.16 (FreeBSD) X-Authenticated-As-Hash: 398f5522cb258ce43cb679602f8cfe8b62a256d1 X-Virus-Scanned: by clamav at smarthost1.samage.net X-Spam-Level: / X-Spam-Score: -0.2 X-Spam-Status: No, score=-0.2 required=5.0 tests=ALL_TRUSTED, BAYES_50 autolearn=disabled version=3.4.0 X-Scan-Signature: 388a8ff653e0601f0215f26536afca72 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Sep 2018 17:57:02 -0000 On Sun, 02 Sep 2018 17:27:17 +0200, bob prohaska wrote: > On Sun, Sep 02, 2018 at 06:57:15AM -0700, Mark Millard wrote: >> Was this with or without (presuming a ufs file system): >> >> tunefs: trim: (-t) enabled >> >> ? If enabled, with or without: >> >> sysctl vfs.ffs.dotrimcons=1 >> >> In other words: was "consolidation of TRIM / BIO_DELETE >> commands to the UFS/FFS filesystem" enabled? Disabled? >> > > No, it was not. By all accounts TRIM enabling won't affect USB2.0 > devices, > and it's fairly clear the bottleneck is in USB, not microSD. Trim is > enabled > for mmcsd0s2a, but sysctl vfs.ffs.dotrimcons=1 hasn't been invoked. I'll > turn Sysctl vfs.ffs.dotrimcons is about FFS/UFS. Not about swap. So unless there is UFS on the same device as swap, the sysctl will not have any effect. Regards, Ronald. > it on later, to check for bad side effects, but there's no obvious > reason to > think it'll help. > > At the moment the diskscript is reporting: > > dT: 10.005s 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 5.2 0 0 > 0.0 0.2 mmcsd0 > 10 0 0 0 0.0 0 2 13790 0 0 > 0.0 89.9 da0 > 0 0 0 0 0.0 0 2 3.9 0 0 > 0.0 0.1 mmcsd0s2b > 0 0 0 0 0.0 0 9 5.2 0 0 > 0.0 0.2 mmcsd0s2 > 9 0 0 0 0.0 0 2 13790 0 0 > 0.0 89.9 da0b > Sun Sep 2 08:17:14 PDT 2018 > Device 1K-blocks Used Avail Capacity > /dev/da0b 1048576 494352 554224 47% > /dev/mmcsd0s2b 1048576 478860 569716 46% > Total 2097152 973212 1123940 46% > Sep 2 08:14:38 www kernel: swap_pager: indefinite wait buffer: bufobj: > 0, blkno: 1649558, size: 4096 > Sep 2 08:14:38 www kernel: swap_pager: indefinite wait buffer: bufobj: > 0, blkno: 1654590, size: 16384 > > Top is reporting ~10-50% idle time, not surprising given delays writing > to da0b. > I was hoping the pager might favor microSD given the much faster I/O > times, > but evidently not. Seems to be a strict round-robin division of labor. > > Thanks for reading! > > bob prohaska > _______________________________________________ > freebsd-arm@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org"