git: dsynth - Fleshout functions

Matthew Dillon dillon at crater.dragonflybsd.org
Mon Aug 19 17:21:45 PDT 2019


commit 1645cafe2e12d248b171769271df3b29f9435f8a
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Mon Aug 19 17:12:44 2019 -0700

    dsynth - Fleshout functions
    
    * Add dynamic MaxWorker reduction based on the load.  The number of
      workers will be reduced by (load * 2 / ncpus) when the load
      exceeds (ncpus * 2.0), with a floor of min(4, MaxWorkers).
    
      The idea here is to reduce unnecessary swap use when building
      larger packages that push the load up greatly.
    
    * Clean-up terminal spam after ncurses has been turned on.
    
    * Generate fatal error if required configured directories are
      missing.
    
    * Add -y (yes to all) option.
    
    * Implement 'status' and 'status-everything'
    
    * Implement 'purge-distfiles' (initial work)
    
    * In scans that dump percentages, print 100% at the end before
      moving onto the next step.

Summary of changes:
 usr.bin/dsynth/Makefile  |   3 +-
 usr.bin/dsynth/build.c   |  60 ++++++--
 usr.bin/dsynth/config.c  |  37 +++++
 usr.bin/dsynth/dsynth.c  |  13 +-
 usr.bin/dsynth/dsynth.h  |   5 +
 usr.bin/dsynth/pkglist.c |  36 +++--
 usr.bin/dsynth/repo.c    | 201 ++++++++++++++++++++++++++-
 usr.bin/dsynth/status.c  | 354 +++++++++++++++++++++++++++++++++++++++++++++++
 usr.bin/dsynth/subs.c    |  30 ++++
 9 files changed, 704 insertions(+), 35 deletions(-)
 create mode 100644 usr.bin/dsynth/status.c

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/1645cafe2e12d248b171769271df3b29f9435f8a


-- 
DragonFly BSD source repository


More information about the Commits mailing list