Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Oct 2005 03:52:37 +0000 (UTC)
From:      Kris Kennaway <kris@FreeBSD.org>
To:        ports-committers@FreeBSD.org, cvs-ports@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: ports/Tools/portbuild/scripts claim-chroot
Message-ID:  <200510110352.j9B3qbgX080571@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
kris        2005-10-11 03:52:37 UTC

  FreeBSD ports repository

  Modified files:
    Tools/portbuild/scripts claim-chroot 
  Log:
  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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200510110352.j9B3qbgX080571>