cvs commit: ports/Tools/portbuild/scripts claim-chroot

Kris Kennaway kris at
Mon Oct 10 20:52:38 PDT 2005

kris        2005-10-11 03:52:37 UTC

  FreeBSD ports repository

  Modified files:
    Tools/portbuild/scripts claim-chroot 
  Add support for use_md_swap.  When this variable is set in a
  portbuild.conf, builds will each be done in a separate swap-backed md.
  This dramatically improves build performance since
  * Every transaction is not written to disk, so disk bandwidth is not
    a bottleneck
  * Multiple builds do not contend with each other for the same set of
    filesystem locks and other per-device resources
  The size of the md devices is controlled by the md_size variable.  '2g'
  seems to be a good size.
  Currently we mdconfig -u each device after each port build, since
  otherwise dirty blocks accumulate and the md eventually uses a full
  amount of backing store (2g in the above example).  This is a problem
  if there is unsufficient swap backing to accomodate them all.
  XXX This should be made configurable to avoid the performance penalty on
  systems that do have enough swap backing
  Revision  Changes    Path
  1.3       +18 -4     ports/Tools/portbuild/scripts/claim-chroot

More information about the cvs-all mailing list