git: dsynth - Optimize pty use

Matthew Dillon dillon at crater.dragonflybsd.org
Tue Aug 20 12:21:26 PDT 2019


commit 1d6e00cdb2312250869f93dc578cac6df09ef8bc
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Tue Aug 20 12:08:08 2019 -0700

    dsynth - Optimize pty use
    
    * Have the WORKER process allocate the pty once and use it in all
      phases, instead of allocating and closing a new pty for each phase.
    
    * Make N copies of /bin, /lib, /usr/bin, and /libexec into the base
      directory and mount those in the chroots instead of the system
      directory, essentially unsharing these directories.  Each worker
      gets an independent copy.
    
      This should reduce contention and cache-line ping-ponging overhead
      on /bin/sh, libc, make, etc, significantly.
    
    * Create the template conditionally whether 'pkg' has been built or
      not.

Summary of changes:
 usr.bin/dsynth/build.c  |  53 ++++++++++++----
 usr.bin/dsynth/dsynth.h |   2 +-
 usr.bin/dsynth/mount.c  | 165 +++++++++++++++++++++++++++++++++++++-----------
 3 files changed, 168 insertions(+), 52 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/1d6e00cdb2312250869f93dc578cac6df09ef8bc


-- 
DragonFly BSD source repository



More information about the Commits mailing list