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

Bryan Drewery <[email protected]> Fri, 8 May 2026 20:02:33 -0700
Newsgroups gmane.os.freebsd.devel.ports
Message-ID <[email protected]>
On 4/30/26 1:15 PM, Bryan Drewery wrote:
> On 4/30/26 2:43 AM, 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.
>> 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.
>>
>> ...isn't it right?
>>
>
> Yes the cleanup only happens at the start of a package build. So it is 
> possible for wasted space/memory after a build is done.
>
> I'll review and consider cleaning up the tmpfs at the end of 
> build_pkg() as well.
>
> Bryan
>
I logged it over at https://github.com/freebsd/poudriere/issues/1344 and 
have a potential patch there that I haven't had time to test yet. 
There's an unlikely error case to finish but it otherwise should work.