From owner-freebsd-arm@freebsd.org Sun Jul 1 07:12:30 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 6B47C1037737 for ; Sun, 1 Jul 2018 07:12:30 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic315-10.consmr.mail.gq1.yahoo.com (sonic315-10.consmr.mail.gq1.yahoo.com [98.137.65.34]) (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 E2D2C833ED for ; Sun, 1 Jul 2018 07:12:29 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: an3blREVM1lSHi3K.y8_jgDOoQ00o25LByJ.KlphWIITdPcdZR3KFg_SIZHGddf aDBCZZr.CoJd2MXebOj4gxYc5os.WOAm0Z4WIxEyn08kGJrzmpy1N_gXv3lYjtg8jMctLzXJVBdy mkW7y.fB52b5nO1z1P8wXy7H2B_3fEI6aTq_cK1VT41AuetqQrknb7O5W7HdJTbT2vQAKu0VA9iz 2zCEqaFeFK5HN1SV.b.qdn8zAOZ3JJgEzUkn.xNJ1XL3_kBHCoac5qZkoGdt6WWiwbz24yuOU_en Sp6Z0NqLjPnuiVUQJa7gVqFdNQfNi0D5z_o7EhDmIMeeNdEkFmQi6w8LQ3WPSDtdr8YfmpqR7HNL S7Kkq_NUXDyNH9wndNraDbNJbe5fyUENV0R_4mUdQ4Mgfa5EwnmbtpX8hhdAT6SP6S2sKNve7i2h OIxTlNmdjswlfoEoAgg7nMl_uXXLSzlZQp3E8oEKzHBXcyFKHB5Yc8cHH6NJ5KMfxAKFSKjmRbpI k1P0yH6QwQx1ML4FSkIvYm0cm6M8PytRZ5Wxe3Q26TStZMBR35178LFLTTS9A_WtMkeKK1PFknu7 6VgnwQu8asUJnI9PmtNSa4oyJkOslgC_gsTjx4JliDdiYGtdYlo95NmbvXnPcO1_NR44ESjnodWA gDfn9jKuQXmKYS1hiCWY5ZaKisjrK7Dc6y9nRTIckf2DT6nktBjdkFOVRttgENIecU_F5uMRZR3C EUSc2IggzJI3HJQtd9ZD_XhVET.TRUsC06Q.Jj2p9J3ccQQWwPVOBvAZmET6YUx.lDGOYpped.3n GgheAJ98OyemyNL84ZzcrU4MDT2He_U4PbLzcEBtJteKtVyjHRuJfh37n2.zp.U7Dfc97r.1pcMy al_FDGj_4fjcFcgR._E3UB0k3ukjf3Ni42WeV9QRV14w4kXUI12i467UW_JhyT8rzDijo0hMhJsF c9a8FCgrkDckdrxnCiK9YnaSb_pBj7HE- Received: from sonic.gate.mail.ne1.yahoo.com by sonic315.consmr.mail.gq1.yahoo.com with HTTP; Sun, 1 Jul 2018 07:12:28 +0000 Received: from ip70-189-131-151.lv.lv.cox.net (EHLO [192.168.0.105]) ([70.189.131.151]) by smtp407.mail.gq1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 2ab294b36eedae912c556efcde594b8a; Sun, 01 Jul 2018 06:42:01 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 11.4 \(3445.8.2\)) Subject: Re: RPI3 swap experiments From: Mark Millard In-Reply-To: <20180701025354.GA49303@www.zefox.net> Date: Sat, 30 Jun 2018 23:42:00 -0700 Cc: Trev , freebsd-arm@freebsd.org Content-Transfer-Encoding: 7bit Message-Id: <5202FC09-B76A-4E03-BC2F-8144B505E0BA@yahoo.com> References: <20180627054027.GA22144@www.zefox.net> <20180627194217.GA27793@www.zefox.net> <20180628022457.GA30110@www.zefox.net> <7B9D272D-3EDE-46FA-8A1C-AEE65047167C@yahoo.com> <20180628163328.GA33408@www.zefox.net> <51e208b4-9f14-58f7-1e70-6ef8db2c0bed@sentry.org> <20180629155131.GA35717@www.zefox.net> <20180701025354.GA49303@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.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, 01 Jul 2018 07:12:30 -0000 On 2018-Jun-30, at 7:53 PM, bob prohaska wrote: > On Sun, Jul 01, 2018 at 09:42:15AM +1000, Trev wrote: >> bob prohaska wrote on 30/06/2018 01:51: >>> On Fri, Jun 29, 2018 at 10:28:25PM +1000, Trev wrote: >>>> >>>> Jun 29 20:20:35 rpi3 kernel: pid 66844 (c++), uid 0, was killed: out of >>>> swap space >>>> >>>> At the time of "out of swap" only 157M of the 4G swap was in use. The >>>> 4GB swap partition is on a 4GB USB2 memory key (da1p1), everything else >>>> is on the sdcard. There are no excessively long ms/w being recorded. >>>> There are no USB or other related errors. >>>> >>> >>> That's a little surprising, and disturbing. By my experience your setup >>> should have run to completion. >>> >>> Do you see a "too much swap" complaint? I don't know if it's a problem, >>> but 4 GB of swap triggers one on my RPi3. 3 GB does not. 2 GB is enough >>> to finish -j4 buildworld. >> >> Jun 30 23:32:12 rpi3 kernel: pid 60735 (c++), uid 0, was killed: out of >> swap space >> >> No go with 2GB (I deleted the da0p1 swap partition; destroyed da0; then >> remade it it with a 2GB p1; then rebooted - no "too much swap" >> complaints). Out of swap with 56M of 2GB used. And this was with make >> -j2 buildworld. >> > It just crossed my mind that the successful -j4 buildworlds that used > USB swap (both mechanical and flash) separate from /usr and /var placed > the swap on a powered USB hub. It would be exceeding strange if that > proved helpful, but as things are going.... Power issues have been mentioned before in this exchange, but it can be more like what one might notice with a oscilloscope than with a Digital Multi-Meter. If the device sometimes (even very briefly) requires more than the rpi3 provides (voltage or current) the device will likely fail sometimes despite a DMM not showing anything interesting. The same device might work fine on a powered hub that always provides sufficient voltage and current (on all time scales involved). I've had these sorts of situations before. Without a proper set of instruments to monitor for power problems with, it is a pain to figure out for sure if such is what is going on. So I tend to use a powered hub for USB storage. > The other successful -j4 buildworlds put swap on the root microSD card. > I'd rate that a harder experiment, even if there is free space on the card. > My talents with gpart leave much to be desired. If you're properly gifted > it might also be worth trying. > > . . . === Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)