Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Jun 2022 23:34:13 -0700
From:      Mark Millard <marklmi@yahoo.com>
To:        Bryan Drewery <bdrewery@FreeBSD.org>, freebsd-ports@freebsd.org
Subject:   poudriere-devel, USE_TMPFS="data", and "bulk -a -c" (for example)
Message-ID:  <E465F5A6-A0E2-40D7-9B4D-9D11D475281B@yahoo.com>
References:  <E465F5A6-A0E2-40D7-9B4D-9D11D475281B.ref@yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
I've been doing a experiment with starting a "bulk -a -c" on
an 8GiByte RPi4B to see how well my configuration choices
stand up to handling large builds in the limited context.
(I'll end up stopping it long before completion. It is
targeting armv7 via aarch64 hardware that can execute armv7
code.)

I noticed that:

# df -m /usr/local/poudriere/data/.m/main-CA7-bulk_a-default/ref/.p
Filesystem 1M-blocks Used Avail Capacity  Mounted on
tmpfs           1024  411   612    40%    =
/usr/local/poudriere/data/.m/main-CA7-bulk_a-default/ref/.p

after about a week and 4000+ ports built (and about 24 failed).

I have USE_TMPFS=3D"data" in use, trying to avoid having tmpfs
compete for memory much.

Looks like something like 'bulk -a -c' should avoid using
USE_TMPFS=3D"data" : too many ports to fit in the provided
space? This might be appropriate to document in
/usr/local/etc/poudriere.conf 's comments --if that
interpretation is correct.

I also noticed:

mnt_tmpfs() {
        [ $# -lt 2 ] && eargs mnt_tmpfs type dst
        local type=3D"$1"
        local dst=3D"$2"
        local limit size
                       =20
        case ${type} in
                data)
                        # Limit data to 1GiB
                        limit=3D1
                        ;;
               =20
                *)
                        limit=3D${TMPFS_LIMIT}
                        ;;
        esac

        [ -n "${limit}" ] && size=3D"-o size=3D${limit}G"
       =20
        mount -t tmpfs ${size} tmpfs "${dst}"
}

So there is no pre-existing hook for using
/usr/local/etc/poudriere.conf to have an alternate
USE_TMPFS=3D"data" limit. Should there be?

=3D=3D=3D
Mark Millard
marklmi at yahoo.com




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E465F5A6-A0E2-40D7-9B4D-9D11D475281B>