From nobody Thu Jan 11 09:23:25 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 4T9fNF6xK3z56yk9 for ; Thu, 11 Jan 2024 09:23:09 +0000 (UTC) (envelope-from ronald@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4T9fNF67Dqz4g4H; Thu, 11 Jan 2024 09:23:09 +0000 (UTC) (envelope-from ronald@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1704964989; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=tEDAoPiB0PPWDH/trfW1vADZcHLAdQzZzVAdmJ4TR/Q=; b=yNGHetEybMaGgsBWWKkJZIsCkX115F8vD3Yw/ITXO8wud+hmsijpCQXgs0koaZx8rAMQ2x ur2tNClhoyt7Z02rh3Re2R/RwJ9BemJblT/7GEGZzUClxsuA/tSYmxmPixT5gNJ6qnyGq4 tZ4NNQYoflwVlJBiDT7PMLR4dlFeJ0U6+yu0rQPt8cePWawT9f5OBdHfwwzkTPQyEPUMje X684LLcmasdBzrQLyEChi31YANBj1xiilS2mVjlaDFLToNZW/9kFTTzdEvYs+wExJYQ4jb WyFCrWxzT2L3tuoRf5O6YXRZttTFFg8vQe3bfuFEjQyYX5dY8eyJ88fNJz4A1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1704964989; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=tEDAoPiB0PPWDH/trfW1vADZcHLAdQzZzVAdmJ4TR/Q=; b=fTcfMoc6aa7zTkicURE1Iw0kwdbBmA2hiMzYw3TKZM+/3tPE0LJPHU5ubjs0ymA+PtlFWQ EQLNcOhd0Hqb0fC5HbN1sya5Vdseb1cv2s7gHX1ZqRp/dQqahvm38aRLK4qAutl5+fjZZk WQtMn22uhokcki9XZIfel2ipLboaMUGllKoirLIy6uvIUsJI6ymFazyGP4mBFzgDCzCtu0 pHRaVP/0mn3S0SSuWJUJoEecJ2+vNzSeYbivhYsEZyKzB5bamdIMMqjUAzFgqx35X6/wA5 oAhSYa18HwEv8yiN0XK4ezPH7aEw3nM1TD7V9II3QMidaeWZQzTM4dQuNjhJ7Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1704964989; a=rsa-sha256; cv=none; b=HfW06nUx1POszmfC/BkGgL9A1bEMxqDKEJWlbkP45w8npdmK6xb69i71HvNCMYXOCARopb Tv152uRLJZhokeCWn+XK20K/XDnSmF5acOGYFfqqvRlumeRjdBX0xQiE9aaiTVSbaGT+gj 8+VX9u0GVBq2oP8SB+WrCCUtVmiQqEshphk7tnUOqpUmgv7qLDdTn2R6ZfGJtieWQXEdBf N6erhZAdBzz13GS/pFcslqZTnxfaiC9ltVHruhqc+EpZbqUyfyXczjFKGie8d0xCQsDi0H dmixOmez/BiVLC0qo5rjGQFqOBglcItwDNHJpOX4ZsuicmVcZg8WxIC1dlwydg== Received: from [IPV6:2001:1c00:2709:2010:493e:9031:fcc0:f007] (2001-1c00-2709-2010-493e-9031-fcc0-f007.cable.dynamic.v6.ziggo.nl [IPv6:2001:1c00:2709:2010:493e:9031:fcc0:f007]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: ronald/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4T9fNF0HNszGNl; Thu, 11 Jan 2024 09:23:08 +0000 (UTC) (envelope-from ronald@FreeBSD.org) Message-ID: <94c6cf1b-10e4-49c4-aa1d-e87f8e8c3d09@FreeBSD.org> Date: Thu, 11 Jan 2024 10:23:25 +0100 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 User-Agent: Mozilla Thunderbird Subject: Re: poudriere: swap_pager: out of swap space To: Lexi Winter , freebsd-current@freebsd.org References: Content-Language: en-US From: Ronald Klop In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 1/11/24 03:21, 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 > > this is despite the system having a large amount of "Inact" memory > according to top(1): > > Mem: 3828M Active, 15G Inact, 2921M Laundry, 9263M Wired, 1559M Buf, 892M Free > ARC: 3113M Total, 994M MFU, 884M MRU, 39M Anon, 49M Header, 1139M Other > 1296M Compressed, 4130M Uncompressed, 3.19:1 Ratio > Swap: 2048M Total, 2048M Used, 8192B Free, 99% Inuse > > from what i can tell, these swap errors don't cause any issues with the > poudriere build, but they do seem to hinder interactive usage by causing > long hangs. > > does anyone have some idea what's going on here? i don't really > understand why the system has used 100% of available swap space when it > has plenty of Inact memory it could free to fulfill requirements. My first guess would be that you are using a tmpfs tmp dir which uses swap as the backing-storage which is now full. Configure poudriere with USE_TMPFS=no to prevent this. Hope this helps. Regards, Ronald.