From owner-freebsd-ports@freebsd.org Thu Dec 7 12:07:46 2017 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9458CE84FEA for ; Thu, 7 Dec 2017 12:07:46 +0000 (UTC) (envelope-from fernando.apesteguia@gmail.com) Received: from mail-lf0-x22c.google.com (mail-lf0-x22c.google.com [IPv6:2a00:1450:4010:c07::22c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 145F72A2D for ; Thu, 7 Dec 2017 12:07:46 +0000 (UTC) (envelope-from fernando.apesteguia@gmail.com) Received: by mail-lf0-x22c.google.com with SMTP id f18so7868262lfg.8 for ; Thu, 07 Dec 2017 04:07:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=d9aD730l1v9PID9qMi/MNbx25+U5Ymx+gs4C2f7etv4=; b=asWM6sqhYOZb6sOfXD0GJcpgRHdcAZk9g2ueHC0F4w+6ShFNBhYlhk7zOxdcvU2wug 8OC5lkK38EI3rITN88Nz2N2THWHQgU4asMuCaFkvmDBqOKgIpw6uAbE3kHJayR7B671F dCXHQ+JBv8hxttZ8WK8tDr8xpmu/kzHWsxFzUoLbRog4hgRm9mTR3E6S4kzh3R/kbi2q Np9tIWhNyprzdWdQQKbc5JHWqNt616+ttLn3036f5bhfzY1aYP9MHRD6auE7Snhumg1I rkdy5wxpGxa5pPaPEwTdjDiL7tCG0n9eXUq5G7NY8MX2NT8iank6tuMz0JXBsSP63cOl C2HA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=d9aD730l1v9PID9qMi/MNbx25+U5Ymx+gs4C2f7etv4=; b=XYO4BDjohlVsZ3Q3HTZlMCQvPEjLn0MLKTcaIDjGPY1k4PZ4QY2i7Eey6aw1FuVrF1 HiTSYwhwayY7PugZ5Cllngru6c3OqUtOsf167/QD4JnH1bBIZmDIXtoeeaG9Ic9NTnW1 pXwfknEq8qIe2omyI1qFMfYrdWNN5cKg0CNQ3pn+uOFJgOWT8mqzuoK2sx0g1csWpo2s Lb1Wh/2WT20NsQKVRRYP695p/mYaHal0C6xLWcxUjBO3ec8nm6MHDZaspSr6D7++89xw tvrziyk8e6a6ujzW7HvnbV2UsiHj7JzgmuT70qG0ivF9Pu/BtRxxroLFGindeaNv/OnN GvNw== X-Gm-Message-State: AJaThX5men6Ff2mZjFoQQgoJAV9PKyhtPu4ikFNzbkSyil7sJ7nbsEYd 8Q5v0cPWX3FBlvY0rJN914std/k2mcqkT2bRVT4= X-Google-Smtp-Source: AGs4zMaD2AGalikbZZODSp9/9q31Tyrt5v7uS0k6V3tfXkbmlPN5DVJNVpNvmvY0HxF791l5bPZHNIwuXBBgJ3JoM9w= X-Received: by 10.25.16.97 with SMTP id f94mr12534994lfi.172.1512648463881; Thu, 07 Dec 2017 04:07:43 -0800 (PST) MIME-Version: 1.0 Received: by 10.25.92.147 with HTTP; Thu, 7 Dec 2017 04:07:42 -0800 (PST) Received: by 10.25.92.147 with HTTP; Thu, 7 Dec 2017 04:07:42 -0800 (PST) In-Reply-To: <04c3f524-b594-078b-f28c-597c4da595e8@rlwinm.de> References: <865f71f7-5d2d-90fd-8b41-c00d2317d083@rlwinm.de> <04c3f524-b594-078b-f28c-597c4da595e8@rlwinm.de> From: =?UTF-8?Q?Fernando_Apestegu=C3=ADa?= Date: Thu, 7 Dec 2017 13:07:42 +0100 Message-ID: Subject: Re: Flavors *COMPLETELY* break the port system (synth and poudriere are useless) To: Jan Bramkamp Cc: FreeBSD Mailing List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Dec 2017 12:07:46 -0000 El 7 dic. 2017 12:00, "Jan Bramkamp" escribi=C3=B3: On 06.12.17 23:23, Dave Horsfall wrote: > On Wed, 6 Dec 2017, Jan Bramkamp wrote: > > Synth and poudriere are parallel build tools and as such are very taxing >> on the system. I suspect your system is unstable under such load, becaus= e >> of a configuration error or unreliable hardware. One such configuration >> error that bit me is tmpfs mounted without size limitation. Without size >> limits it can exhaust RAM + swap and crash the system. Limit the sum of = all >> your tmpfs mounts to significantly less than RAM + swap. >> > > What happens then? Does the build process merely crash instead? I ask > because my minimal system (all I can afford on my "income") has 512MB > memory (all it will take) ad 1GB swap; building Ruby etc kills it, so I u= se > packages in that case i.e. no customisation if I wanted it. > In that case I wouldn't use tmpfs at all. One conceptual difference between the old portmaster/portupgrade tools and the newer tools like poudriere and synth is that the old tools try to minimize rebuilds by modifying the live system. This can break the system if the upgrade fails and will leave it inconsistent while the upgrade runs. Also some ports misbehave and interact with installed software they didn't list as dependency if it is installed. For these reasons the new tools create jail/chroot environments to build ports in a clean environment. Poudriere is designed around ZFS features (snapshots and cloning). Those can be emulated with UFS and overlay file systems, but Poudriere works best on a big ZFS based system with enough RAM to keep the build dirs in tmpfs (e.g. 8GB RAM per parallel builder and one builder per CPU core/thread). You can configure poudriere to use a single builder and UFS, but it will be a slow process. Synth reduces that overhead somewhat by reusing the host system. Its focus is more on keeping a single system up to date instead of compiling sets of ports to custom repos for other systems and the curses UI is a nice touch. Also synth can try to avoid building ports by prefetching packages from an upstream repo. Can poudriere prefetch packages too? To be honest few FreeBSD devs still care about self hosting FreeBSD on such tiny systems (0.5GB RAM, 1-2 cores). There are devs interested on optimizing FreeBSD for small embedded systems but you aren't expected to rebuild FreeBSD from source on a wireless access point or dedicated firewall appliance. If you have to compile and value your time get adequate hardware. Old 2U dual sockets servers may burn a lot of power but are quite cheap and you don't have to run a compile server 24/7. _______________________________________________ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org"