The NetBSD Project

CVS log for pkgsrc/pkgtools/pbulk/files/pbulk/pbuild/jobs.c

[BACK] Up to [cvs.NetBSD.org] / pkgsrc / pkgtools / pbulk / files / pbulk / pbuild

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.20: download - view: text, markup, annotated - select for diffs
Sun Feb 12 21:17:24 2023 UTC (23 months ago) by joerg
Branches: MAIN
CVS tags: pkgsrc-2024Q4-base, pkgsrc-2024Q4, pkgsrc-2024Q3-base, pkgsrc-2024Q3, pkgsrc-2024Q2-base, pkgsrc-2024Q2, pkgsrc-2024Q1-base, pkgsrc-2024Q1, pkgsrc-2023Q4-base, pkgsrc-2023Q4, pkgsrc-2023Q3-base, pkgsrc-2023Q3, pkgsrc-2023Q2-base, pkgsrc-2023Q2, pkgsrc-2023Q1-base, pkgsrc-2023Q1, HEAD
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +69 -16 lines
pbulk-0.57: switch to a binary heap for the build queue

Revision 1.19: download - view: text, markup, annotated - select for diffs
Sun Feb 12 04:12:54 2023 UTC (23 months, 1 week ago) by joerg
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +32 -5 lines
pbulk-base-0.56: Support for adjusting scheduling

Switch to a weighted scheduling algorithm. Before, build order was based
on number of reachable nodes in the dependency graph. This assumes that
heavy packages are required by other packages. Some big packages
nowadays violate that assumption and can result in long periods at the
end of a build where only a few builders are active. Annotating those
packages with PBULK_WEIGHT in the pbulk-index output can boost their
priority to let them be built earlier. The default weight is 100.

Note: the pbulk-build report has grown an extra field per line with the
computed effective weight of each package. This file is normally used
only internally.

Revision 1.18: download - view: text, markup, annotated - select for diffs
Fri Feb 10 23:14:32 2023 UTC (23 months, 1 week ago) by joerg
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +13 -17 lines
pbulk-base-0.55: Optimize DAG computation

Before the build starts, pbulk-build computes the size of the dependee
graph for each package. This is naturally a O(n^2) problem. The existing
algorithm used a linked list to check for duplicates. Replace this with
a simple array for seen markers. While it is still quadratic to reset
the array for every package, clearing the array is a simple memset.
A no-op run after a full build now needs 0.3s on my work station
compared to over 3min before.

Revision 1.17: download - view: text, markup, annotated - select for diffs
Fri Feb 10 22:59:13 2023 UTC (23 months, 1 week ago) by joerg
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +6 -7 lines
Simplify DAG size computation. NFC

Revision 1.16: download - view: text, markup, annotated - select for diffs
Tue Nov 3 19:06:47 2015 UTC (9 years, 2 months ago) by joerg
Branches: MAIN
CVS tags: pkgsrc-2022Q4-base, pkgsrc-2022Q4, pkgsrc-2022Q3-base, pkgsrc-2022Q3, pkgsrc-2022Q2-base, pkgsrc-2022Q2, pkgsrc-2022Q1-base, pkgsrc-2022Q1, pkgsrc-2021Q4-base, pkgsrc-2021Q4, pkgsrc-2021Q3-base, pkgsrc-2021Q3, pkgsrc-2021Q2-base, pkgsrc-2021Q2, pkgsrc-2021Q1-base, pkgsrc-2021Q1, pkgsrc-2020Q4-base, pkgsrc-2020Q4, pkgsrc-2020Q3-base, pkgsrc-2020Q3, pkgsrc-2020Q2-base, pkgsrc-2020Q2, pkgsrc-2020Q1-base, pkgsrc-2020Q1, pkgsrc-2019Q4-base, pkgsrc-2019Q4, pkgsrc-2019Q3-base, pkgsrc-2019Q3, pkgsrc-2019Q2-base, pkgsrc-2019Q2, pkgsrc-2019Q1-base, pkgsrc-2019Q1, pkgsrc-2018Q4-base, pkgsrc-2018Q4, pkgsrc-2018Q3-base, pkgsrc-2018Q3, pkgsrc-2018Q2-base, pkgsrc-2018Q2, pkgsrc-2018Q1-base, pkgsrc-2018Q1, pkgsrc-2017Q4-base, pkgsrc-2017Q4, pkgsrc-2017Q3-base, pkgsrc-2017Q3, pkgsrc-2017Q2-base, pkgsrc-2017Q2, pkgsrc-2017Q1-base, pkgsrc-2017Q1, pkgsrc-2016Q4-base, pkgsrc-2016Q4, pkgsrc-2016Q3-base, pkgsrc-2016Q3, pkgsrc-2016Q2-base, pkgsrc-2016Q2, pkgsrc-2016Q1-base, pkgsrc-2016Q1, pkgsrc-2015Q4-base, pkgsrc-2015Q4
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +7 -1 lines
pbulk-base-0.50: Don't go into master mode if there is nothing to do.

