Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Sep 2024 22:41:08 -0700
From:      Chris <bsd-lists@bsdforge.com>
To:        Yuri <yuri@freebsd.org>
Cc:        Freebsd hackers list <freebsd-hackers@freebsd.org>
Subject:   Re: How to explain high memory consumption of a jail after all large processed in it have finished?
Message-ID:  <8401aac030b97331c4ade91438854884@bsdforge.com>
In-Reply-To: <ea8fb2d0-17c6-4152-aebf-8cc6083591b8@FreeBSD.org>
References:  <ea8fb2d0-17c6-4152-aebf-8cc6083591b8@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2024-09-12 11:45, Yuri wrote:
> I noticed that when the port lang/rust is building in the poudriere jail the
> memory consumption of the host system remains high all the way into the 
> packaging
> phase when the pkg-static process is the only active process and it consumes 
> a
> very little memory.
> 
> 
> During build a lot of memory is consumed, which is understandable. The 
> system
> remains at ~500MB of free memory through the build process, according to 
> top(1).
> 
> 
> But once the build is finished, poudriere goes into the "packaging" phase 
> which
> only runs a small pkg-static process that compresses the built files. 
> pkg-static
> is the only active process in the poudriere jail.
> 
> 
> What looks strange to me is that the host system's memory consumption 
> remains high
> through the "packaging" phase which itself is low in memory, and only goes 
> down
> when the jail is destroyed.
> 
> 
> How to explain the high memory consumption of a jail after all large presses 
> have finished?
Apologies in advance if already addressed, but I'm way behind on my email.
I'm gonna guess the compression stage is responsible. My experience shows it
really chews through CPU cycles, and as a result memory.

--Chris
> 
> 
> 
> Thanks,
> 
> Yuri

-- 
sent from a device written from and running on FreeBSD



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8401aac030b97331c4ade91438854884>