Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Oct 2017 14:05:55 +0700
From:      Eugene Grosbein <eugen@grosbein.net>
To:        Freddie Cash <fjwcash@gmail.com>, Steve Kargl <sgk@troutmask.apl.washington.edu>
Cc:        FreeBSD Ports Mailing List <ports@freebsd.org>, "Michael W. Lucas" <mwlucas@michaelwlucas.com>
Subject:   Re: portmaster, portupgrade, etc
Message-ID:  <59D5D9D3.2070200@grosbein.net>
In-Reply-To: <CAOjFWZ6Nvuwd6YfnGZoMgMnRY9BkJkYwSw8Cz-_Z_t_AuUOHFA@mail.gmail.com>
References:  <20171004161649.GA51883@mail.michaelwlucas.com> <20171004171518.GA22519@troutmask.apl.washington.edu> <CAOjFWZ6Nvuwd6YfnGZoMgMnRY9BkJkYwSw8Cz-_Z_t_AuUOHFA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> Why compile ports directly on a box that is so hardware constrained that it
> will take multiple hours to do, when a "pkg update; pkg upgrade" takes only
> a few minutes?

I tried really hard to run small virtual machine (1GB RAM, 25G disk) hosted at Hetzner
without using ports and can say it's impossible. Pre-built packages from official repo
are just too heavy and bloat the system with unneeded run-time dependencies
not to mention impossibility to apply hot-fix in form of a patch.
And running own repository is just not an option for such system.

portupgrade (or analog) plus ZFS compressed svn-updates ports tree is lightest option in practice:

zfs_load="YES"
vfs.zfs.arc_max="40M"
vfs.zfs.vdev.cache.size="8M"
vfs.zfs.prefetch_disable="1"
vfs.zfs.vdev.trim_on_init="0"
vfs.zfs.compressed_arc_enabled="1"

You can even run UFS-based system with /usr/ports mounted occasionally
and zfs.ko/opensolaris.ko unloaded when not needed to free memory.





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?59D5D9D3.2070200>