Revision 1.15: download - view: text, markup, annotated - select for diffs
Wed Jan 15 13:52:10 2014 UTC (11 years ago) by joerg
Branches: MAIN
CVS tags: pkgsrc-2015Q3-base, pkgsrc-2015Q3, pkgsrc-2015Q2-base, pkgsrc-2015Q2, pkgsrc-2015Q1-base, pkgsrc-2015Q1, pkgsrc-2014Q4-base, pkgsrc-2014Q4, pkgsrc-2014Q3-base, pkgsrc-2014Q3, pkgsrc-2014Q2-base, pkgsrc-2014Q2, pkgsrc-2014Q1-base, pkgsrc-2014Q1
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +4 -1 lines
Format string annotations.

Revision 1.14: download - view: text, markup, annotated - select for diffs
Fri Nov 23 12:13:35 2012 UTC (12 years, 1 month ago) by joerg
Branches: MAIN
CVS tags: pkgsrc-2013Q4-base, pkgsrc-2013Q4, pkgsrc-2013Q3-base, pkgsrc-2013Q3, pkgsrc-2013Q2-base, pkgsrc-2013Q2, pkgsrc-2013Q1-base, pkgsrc-2013Q1, pkgsrc-2012Q4-base, pkgsrc-2012Q4
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +2 -5 lines
Update pbulk to 0.51 and pbulk-base to 0.46. Add support for reusing old
scan results to speed up the process. Fix a bug that overwrote the
package.log during installation.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Sun Nov 27 19:53:30 2011 UTC (13 years, 1 month ago) by joerg
Branches: MAIN
CVS tags: pkgsrc-2012Q3-base, pkgsrc-2012Q3, pkgsrc-2012Q2-base, pkgsrc-2012Q2, pkgsrc-2012Q1-base, pkgsrc-2012Q1, pkgsrc-2011Q4-base, pkgsrc-2011Q4
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +30 -20 lines
pbulk-base-0.44: Fix hash function to actually do proper hashing.
Do some further tweaking to improve matching by storing string size.
While here, add the necessary .WAIT to allow parallel builds.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Wed May 5 00:07:07 2010 UTC (14 years, 8 months ago) by joerg
Branches: MAIN
CVS tags: pkgsrc-2011Q3-base, pkgsrc-2011Q3, pkgsrc-2011Q2-base, pkgsrc-2011Q2, pkgsrc-2011Q1-base, pkgsrc-2011Q1, pkgsrc-2010Q4-base, pkgsrc-2010Q4, pkgsrc-2010Q3-base, pkgsrc-2010Q3, pkgsrc-2010Q2-base, pkgsrc-2010Q2
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +17 -8 lines
pbulk-base-0.41:
Improve diagnostic message for dependency cycles by actually showing the
path.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Fri Feb 26 16:25:49 2010 UTC (14 years, 10 months ago) by joerg
Branches: MAIN
CVS tags: pkgsrc-2010Q1-base, pkgsrc-2010Q1
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +9 -3 lines
pbulk-base-0.40:
Don't print all failed/successful jobs at the beginning, just a small
message when it is done.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Sat Jan 31 23:25:38 2009 UTC (15 years, 11 months ago) by joerg
Branches: MAIN
CVS tags: pkgsrc-2009Q4-base, pkgsrc-2009Q4, pkgsrc-2009Q3-base, pkgsrc-2009Q3, pkgsrc-2009Q2-base, pkgsrc-2009Q2, pkgsrc-2009Q1-base, pkgsrc-2009Q1
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +6 -4 lines
pbulk-0.37:
- replace libevent dependency with internal event loop to make the pbulk
  core standalone
