Date: Tue, 01 Jan 2019 17:36:07 +0000 From: Lorenzo Salvadore <phascolarctos@protonmail.ch> To: FreeBSD Ports <freebsd-ports@freebsd.org> Subject: Re: Poudriere very slow when building in i386 jails Message-ID: <j8-0N_CKPTflDciK-I4eNexlPAd574zqy1GQKEUX5BT5knQ3nH9nr390bKt5q8ZFLi1ZL-HNda5BPD6hkP9OjllTEKpPEayo1DnoeKFxgIA=@protonmail.ch> In-Reply-To: <pb8vddrvbT7kKgnfRk7B0dbECavwfK3n_kjtDOWSGa2ksTcH1Vo5mfQZNjwU9aDNFh97VvyAzWqy1Cg_-44QBRcAeuzC5lEm_UjwQTGARFA=@protonmail.ch> References: <h0qL7ZxuWdrOsQjD1ZDtWj4p60PByxerxqW1dBRpmSvnTnR36x1aOKwgsoOo3E7q-wQJ1cl4x4wCVe-hwXbCvxmQgCv8jWa5iNEcOLPL-2M=@protonmail.ch> <20181231195011.GI84895@home.opsec.eu> <v4N4zn61TrsCnHFK4V95TqNouhMaAYCLHZ2gM08W3QLMAKX3f4Lw8VPLhbsDdmZtPG2k6r8L2OjgWsRXvmLEqm03oqnlpgk3AZZtd1xAhFE=@protonmail.ch> <20181231211516.GJ84895@home.opsec.eu> <0IcOmQLiDHIXsW_vzCi2RBHRHl8vWpGQn9M_G6T-wm4OZKWWij8JkKol9780Ou45l4ycEqeecG-DGRL73St2EF_MmSz5rc_PL-cN_ODQ4E8=@protonmail.ch> <20190101053029.GK84895@home.opsec.eu> <pb8vddrvbT7kKgnfRk7B0dbECavwfK3n_kjtDOWSGa2ksTcH1Vo5mfQZNjwU9aDNFh97VvyAzWqy1Cg_-44QBRcAeuzC5lEm_UjwQTGARFA=@protonmail.ch>
next in thread | previous in thread | raw e-mail | index | archive | help
> > 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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?j8-0N_CKPTflDciK-I4eNexlPAd574zqy1GQKEUX5BT5knQ3nH9nr390bKt5q8ZFLi1ZL-HNda5BPD6hkP9OjllTEKpPEayo1DnoeKFxgIA=>