Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Oct 2023 15:43:35 +0200
From:      Matthias Apitz <guru@unixarea.de>
To:        Matthew Seaman <matthew@freebsd.org>
Cc:        ports@freebsd.org
Subject:   Re: Rust build huge memory consumption
Message-ID:  <ZTkbhw_PCxe300-o@c720-1400094.fritz.box>
In-Reply-To: <344ca749-411b-4a0e-94ae-7d0055a633b1@FreeBSD.org>
References:  <09a4bfb8-ba61-4e05-b646-973104337f77@groumpf.org> <20231025064626.A5DA6168@slippy.cwsent.com> <5816a79c-9bd0-4c41-9520-eed853aa15a4@groumpf.org> <344ca749-411b-4a0e-94ae-7d0055a633b1@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help

I'm building 2200 ports on a Dell PowerEdge r210, 16GB RAM, 34GB swap, 8
CPU; system is 1400094 and ports from git October 14; and I use for rust
a single podriere job. The build time was:

...
===>  Cleaning for rust-1.72.0
build of lang/rust | rust-1.72.0 ended at Sun Oct 15 03:04:41 CEST 2023
build time: 02:37:44

What really improved my overall building with poudriere (normaly 4
builders) are the following settings before building:

# cat sysctls4poudriere.sh
sysctl vfs.read_max=128
sysctl vfs.aio.max_buf_aio=8192
sysctl vfs.aio.max_aio_queue_per_proc=65536
sysctl vfs.aio.max_aio_per_proc=8192
sysctl vfs.aio.max_aio_queue=65536
sysctl vm.pageout_oom_seq=120
sysctl vm.pfault_oom_attempts=-1

With these settings I have no page faults or killed processes anymore.

	matthias

-- 
Matthias Apitz, ✉ guru@unixarea.de, http://www.unixarea.de/ +49-176-38902045
Public GnuPG key: http://www.unixarea.de/key.pub



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