From nobody Mon Jan 22 03:27:57 2024 X-Original-To: dev-commits-src-main@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 4TJFzc20LDz56srm for ; Mon, 22 Jan 2024 03:28:12 +0000 (UTC) (envelope-from jrtc27@jrtc27.com) Received: from mail-wr1-f52.google.com (mail-wr1-f52.google.com [209.85.221.52]) (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 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TJFzb1jhhz4wwR for ; Mon, 22 Jan 2024 03:28:11 +0000 (UTC) (envelope-from jrtc27@jrtc27.com) Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=freebsd.org (policy=none); spf=pass (mx1.freebsd.org: domain of jrtc27@jrtc27.com designates 209.85.221.52 as permitted sender) smtp.mailfrom=jrtc27@jrtc27.com Received: by mail-wr1-f52.google.com with SMTP id ffacd0b85a97d-33922d2cb92so2412677f8f.1 for ; Sun, 21 Jan 2024 19:28:11 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705894089; x=1706498889; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=j/uLPsxr4GzEw1Vi8D3zWjYgJoSPL4e5wO7F7f5ZidQ=; b=WminVo2ooUkuIO7MMVSXXuAcHADqMHC/1pIFTsUn/CgQwUKdhHmpn7oAA3tL+TBYAl NNatpHLr2Zhstg71dEqwObi69xZhIp4LrUB2aTteGpsFtYvpMS+hBLngxygAXJIOQL33 sLWBCLoL84Jm9Aq7HG4ZgvM6wrpLtv7tIvpe+VBiYgta1zu0yMGjLMrL842uTQHUBJwq ZFiaz8IMiBdactoM7mu6wZSOUPTPgu4Yr8KkJbmQfPLf8n4yQ8WF7FTGdAYP2muKqjlV YZ8VuGAz83PiBhUNYunbYP94A4/vXzxu/fzAkWxniSWlRybKWzJ9Hw1tceq1a76xD/Ln SO+w== X-Gm-Message-State: AOJu0YyK4FOa7P/tfIdWKIGT1nQ3o45bMkodTbIvw3q914JdQhCqQtks EwAiMiMTdg4cIyBG0coUThMaUwejN6MgOyK4OwT4iPARmxla1T60L2IsHdDqmx0= X-Google-Smtp-Source: AGHT+IGm9ANKf7tYtQYkGLvRZheHPZM/452KCMktjPHPshqrpogVvg91nOryzmjwM3AVcjvba35hYA== X-Received: by 2002:a5d:4704:0:b0:337:aa99:5e9d with SMTP id y4-20020a5d4704000000b00337aa995e9dmr1064569wrq.164.1705894089260; Sun, 21 Jan 2024 19:28:09 -0800 (PST) Received: from smtpclient.apple ([131.111.5.246]) by smtp.gmail.com with ESMTPSA id e1-20020a5d65c1000000b0033921b2a5d4sm7464297wrw.75.2024.01.21.19.28.08 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 21 Jan 2024 19:28:08 -0800 (PST) Content-Type: text/plain; charset=utf-8 List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.200.91.1.1\)) Subject: Re: git: 636592343c3e - main - tmpfs: increase memory reserve to a percent of available memory + swap From: Jessica Clarke In-Reply-To: <202312191534.3BJFY3fo030908@gitrepo.freebsd.org> Date: Mon, 22 Jan 2024 03:27:57 +0000 Cc: "src-committers@freebsd.org" , "dev-commits-src-all@freebsd.org" , "dev-commits-src-main@freebsd.org" Content-Transfer-Encoding: quoted-printable Message-Id: References: <202312191534.3BJFY3fo030908@gitrepo.freebsd.org> To: Mike Karels X-Mailer: Apple Mail (2.3774.200.91.1.1) X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.40 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; MV_CASE(0.50)[]; FORGED_SENDER(0.30)[jrtc27@freebsd.org,jrtc27@jrtc27.com]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17:c]; MIME_GOOD(-0.10)[text/plain]; DMARC_POLICY_SOFTFAIL(0.10)[freebsd.org : SPF not aligned (relaxed), No valid DKIM,none]; MIME_TRACE(0.00)[0:+]; TO_DN_SOME(0.00)[]; ARC_NA(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; FREEFALL_USER(0.00)[jrtc27]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; FROM_HAS_DN(0.00)[]; TO_DN_EQ_ADDR_SOME(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_NEQ_ENVFROM(0.00)[jrtc27@freebsd.org,jrtc27@jrtc27.com]; RCVD_VIA_SMTP_AUTH(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[dev-commits-src-main@freebsd.org]; R_DKIM_NA(0.00)[]; MLMMJ_DEST(0.00)[dev-commits-src-main@freebsd.org]; RWL_MAILSPIKE_POSSIBLE(0.00)[209.85.221.52:from]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[209.85.221.52:from] X-Rspamd-Queue-Id: 4TJFzb1jhhz4wwR On 19 Dec 2023, at 15:34, Mike Karels wrote: >=20 > The branch main has been updated by karels: >=20 > URL: = https://cgit.FreeBSD.org/src/commit/?id=3D636592343c3ec0feb61a4d8043676381= 384420dd >=20 > commit 636592343c3ec0feb61a4d8043676381384420dd > Author: Mike Karels > AuthorDate: 2023-12-19 15:33:33 +0000 > Commit: Mike Karels > CommitDate: 2023-12-19 15:33:33 +0000 >=20 > tmpfs: increase memory reserve to a percent of available memory + = swap >=20 > The tmpfs memory reserve defaulted to 4 MB, and other than that, > all of available memory + swap could be allocated to tmpfs files. > This was dangerous, as the page daemon attempts to keep some memory > free, using up swap, and then resulting in processes being killed. > Increase the reserve to a fraction of available memory + swap at > file system startup time. The limit is expressed as a percentage > of available memory + swap that can be used, and defaults to 95%. > The percentage can be changed via the vfs.tmpfs.memory_percent = sysctl, > recomputing the reserve with the new percentage but the initial > available memory + swap. Note that the reserve can also be set > directly with an existing sysctl, ignoring the percentage. The > previous behavior can be specified by setting = vfs.tmpfs.memory_percent > to 100. >=20 > Add sysctl for vfs.tmpfs.memory_percent and the pre-existing > vfs.tmpfs.memory_reserved to tmpfs(5). >=20 > PR: 275436 > MFC after: 1 month > Reviewed by: rgrimes > Differential Revision: https://reviews.freebsd.org/D43011 I just got: make[6]: Could not create temporary file /tmp/makeDl4i9S: No space = left on device after doing a buildworld -j4 on a 4 core, 16 GiB system where /tmp is a tmpfs, with the prior buildworld having taken me past this commit, which I strongly suspect to be the cause. Whilst I understand the motivation behind your commits, this is a sad regression to have; it=E2=80= =99s not exactly a particularly strange situation. The system is a HiFive Unmatched, for what it's worth. Jess