tech-pkg archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Adding MAKE_JOBS_SAFE to pbulk-index
The next version of bob will include a dynamic scheduler. This will
automatically tune MAKE_JOBS and WRKOBJDIR based on current and
historical builds.
In order to correctly allocate MAKE_JOBS per worker I am currently
discovering whether a package is MAKE_JOBS_SAFE at build time, but this
is somewhat backwards as the scheduler has already provided the build
with its recommendation, and is rather inefficient due to requiring an
extra "show-vars" run for each build.
What I'd like to do is extend the pbulk-index output to include
MAKE_JOBS_SAFE. That way everything can be done up-front.
diff -u -U 1 -r1.30 pbulk-index.mk
--- mk/pbulk/pbulk-index.mk 17 Dec 2024 10:38:10 -0000 1.30
+++ mk/pbulk/pbulk-index.mk 11 Mar 2026 09:33:04 -0000
@@ -131,2 +131,3 @@
echo "SCAN_DEPENDS="${_PBULK_SCAN_DEPENDS:O:u:Q}; \
+ echo "MAKE_JOBS_SAFE="${MAKE_JOBS_SAFE:Q}; \
[ -z ${PBULK_WEIGHT:Q} ] || echo "PBULK_WEIGHT="${PBULK_WEIGHT:Q}; \
Ok? As I will need to update pkgsrc-rs[0] to support this, now would be
an ideal time to add any other fields that people think might be useful.
Thanks,
[0]: https://github.com/jperkin/pkgsrc-rs/blob/master/src/scanindex.rs
--
Jonathan Perkin pkgsrc.smartos.org
Open Source Complete Cloud www.tritondatacenter.com
Home |
Main Index |
Thread Index |
Old Index