Skip to content

Inspecting ports for modifications to git checkout yields 100% CPU usage and takes 30 min+ #1338

Description

@herrbischoff

Prerequisites

  • Have you checked for an existing issue describing your problem?
  • Are you running the latest version?
  • Is your ports tree recent?
  • Is your FreeBSD Host on a supported release?

Describe the bug

I'm running Poudriere within a jail on a small VPS with 2 CPU cores and 2 GB of RAM. I'm only looking to build a couple of packages with custom options, not operate a full build server. Whenever I'm running the bulk command, this is what happens:

[...]
[00:00:23] Inspecting /usr/local/poudriere/data/.m/FreeBSD_15_amd64-HEAD/ref//usr/ports for modifications to git checkout... no
[00:30:39] Ports top-level git hash: 439ad72612af8d38b4280cbbd3c1e3104daffd3f
[...]

It takes Poudriere over 30 min total to check for modification to the Git checkout and consumes almost 100% of CPU while doing so. I remember it taking a bit but this is excessive and has to be a bug. It takes longer for Pourdriere to check for Git changes than the entire following build process.

How to reproduce

Steps to reproduce the behavior: run poudriere bulk -j FreeBSD:15:amd64 -p HEAD -b latest -f /usr/local/etc/poudriere.d/port-list on my machine.

Expected behavior

Checking for modifications taking a lot less time.

Screenshots

See log excerpt above.

Environment

  • Host OS [e.g. 12.2 amd64]: 15.0-RELEASE-p5
  • Jail OS [e.g. 12.0 powerpc]: 15.0-RELEASE-p5
  • Browser: [e.g. chrome, safari]: n/a
  • Poudriere Version [e.g. 3.3.1 or git hash or port version]: poudriere-git-3.4.99.20260415
  • Ports branch and revision [e.g. 2020Q3 r550754]: main 439ad72612

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions