From nobody Thu Jan 11 12:26:12 2024 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4T9kRZ35pLz55blD for ; Thu, 11 Jan 2024 12:26:18 +0000 (UTC) (envelope-from void@f-m.fm) Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4T9kRY4YyBz42gn for ; Thu, 11 Jan 2024 12:26:17 +0000 (UTC) (envelope-from void@f-m.fm) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=f-m.fm header.s=fm2 header.b=Rh0U6BQ4; dkim=pass header.d=messagingengine.com header.s=fm2 header.b=DzUVoeB7; dmarc=pass (policy=none) header.from=f-m.fm; spf=pass (mx1.freebsd.org: domain of void@f-m.fm designates 66.111.4.26 as permitted sender) smtp.mailfrom=void@f-m.fm Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id CB85E5C0116 for ; Thu, 11 Jan 2024 07:26:16 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Thu, 11 Jan 2024 07:26:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=f-m.fm; h=cc :content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm2; t=1704975976; x=1705062376; bh=CNRU1efqLs J7hPy2ikYXEMxXz9lOFV1Q3BhHsTZrQSA=; b=Rh0U6BQ43Q23mTwYsQidLFG6Cj DhuDS/8rdZeDZZUeZPAAyJZA/VfGIYGTdELIwPRwCF5lMnwh2tazNMxZlq56iuNG SqAnVt7l3H1xyFWnb+hz37FivSJcVC8+iAAE1ddBdALTRED5kzEMjsmYPhDot6VK H8BzuH6gTTYdJg1vtRPAEdE5lTJkqi4L3156tZXJGdh/o+Y2fcZatPvXQ52ARxcM ZatpSSe2JUyh4muE55qHbPh1MLE5zFG2DhhvJ7cZcMvffw/1ZQpAWPqY0IA5NaPn ao2j4XCWbT83+9+PCTfEASy3e6wFZmA64WCogFOq0ieNoissURJ8d93UklIQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1704975976; x=1705062376; bh=CNRU1efqLsJ7hPy2ikYXEMxXz9lO FV1Q3BhHsTZrQSA=; b=DzUVoeB7kmOtBWHaqNQnCdaFyt8uLA921zFlJ3iz7xuO UIOah1f2WEO5UA2EwYSrxwX04cDug3A1nzuUT0oSSalx9ToUanPolrE1l65DsFJ6 MCKfnXKtC6gHsmrwbJMGeVzTx+s2IwAeqvNbmf5hMY/k3wi2GEopycfDF8WEsU+0 elB7bwZIR5uuRhDYA892q3Bu8TCE+o06WBmMW/U9rAbs7ex27UCrso2Ez9OY0E4P Pwt1lT48clIUpoIK9wR3fKCwfhzF6t6rw7regu/gfhtbfjDlFODyTeTKdtTFifX5 /NYYxqIvDSLdHYPb2ZOsZz8PVHnqWsNGW9jtJvVkVQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvdeifedgfeelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvuffkfhggtggujgesthdtre dttddtvdenucfhrhhomhepvhhoihguuceovhhoihgusehfqdhmrdhfmheqnecuggftrfgr thhtvghrnhepkeeluddvlefhieelfefggffhffektdehleelgfdugfdvgeekjeejuddthe ehgfeunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhep vhhoihgusehfqdhmrdhfmh X-ME-Proxy: Feedback-ID: i2541463c:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Thu, 11 Jan 2024 07:26:16 -0500 (EST) Date: Thu, 11 Jan 2024 12:26:12 +0000 From: void To: freebsd-current@freebsd.org Subject: Re: poudriere: swap_pager: out of swap space Message-ID: Mail-Followup-To: freebsd-current@freebsd.org References: List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.69 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.99)[-0.994]; DMARC_POLICY_ALLOW(-0.50)[f-m.fm,none]; MID_RHS_NOT_FQDN(0.50)[]; R_SPF_ALLOW(-0.20)[+ip4:66.111.4.26]; R_DKIM_ALLOW(-0.20)[f-m.fm:s=fm2,messagingengine.com:s=fm2]; RWL_MAILSPIKE_GOOD(-0.10)[66.111.4.26:from]; RCVD_IN_DNSWL_LOW(-0.10)[66.111.4.26:from]; MIME_GOOD(-0.10)[text/plain]; FREEMAIL_FROM(0.00)[f-m.fm]; RCVD_TLS_LAST(0.00)[]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_THREE(0.00)[3]; RCPT_COUNT_ONE(0.00)[1]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; FREEMAIL_ENVFROM(0.00)[f-m.fm]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; TO_DN_NONE(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[f-m.fm:+,messagingengine.com:+]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org]; ASN(0.00)[asn:19151, ipnet:66.111.4.0/24, country:US]; RCVD_VIA_SMTP_AUTH(0.00)[]; MISSING_XM_UA(0.00)[]; DWL_DNSWL_NONE(0.00)[messagingengine.com:dkim] X-Rspamd-Queue-Id: 4T9kRY4YyBz42gn On Thu, Jan 11, 2024 at 02:21:19AM +0000, Lexi Winter wrote: >hi list, > >i'm having a recurring problem with poudriere that i hope someone might >have an idea about. > >i'm building packages with poudriere on a system with 32GB memory, with >tmpfs and md disabled in poudriere (so it's using ZFS only) and with the >ZFS ARC limited to 8GB. > >running poudriere produces many kernel log messages like this: > >Jan 10 21:40:00 ilythia kernel: swap_pager: out of swap space >Jan 10 21:40:00 ilythia kernel: swp_pager_getswapspace(2): failed >Jan 10 22:41:55 ilythia kernel: swap_pager: out of swap space >Jan 10 22:41:55 ilythia kernel: swp_pager_getswapspace(21): failed >Jan 10 23:48:03 ilythia kernel: swap_pager: out of swap space >Jan 10 23:48:03 ilythia kernel: swp_pager_getswapspace(8): failed >Jan 11 00:05:00 ilythia kernel: swp_pager_getswapspace(1): failed >Jan 11 00:21:45 ilythia kernel: swp_pager_getswapspace(10): failed I also have a 32GB system. My way of dealing with this is to set, in the global poudriere.conf USE_TMPFS=all TMPFS_BLACKLIST="rust llvm* electron* libreoff* iridiu* chromium* qt* gcc*" TMPFS_BLACKLIST_TMPDIR=${BASEFS}/data/cache/tmp PARALLEL_JOBS=1 ALLOW_MAKE_JOBS=yes and, in /etc/sysctl.conf # filesystem vm.pageout_oom_seq=120 vm.pfault_oom_attempts=-1 vm.pageout_update_period=0 # avail memory = 33303379968 (31760 MB) / 8 = minimum for vfs.zfs.arc.max vfs.zfs.arc_max=4162922496 The most important settings out of the lot is PARALLEL_JOBS=1 and ALLOW_MAKE_JOBS=yes otherwise building things like rust overwhelm the system. This is on 14-stable amd64. The TMPFS_BLACKLIST_TMPDIR= is on SSD (not a particularly performant one, but it's quicker than spinning rust) --