Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Jul 2026 04:06:55 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 296972] pkg(8) memory usage is "too damn high"
Message-ID:  <bug-296972-7788@https.bugs.freebsd.org/bugzilla/>

index | next in thread | raw e-mail

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=296972

            Bug ID: 296972
           Summary: pkg(8) memory usage is "too damn high"
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: pprocacci@gmail.com

pkg(8) memory usage seems quite excessive:

89739 root          1  75  -20    10G  3251M pfault   0   0:06   0.00% pkg

%pkg install feh
<-- snip --->
Fetching data: 100%   539 MiB  21.7 MB/s    00:26
DBG(1)[83226]> PkgRepo: extracting data of repo FreeBSD-ports
DBG(1)[83817]> PkgRepo: extracting signature of repo in a sandbox
Killed

# pkg info | wc -l
     325


Running this on a VM w/ 4 gigs of memory.  I could imagine software in the
ports tree that need compiling gobbling up a ton of memory but a package
manager -- doesn't seem right.

I mean ... this operation should a) download b) extract and c) install the
package.  Perhaps make record in the sqlite database, but ~4G (my limit) to do
these operations is absolutely crazy.

-- 
You are receiving this mail because:
You are the assignee for the bug.

home | help

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