From owner-freebsd-stable@freebsd.org Sun Jun 28 07:02:44 2020 Return-Path: Delivered-To: freebsd-stable@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 E1C59343382 for ; Sun, 28 Jun 2020 07:02:44 +0000 (UTC) (envelope-from dwilde1@gmail.com) Received: from mail-lf1-x142.google.com (mail-lf1-x142.google.com [IPv6:2a00:1450:4864:20::142]) (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 49vhQX0kVsz42RY; Sun, 28 Jun 2020 07:02:43 +0000 (UTC) (envelope-from dwilde1@gmail.com) Received: by mail-lf1-x142.google.com with SMTP id u25so7284284lfm.1; Sun, 28 Jun 2020 00:02:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:reply-to:in-reply-to:references:from:date:message-id :subject:to:cc; bh=JUUerYeVtNLXu7DaYPLwz5ItmGL7DZjPtfvVSQ+Nf/c=; b=t0c3fMz6mqpSdkK48OiseewNwEgrz2j/NS595kVFuNfLz9mkrH7evFKE4VY6bQwYkn PlIndiq5L3wXi06+fy96LWsbVR9PAuyd0zaZ9gYUtypgIJgTIezIxMxjUH+AhBcero7p geCEczH9KrCGFEl/UmSDtNobulsMYzPk3QAjtNiRrtia++9lGOKNRhRAM80/WEP90Qez VhxY3GJ9jZoh8S1pfX4xcQW4/TScbfFSPCORKLlgRWCIUdSN4zQYL+L29Mekzd+gycQO GY+KwuqC9EMTrn2kOGSGjMvxiBo/PkuJAop1mXFgYLTikGp/Sb42UN0gRFw7wCFokoFk qGIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:reply-to:in-reply-to:references :from:date:message-id:subject:to:cc; bh=JUUerYeVtNLXu7DaYPLwz5ItmGL7DZjPtfvVSQ+Nf/c=; b=uniE0jQpMHHGfb4PRNp7Dfw27JBzRy73HvRSPMnqVRNUcyQrlrjy+9L53vQyij2Go7 t5bHW3HFFzKF5yNZClgtbhd/uAw8IQ7gsaW6SCWeZha9EGdct0oIDobNiJNm5nWqjXRq 1Hfx6Mu56ZCvD1DUXPedBHVXLft4sufB62/h0QaTaFPX2TgkO7YF7Cv3NI6s+6WoHOvi W2OxiHfQjIs9v21r7Wl1XeMe8XljQbf0oHpXdv5MYcrpPZsQJd8+4JLysBCAxrTCDCIh qpD5UIu8HwEJbLwqVd919VbOdpQuZYLr90d/KBe6x0Mw9pdQeWCMpV9c2SCBS3/KD7Fj XMUg== X-Gm-Message-State: AOAM532i4c1RRDyFoCRgW7zAxmiFQGfMha3Gm0zf8o2YSntRyJWewdXf facDG5V30kRjeHqQrbSL1B/KdXcrqxnrJh8L66/3Yvkz X-Google-Smtp-Source: ABdhPJyIsZGJlnJfgobrOJsf7eLlcUfjGREX35Udxyx0i/p0psLBvJIGcpG69/TaK8qwZXBvBo0APyvN0ufY9xgcB9g= X-Received: by 2002:a05:6512:10d3:: with SMTP id k19mr6324517lfg.78.1593327761858; Sun, 28 Jun 2020 00:02:41 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:ab3:4703:0:0:0:0:0 with HTTP; Sun, 28 Jun 2020 00:02:41 -0700 (PDT) Reply-To: dwilde1@gmail.com In-Reply-To: References: <20200625000410.GA10210@eureka.lemis.com> <20200625025248.GB10210@eureka.lemis.com> <20200626102331.GA6406@server.rulingia.com> <1140215402.1.1593187896838@localhost> From: Donald Wilde Date: Sun, 28 Jun 2020 00:02:41 -0700 Message-ID: Subject: Re: swap space issues To: Ronald Klop Cc: Bob Bishop , Peter Jeremy , "Greg 'groggy' Lehey" , freebsd-stable , ericbsd Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 49vhQX0kVsz42RY X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=t0c3fMz6; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of dwilde1@gmail.com designates 2a00:1450:4864:20::142 as permitted sender) smtp.mailfrom=dwilde1@gmail.com X-Spamd-Result: default: False [-2.70 / 15.00]; HAS_REPLYTO(0.00)[dwilde1@gmail.com]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; NEURAL_HAM_MEDIUM(-0.97)[-0.973]; FROM_HAS_DN(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; MIME_GOOD(-0.10)[text/plain]; FREEMAIL_REPLYTO(0.00)[gmail.com]; REPLYTO_ADDR_EQ_FROM(0.00)[]; RCPT_COUNT_FIVE(0.00)[6]; NEURAL_HAM_LONG(-0.92)[-0.917]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::142:from]; NEURAL_SPAM_SHORT(0.19)[0.193]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim] X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Jun 2020 07:02:44 -0000 On 6/27/20, Donald Wilde wrote: > On 6/26/20, Ronald Klop wrote: >> >> Van: Bob Bishop >> Datum: vrijdag, 26 juni 2020 17:18 >> Aan: Peter Jeremy >> CC: Donald Wilde , freebsd-stable >> >> Onderwerp: Re: swap space issues >>> >>> >>> >>> > On 26 Jun 2020, at 11:23, Peter Jeremy wrote: >>> > >>> > On 2020-Jun-25 11:30:31 -0700, Donald Wilde wrote: >>> >> Here's 'pstat -s' on the i3 (which registers as cpu HAMMER): >>> >> >>> >> Device 1K-blocks Used Avail Capacity >>> >> /dev/ada0s1b 33554432 0 33554432 0% >>> >> /dev/ada0s1d 33554432 0 33554432 0% >>> >> Total 67108864 0 67108864 0% >>> > >>> > I strongly suggest you don't have more than one swap device on >>> > spinning >>> > rust - the VM system will stripe I/O across the available devices and >>> > that will give particularly poor results when it has to seek between >>> > the >>> > partitions. >>> > Based on all recommendations on this thread (thanks, guys!), I've > rebuilt my i3 mule with exactly one 16G partition, as it has only > 'spinning rust' for a disk. My loader.conf has > kern.maxswzone=4200000 and ccache is fully active and working for both > root on tcsh and users on sh. That appears to be successful. this is still a MBR-based system, not GPT, due to BIOS issues, but it's a 'choose my battles' situation. > > I have yet to try synth again. I'm doing buildworld/buildkernel for > 12-STABLE, but evidence so far is good. 'top -t' is actually happy, > showing 16G (grog?), so I'll try firing up synth after another hour or > so on the latest fetch of the ports tree. Top appears to have gone south again. I give up, Greg! 'pstat -s' _is_ happy. Synth is still crashing hard, same issue. As I said in freebsd-ports on my thread about 'stable postgresql11', pg11 didn't like synth's request that I create a different directory because /usr/ports/distfiles didn't exist. Doing so and adding the DISTFILES to make.conf caused all kinds of problems. I am currently (I hope) building a successful pg11-server, but I've restored /usr/ports/distfiles and before I go to bed tonight I hope to kick off another synth run. This failure happened with three builders and three tasks per builder. The symptom, multiple times, has been that llvm80 takes forever and then causes the swap failure even though pstat -s is happy AND loader conf kern.maxswzone (=4200000) is sufficient for my 16G partition. I've tried installing llvm80 as a pkg, but that didn't help. The swap stays at zero usage, and then goes almost instantaneously to OOM. The only bit of advice I'm not completely compliant with is the use of a 16G swap partition where I was advised to set max to 8G. -- Don Wilde **************************************************** * What is the Internet of Things but a system * * of systems including humans? * ****************************************************