Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 09 Feb 2024 19:41:07 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 276931] ports-mgmt/pkg: writes big journal files
Message-ID:  <bug-276931-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D276931

            Bug ID: 276931
           Summary: ports-mgmt/pkg: writes big journal files
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: pkg@FreeBSD.org
          Reporter: d8zNeCFG@aon.at
          Assignee: pkg@FreeBSD.org
             Flags: maintainer-feedback?(pkg@FreeBSD.org)

Scenario:
- FreeBSD stable/14 as of today
- ports latest

Result:
- It seems that since some days pkg(8) has started to create huge journal f=
iles
in /var/db/pkg whenever a package is deleted or added:

[0]# ll /var/db/pkg
total 45617
-rw-r--r--  1 root wheel 71303168 Feb  9 20:34 local.sqlite
-rw-r--r--  1 root wheel 71349200 Feb  9 20:34 local.sqlite-journal

- This leads to a massive slowdown if many packages are installed separately
and the storage is not very fast. In fact, for all but the bigget packages,
writing the journal file now by far dominates the time it takes to delete or
add a package.

Expected result:
- As before, pkg operations should be fast.

-- Martin

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



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