poudriere builds (base: amd64, jail: arm64.aarch64) and resource limits
Mark Millard
marklmi at yahoo.com
Fri Jan 1 03:25:24 UTC 2021
On 2020-Dec-31, at 14:17, Mark Millard <marklmi at yahoo.com> wrote:
> On 2020-Dec-31, at 05:08, Kurt Jaeger <pi at FreeBSD.org> wrote:
>
>> Hello,
>>
>> Roland posted a patch to build databases/cassandra4 on arm64.aarch64 in
>> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=252068
>> and I built it on my 13-jail:
>>
>> arm 13.0-CURRENT 1300132 r368817 arm64.aarch64 svn+ssh 2020-12-20 10:38:52 /pou/jails/arm
>>
>> The build fails almost at the end with:
>>
>> cd /wrkdirs/usr/ports/databases/cassandra4/work/apache-cassandra-4.0-beta2-src/build/dist && /bin/sh -c '(/usr/bin/find -Ed $1 $3 | /usr/bin/cpio -dumpl $2 >/dev/null 2>&1) && /usr/bin/find -Ed $1 $3 \( -type d -exec /bin/sh -c '\''cd '\''$2'\'' && chmod 755 "$@"'\'' . {} + -o -type f -exec /bin/sh -c '\''cd '\''$2'\'' && chmod 0644 "$@"'\'' . {} + \)' COPYTREE_SHARE javadoc /wrkdirs/usr/ports/databases/cassandra4/work/stage/usr/local/share/doc/cassandra/
>> find: /bin/sh: Argument list too long
>> *** Error code 1
>>
>> and Ronald compared it to a build on amd64. He found that my jail has
>> a surprising small data seg size:
>>
>> data seg size (kbytes, -d) 131072
>>
>> Any ideas on how to raise the data seg size in the poudriere jail ?
>>
>
> What does rctl report? (Not that I've ever used RACCT/RCTL.)
>
> # rctl
> rctl: RACCT/RCTL present, but disabled; enable using kern.racct.enable=1 tunable
>
> From what I read in man rctl, "jail" is one of the "subject" categories and
> "datasize" is one of the "resources". So it looks like rctl is one of the ways
> a specific limit could be imposed.
>
> I'm guessing you would look/control from outside the jail.
Looks like for all but amd64, 128 MiByte is the default data seg size:
# grep -r DFLDSIZ sys/*/include/vmparam.h
sys/amd64/include/vmparam.h:#ifndef DFLDSIZ
sys/amd64/include/vmparam.h:#define DFLDSIZ (32768UL*1024*1024) /* initial data size limit */
sys/arm/include/vmparam.h:#ifndef DFLDSIZ
sys/arm/include/vmparam.h:#define DFLDSIZ (128UL*1024*1024) /* initial data size limit */
sys/arm64/include/vmparam.h:#ifndef DFLDSIZ
sys/arm64/include/vmparam.h:#define DFLDSIZ (128*1024*1024) /* initial data size limit */
sys/i386/include/vmparam.h:#ifndef DFLDSIZ
sys/i386/include/vmparam.h:#define DFLDSIZ (128UL*1024*1024) /* initial data size limit */
sys/mips/include/vmparam.h:#ifndef DFLDSIZ
sys/mips/include/vmparam.h:#define DFLDSIZ (128UL*1024*1024) /* initial data size limit */
sys/powerpc/include/vmparam.h:#ifndef DFLDSIZ
sys/powerpc/include/vmparam.h:#define DFLDSIZ (128*1024*1024) /* default data size */
sys/riscv/include/vmparam.h:#ifndef DFLDSIZ
sys/riscv/include/vmparam.h:#define DFLDSIZ (128*1024*1024) /* initial data size limit */
===
Mark Millard
marklmi at yahoo.com
( dsl-only.net went
away in early 2018-Mar)
More information about the freebsd-arm
mailing list