Re: poudriere-devel and tmpfs use by inactive builders: an example

Mark Millard <[email protected]>
Newsgroups gmane.os.freebsd.devel.ports
Message-ID <[email protected]>
On 4/30/26 02:43, Tatsuki Makino wrote:
> Hello.
> 
> When jobid03 is running and jobid06 has finished its work and is on
> standby, the environment of jobid06 remains intact, which means that
> tmpfs continues to use memory.

True.

Builder process 06 may well have instead completed what it last built
before builder process 03 started building lang/rust (which is what it
was building in my example context). I did not check on such timing
relationships.

So there were 7 other builders using tmpfs to complete with the RAM+SWAP
usage for lang/rust while lang/rust was the only port-package that was
being built --7 builders that had finished and had nothing more to do
until lang/rust finished building. They used 13+ GiBytes of RAM+SWAP
while lang/rust was building by itself.

Such patterns contribute to systems being resource limited (RAM+SWAP)
for doing port-package builds.

The system in question has 32 GiBytes of RAM. 13 GiBytes is more than
1/3rd of the available RAM's size.

> When looking inside /usr/local/poudriere/data/.m/main-CA76-default/06/
> var/db/pkg/local.sqlite, all the packages installed as dependencies of
> the last built port remain installed, and if llvm19 are installed, it
> seems to consume as much as 2GB.

Such was still installed under .../06/usr/local/ . The df -m showed 1693
MiBytes in use in that tmpfs instance. (I did not look at the content of
local.sqlite myself.)

> 
> ...isn't it right?

It is a further description of what I was reporting.

> 
> Regards.
> 
> On 2026/04/30 12:22, Mark Millard wrote:
>> # poudriere version
>> poudriere-git-3.4.99.20260425
>>
>> The following is an extraction of tmpfs lines from a df -m ouptput in a
>> UFS system context. The only active builder was 03 . All other future
>> builders were waiting for 03 to finish because they were dependent on
>> 03's results.
>>
>> 1M-
>> blocks   Used  Avail Capacity  Mounted on
>> 131780   2329 129451     2%
>> /usr/local/poudriere/data/.m/main-CA76-default/03
>> 131442   1991 129451     2%
>> /usr/local/poudriere/data/.m/main-CA76-default/03/usr/local
>> 131334   1883 129451     1%
>> /usr/local/poudriere/data/.m/main-CA76-default/06/usr/local
>> 131144   1693 129451     1%
> 
> (omit)(omit)
> 
>> The total of the non-03 tmpfs space used: 1991+. . .+97 == 14184
>> So: approx.= 13.85 GiBy†es.
>>
>>
> 
> 
> 


-- 
===
Mark Millard
marklmi at yahoo.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.