From owner-freebsd-ports@freebsd.org Tue Jan 1 17:36:22 2019 Return-Path: Delivered-To: freebsd-ports@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 6A7BD1422EAD for ; Tue, 1 Jan 2019 17:36:22 +0000 (UTC) (envelope-from phascolarctos@protonmail.ch) Received: from mail4.protonmail.ch (mail4.protonmail.ch [185.70.40.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.protonmail.ch", Issuer "QuoVadis Global SSL ICA G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1A12A77435 for ; Tue, 1 Jan 2019 17:36:20 +0000 (UTC) (envelope-from phascolarctos@protonmail.ch) Date: Tue, 01 Jan 2019 17:36:07 +0000 To: FreeBSD Ports From: Lorenzo Salvadore Reply-To: Lorenzo Salvadore Subject: Re: Poudriere very slow when building in i386 jails Message-ID: In-Reply-To: References: <20181231195011.GI84895@home.opsec.eu> <20181231211516.GJ84895@home.opsec.eu> <0IcOmQLiDHIXsW_vzCi2RBHRHl8vWpGQn9M_G6T-wm4OZKWWij8JkKol9780Ou45l4ycEqeecG-DGRL73St2EF_MmSz5rc_PL-cN_ODQ4E8=@protonmail.ch> <20190101053029.GK84895@home.opsec.eu> Feedback-ID: X6az_D2smWSR8MT5MHqXnWF0upxehDyHia7Id1cbayHNBUkRu3CIeusDsZHiivIIjmaKB1_OofpALrRUYjNz3w==:Ext:ProtonMail MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=7.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.protonmail.ch X-Rspamd-Queue-Id: 1A12A77435 X-Spamd-Bar: ------- X-Spamd-Result: default: False [-7.80 / 15.00]; ARC_NA(0.00)[]; HAS_REPLYTO(0.00)[phascolarctos@protonmail.ch]; R_DKIM_ALLOW(-0.20)[protonmail.ch:s=default]; REPLYTO_EQ_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_NONE(0.00)[protonmail.ch.dwl.dnswl.org : 127.0.5.0]; R_SPF_ALLOW(-0.20)[+ip4:185.70.40.0/24]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; TO_DN_ALL(0.00)[]; MX_GOOD(-0.01)[cached: mailsec.protonmail.ch]; DKIM_TRACE(0.00)[protonmail.ch:+]; DMARC_POLICY_ALLOW(-0.50)[protonmail.ch,quarantine]; NEURAL_HAM_SHORT(-0.97)[-0.969,0]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; IP_SCORE(-3.72)[ip: (-9.80), ipnet: 185.70.40.0/24(-4.86), asn: 19905(-3.88), country: US(-0.08)]; ASN(0.00)[asn:19905, ipnet:185.70.40.0/24, country:US]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[27.40.70.185.list.dnswl.org : 127.0.5.1] X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Jan 2019 17:36:22 -0000 > > Hi! > > > > > > SSD or spinning drives ? > > > > > > > > > I have 3.6 Gb of RAM and 2 Gb of swap. > > > > > > > > Run top and check the state of ARC. > > > > I think it needs much more RAM. > > > > > > I don't think it is a SSD (it has cylinders, sectors etc.). > > > If you can tell me a way to check it I will be glad to do it. > > > This is the output of diskinfo -v /dev/ada0 in case it answers the qu= estion: > > > /dev/ada0 > > > 512 # sectorsize > > > 320072933376 # mediasize in bytes (298G) > > > 625142448 # mediasize in sectors > > > 4096 # stripesize > > > 0 # stripeoffset > > > 620181 # Cylinders according to firmware. > > > 16 # Heads according to firmware. > > > 63 # Sectors according to firmware. > > > HGST HTS545032A7E680 # Disk descr. > > > > This is a HGST drive, spinning, no SSD. > > > > > TMA45DZG06UX8R # Disk ident. > > > No # TRIM/UNMAP support > > > 5400 # Rotation rate in RPM > > > Not_Zoned # Zone Mode > > > These are are lines of top's header (poudriere is building one of the= ports I think > > > might be problematic): > > > CPU: 32.8% user, 4.8% nice, 8.3% system, 0.5% interrupt, 53.5% idle > > > Mem: 1200M Active, 332M Inact, 32M Laundry, 2084M Wired, 187M Free > > > ARC: 1122M Total, 649M MFU, 323M MRU, 1371K Anon, 16M Header, 133M Ot= her > > > 401M Compressed, 1064M Uncompressed, 2.65:1 Ratio > > > > So, when it's slow during builds, it's most probably swapping. > I have found the real cause of most of the problems: it's ccache configurat= ion. I used the same cache of 15 Gb for the host (amd64) and for all jails (both= amd64 and i386): the i386 jails disliked it very much. Creating a new cache only for the i38= 6 jails fixed the problems. Maybe I will have to make the cache smaller to avoid pr= oblems in future, but for now it is almost empty and everything is fine. Thanks everybody for your help. Lorenzo Salvadore.