From nobody Sat Jan 04 17:30:24 2025 X-Original-To: freebsd-hackers@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 4YQSC22Vq1z5j40n for ; Sat, 04 Jan 2025 17:30:38 +0000 (UTC) (envelope-from SRS0=Nfm9=T4=quip.cz=000.fbsd@elsa.codelab.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4YQSC02Frfz4ph0 for ; Sat, 4 Jan 2025 17:30:36 +0000 (UTC) (envelope-from SRS0=Nfm9=T4=quip.cz=000.fbsd@elsa.codelab.cz) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=quip.cz header.s=private header.b=aj4GbCqX; dkim=pass header.d=quip.cz header.s=private header.b=giRN2XKb; spf=none (mx1.freebsd.org: domain of "SRS0=Nfm9=T4=quip.cz=000.fbsd@elsa.codelab.cz" has no SPF policy when checking 94.124.105.4) smtp.mailfrom="SRS0=Nfm9=T4=quip.cz=000.fbsd@elsa.codelab.cz"; dmarc=none Received: from elsa.codelab.cz (localhost [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id 2CBDAD7884; Sat, 4 Jan 2025 18:30:28 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quip.cz; s=private; t=1736011828; bh=65JI8H1o8PpPxeaQtiRRBm5xQS7Yq8c+Pjc54mAwSxM=; h=Date:Subject:To:Cc:References:From:In-Reply-To; b=aj4GbCqX8vPqS1rs0p/tgd4udqRDM4D2O8xcnKr433Nu9LMFsiS4svBZbN8LMxwh5 rM0xU3n+A8P/NBBO8d2J/mjRM8gidvJ+k/jsYi+YuczDhCH+GpTbNyvsqHUD9I6Rhi ZUoFSzwzCnOowynTPwSHxWYs/THuhxV8TE4uvIGQ= Received: from [192.168.145.49] (ip-89-177-27-225.bb.vodafone.cz [89.177.27.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id 53D0DD788A; Sat, 4 Jan 2025 18:30:25 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quip.cz; s=private; t=1736011825; bh=65JI8H1o8PpPxeaQtiRRBm5xQS7Yq8c+Pjc54mAwSxM=; h=Date:Subject:To:Cc:References:From:In-Reply-To; b=giRN2XKbUmCZfVwpvndtuL3Q5mRf6iqa1woeHN16FxtJkI86B7ZfadO6QJouAwpMp JxjLgUT8lIGB97ZfdAxMe/DoYrVDquS3404qajae2Y96eQGH/H7+o3ZCy340WJu0Hi WvcSnEW46T+wQYMnofe2dMvc8aPdpzdhHexX9yL8= Message-ID: <9e71d8eb-74c3-4bcb-89b1-90d4f9746168@quip.cz> Date: Sat, 4 Jan 2025 18:30:24 +0100 List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: curious crashes when under memory pressure To: Chris Torek , Peter 'PMc' Much Cc: freebsd-hackers@freebsd.org References: Content-Language: en-US From: Miroslav Lachman <000.fbsd@quip.cz> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4YQSC02Frfz4ph0 X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.99 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FORGED_SENDER(0.30)[000.fbsd@quip.cz,SRS0=Nfm9=T4=quip.cz=000.fbsd@elsa.codelab.cz]; R_DKIM_ALLOW(-0.20)[quip.cz:s=private]; MIME_GOOD(-0.10)[text/plain]; XM_UA_NO_VERSION(0.01)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; DMARC_NA(0.00)[quip.cz]; R_SPF_NA(0.00)[no SPF record]; TO_DN_SOME(0.00)[]; ASN(0.00)[asn:42000, ipnet:94.124.104.0/21, country:CZ]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; TAGGED_RCPT(0.00)[]; FREEMAIL_TO(0.00)[gmail.com,citylink.dinoex.sub.org]; MID_RHS_MATCH_FROM(0.00)[]; FROM_NEQ_ENVFROM(0.00)[000.fbsd@quip.cz,SRS0=Nfm9=T4=quip.cz=000.fbsd@elsa.codelab.cz]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_LAST(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org]; DKIM_TRACE(0.00)[quip.cz:+] On 04/01/2025 17:27, Chris Torek wrote: > On Sat, Jan 4, 2025 at 7:01 AM Peter 'PMc' Much > wrote: >>> I'm swapping to a zfs mirror >> >> Well, You shouldn't do that. > > Why not? Swapping to a *file* on zfs has obvious issues, but swapping > to a mirrored swap partition seems like it should be entirely safe. A > bit slow (double writes) but I spent $ on RAM rather than M.2 drives > on the theory that I can add those later as needed. Do you have swap on ZFS or not (in the first post you said "swapping to a zfs mirror")? If yes then it can cause the problems in memory pressure because system has no free memory but ZFS needs memory. If you want the swap on a mirror, then use separate partition on 2 disks and add gmirror on top of them. Kind regards Miroslav Lachman