git: dsynth - Optimize pty use
dillon at crater.dragonflybsd.org
Tue Aug 20 12:21:26 PDT 2019
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
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(-)
DragonFly BSD source repository
More information about the Commits