- open success and error log with O_APPEND, which allows e.g. cleaning
  up the error build during build without breaking it if done with care.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Sun Sep 14 18:59:02 2008 UTC (16 years, 4 months ago) by joerg
Branches: MAIN
CVS tags: pkgsrc-2008Q4-base, pkgsrc-2008Q4, pkgsrc-2008Q3-base, pkgsrc-2008Q3
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +2 -34 lines
pbulk-0.34:
Isolate rules to compute the restricted subset in the upload script.
Make the upload script independent from the report file to allow
uploading partial builds.
Only depend on NO_BIN_ON_FTP to decide what to upload and what not.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Sun Feb 24 15:35:42 2008 UTC (16 years, 10 months ago) by tnn
Branches: MAIN
CVS tags: pkgsrc-2008Q2-base, pkgsrc-2008Q2, pkgsrc-2008Q1-base, pkgsrc-2008Q1, cwrapper-base, cwrapper, cube-native-xorg-base, cube-native-xorg
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +10 -3 lines
Improve verbose mode:
- sprinkle whitespace so pkgnames get neatly aligned
- prepend a progress counter to printfs

Revision 1.7: download - view: text, markup, annotated - select for diffs
Fri Nov 30 17:31:38 2007 UTC (17 years, 1 month ago) by rillig
Branches: MAIN
CVS tags: pkgsrc-2007Q4-base, pkgsrc-2007Q4
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +2 -2 lines
In error messages, it is important to be as specific as possible, to
help the user understand the problem.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Wed Nov 28 11:34:20 2007 UTC (17 years, 1 month ago) by rillig
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +7 -1 lines
Added some comments that explain the data structures.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Wed Aug 15 20:55:28 2007 UTC (17 years, 5 months ago) by joerg
Branches: MAIN
CVS tags: pkgsrc-2007Q3-base, pkgsrc-2007Q3
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +3 -3 lines
Shorten wording.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Wed Aug 15 20:52:02 2007 UTC (17 years, 5 months ago) by joerg
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +2 -2 lines
Fix grammar. From salo@

Revision 1.3: download - view: text, markup, annotated - select for diffs
Sat Jul 7 13:54:36 2007 UTC (17 years, 6 months ago) by wiz
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +2 -2 lines
Fix a typo. Improve heading for top ten.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Mon Jun 25 21:38:44 2007 UTC (17 years, 6 months ago) by joerg
Branches: MAIN
CVS tags: pkgsrc-2007Q2-base, pkgsrc-2007Q2
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +10 -8 lines
Use libnbcompat and fix build issues on Solaris.
Don't depend on sin_len. Slightly factor out code for setting
non-blocking IO.

Bump to pbulk-0.2. Tested by dmcmahill@.

Revision 1.1.1.1 (vendor branch): download - view: text, markup, annotated - select for diffs
Tue Jun 19 19:49:56 2007 UTC (17 years, 7 months ago) by joerg
Branches: TNF
CVS tags: pkgsrc-base
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +0 -0 lines
Initial import of pbulk, the new pkgsrc bulk build framework.

Discussion of various parts of the design with jlam@, wiz@, tls@
and many other developers. Special thanks to David Maxwell for
testing the initial prototype and finding some bugs with
Coverity Prevent.

Supported by Google's Summer of Code 2007 project.

OK for import during the freeze: jlam@

From DESCR:
pbulk is the modular bulk build framework for pkgsrc.

This package contains:

- pbulk-scan, a program to scan the entire pkgsrc tree
  or a list of directories therein for packages and
  dependencies. Distributed operation using a master/client
  mode is supported.

- pbulk-resolve, a program to resolve the dependencies
  from the output of pbulk-scan

- pbulk-build, the build scheduler. Distributed builds via TCP
  are supported.

- bulkbuild and related scripts to implement full and limited
  bulk builds on top of those programs.

The pbulk framework is considered experimental.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Tue Jun 19 19:49:56 2007 UTC (17 years, 7 months ago) by joerg
Branches: MAIN
Initial revision

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

CVSweb <webmaster@jp.NetBSD.org>