From owner-freebsd-hackers@freebsd.org Wed Feb 24 17:04:16 2021 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 7D64C562CB2 for ; Wed, 24 Feb 2021 17:04:16 +0000 (UTC) (envelope-from fjwcash@gmail.com) Received: from mail-qv1-xf2e.google.com (mail-qv1-xf2e.google.com [IPv6:2607:f8b0:4864:20::f2e]) (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-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Dm2MM5R74z3nLt for ; Wed, 24 Feb 2021 17:04:15 +0000 (UTC) (envelope-from fjwcash@gmail.com) Received: by mail-qv1-xf2e.google.com with SMTP id cw15so574840qvb.11 for ; Wed, 24 Feb 2021 09:04:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=54tCw4bHZdxwmHL/lo0n7DjPMSkabebCLjBcFQUH9aY=; b=a+2fVO7thzwDakWINjRJwQW68hgL0qv36u1dAESJKwESBhzksy1sHzD/2dIzpPbsXx 7zDhzvqywBO2GdpTiWnoHrS+eTQDlT0RqzfZcl8ZKurl9HdzX0ZEdD3FioDm18GIcFLq 6NJ3GLwynWtDj1hMlWAD+6cSn5ITr2qYW6PertoxdmfQuRyFJ4oC8k40Hak0G+4h5D4s 9JWdlpdaWC6oDO6Km4+jvVqdj0UgctUdNfCPXNFxdb6bhazmp/Pq/QPItZ0in5uuV43d zpEUh0UDsV+AE/ACb0qmZ+8EGOSJCXlcz4EzOnGCtoJ4r+vskwN0j5a7hRAoaFD25sya c0+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=54tCw4bHZdxwmHL/lo0n7DjPMSkabebCLjBcFQUH9aY=; b=gdXd0dg2HZdgLegp+BHEaDNj9FX3wik9rUJRXYdg1rc44VQ0A/nSVyGr+FtPy2DjF3 EuPcwuLOlXoVAiJ6m1sr0XmheLpSG7UH56AzclmO5G5YGkJnbchfLQCFWpXBw8oyd7NC IwRdsu6hvQW+3OzVKq3r2FgX96qRr6cK0YJoc37JxH3bw71XAuXO/zETl9JYgS0PvYux um7S4aFOUaxSGShxsdDCEWKnzPNSc0xoR+AFnHIP6VN2mWgsBs9QI700lDVOgokls4HZ P4rN7WgvPRWNYnxzNfidSmyiHxjCUl5zyym20SKFSJo8bZkoUS9f5NlKBaLDzltdQ02o MIjQ== X-Gm-Message-State: AOAM532WfJDhBP+1yImxRredGEY6WC4W68ehMDDDEaaag0GZ7JQ/mn5F 4xJ8yXeOusihH9mfuOSnbXZ5pStk1p/NZPe+cllfXcrRRvM= X-Google-Smtp-Source: ABdhPJyG2SnxNwMUXqvf4DUpt5/CiVqFBBYeqebWnyOj3uNrAQPOGsCxbZeRYWWJH+T65iY8F7IQNpyT9Mpm1I6emuQ= X-Received: by 2002:a05:6214:b11:: with SMTP id u17mr31139900qvj.50.1614186254387; Wed, 24 Feb 2021 09:04:14 -0800 (PST) MIME-Version: 1.0 References: <1984125.0OzZcVfBr4@ravel> <500F4BE2-87C4-45F8-85A9-326498F47CC5@gid.co.uk> In-Reply-To: From: Freddie Cash Date: Wed, 24 Feb 2021 09:04:03 -0800 Message-ID: Subject: Re: The out-of-swap killer makes poor choices To: FreeBSD Hackers X-Rspamd-Queue-Id: 4Dm2MM5R74z3nLt X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=a+2fVO7t; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of fjwcash@gmail.com designates 2607:f8b0:4864:20::f2e as permitted sender) smtp.mailfrom=fjwcash@gmail.com X-Spamd-Result: default: False [-2.00 / 15.00]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RBL_DBL_DONT_QUERY_IPS(0.00)[2607:f8b0:4864:20::f2e:from]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[2607:f8b0:4864:20::f2e:from:127.0.2.255]; NEURAL_SPAM_SHORT(1.00)[1.000]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::f2e:from]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-hackers] Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.34 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Technical discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Feb 2021 17:04:16 -0000 On Wed, Feb 24, 2021 at 9:00 AM Thierry Thomas wrote: > Le mer. 24 f=C3=A9vr. 21 =C3=A0 15:26:20 +0100, Bob Bishop > =C3=A9crivait : > > > > For such cases, another solution exists on Linux to dynamically enlar= ge > > > the swap partition (something like dphys-swapfile or SwapSpace - see > > > ), but I do not know if such = a > > > tool exists on FreeBSD? > > > > You can of course add swap to a running system using swapon(8), but I > > have no idea whether this will improve behaviour if the system is > > already low on resources. > > But swapon requires a manual action, this is not dynamically adjusted. > Isn't that what the sysutils/swapexd port does? https://www.freshports.org/sysutils/swapexd/ --=20 Freddie Cash fjwcash@gmail.com