🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: muc.lists.freebsd.fs
Article #79

Re: compressing an in-ram filesystem

#79
From: Don Lewis
Date: Tue, 01 Dec 2026 06:38
41 lines
3499 bytes
On 29 Nov, void wrote:
> On Sun, Nov 29, 2026 at 04:58:37AM -0800, Don Lewis wrote:
>>On 29 Nov, void wrote:
>>> Hi,
>>> As subject, is there such a thing?
>>> I'd like to mount a compressed /usr/obj in ram.
>>
>>This would be an awesome optimization for poudriere.  If the files are
>>compressed going into a compressed tmpfs, then memory pressure and swap
>>usage would be greatly reduced.
> 
> Yeah this is the sort of context I'd be looking for. rpi4b/8GB.
> 
> Also for make buildworld and friends if you want to optimise world/kernel 
> for your arch. Then a script at the end of the build/install, but before 
> reboot, zipping it all up into an on-disk file, so all that obj isn't wasted.
> 
> Useful if you want to follow -current, have custom kernel, remove all the 
> debug from everywhere.
> 
> I think I can get away with a 5GB tmpfs uncompressed but it would be really
> great to have a compressed tmpfs for this job because as you probably
> know, obj compresses *really well*. I'm going to try this with 15-stable.
> 
> Up till now I've mounted src and obj in nfs but the build gets fs errors
> with more than -j1. I wonder if lockd would help on the client.
> But obj in tmpfs would, I imagine, be *way* quicker.

I'm at the other end of the spectrum.  Ryxen CPU maxed out with 64 GB of
RAM and 100 GB of NVME swap.  I've got poudriere configured to use tmpfs
for wrkdir, data, and localbase (everything other than the jails).

Swap is untouched for most of the run, but hits 60-80GB near the end
when the big ports like chromium get built.  Even then, the I/O rate to
swap is much less than the spinning rust I/O rate.  All of those C++
compiles only slowly produce output.


--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Technical Details
Message-ID: <tkrat.b5e48e7a5f45e1b2@FreeBSD.org>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.szaf.org!news.karotte.org!news.muc.de!.POSTED.news.muc.de!not-for-mail
References: <> <aww1r2JCwlXgsHzT@int21h>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.szaf.org!news.karotte.org!news.muc.de!.POSTED.news.muc.de!not-for-mail
From: Don Lewis <truckman@FreeBSD.org>
Newsgroups: muc.lists.freebsd.fs
Subject: Re: compressing an in-ram filesystem
Date: Mon, 30 Nov 2026 22:38:21 -0800 (PST)
Organization: Newsgate at muc.de e.V.
Approved: news-admin@muc.de
Distribution: world
Message-ID: <tkrat.b5e48e7a5f45e1b2@FreeBSD.org>
References: <> <aww1r2JCwlXgsHzT@int21h>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; CHARSET=us-ascii
Injection-Info: news.muc.de; posting-host="news.muc.de:193.149.48.2";
	logging-data="60873"; mail-complaints-to="news-admin@muc.de"
X-Original-To: freebsd-fs@mlmmj.nyi.freebsd.org
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim;
	t=1796107104;
	h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
	 to:to:cc:cc:mime-version:mime-version:content-type:content-type:
	 in-reply-to:in-reply-to:references:references;
	bh=2kpophY03XX+Dl/kG/eqsOpkBe7a+uEcWhKYqEFF3jY=;
	b=T0SAH9/8PUed5IBTQVHYTATzxKqYnjXyG291yaJYvx+XKM+qcMY3/i6szA9gIT8QAowt1j
	8esQN18cDCfTaXtRec40NwIU/G+wvsQgH8amGnUujI5VMc2q8XQAyadTo3WJx6lLCUQ1x4
	Vc+Uv3hIqexuVwrXslQu8CIxpabi9aWS4t9v7LDSUt+uXSJlRrP1Fdh7/KzIFHM5o9hIGU
	794I1938JDDnxWhdUUoJGfhvVUZA/e9y828AUENPzwE5MpvKKCxFit6GfiomGgpmuXs054
	TWdaPRnXXh39EZ4bcY586yjJu/SRbZK6oIHNJw6kQ5lMUt3GxtbF9OBMaRez/w==
In-Reply-To: <aww1r2JCwlXgsHzT@int21h>
Precedence: list
Content-Disposition: INLINE
X-Newsgate-Id: f02c70b8849f+
X-No-Archive: Yes