Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Jan 2016 21:43:32 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 206654] sysutils/qjail speed up jail creation and other fixes
Message-ID:  <bug-206654-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D206654

            Bug ID: 206654
           Summary: sysutils/qjail speed up jail creation and other fixes
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: freebsd-ports-bugs@FreeBSD.org
          Reporter: smh@FreeBSD.org
                CC: qjail1@a1poweruser.com
             Flags: maintainer-feedback?(qjail1@a1poweruser.com)

Created attachment 166162
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D166162&action=
=3Dedit
Enhancements for qjail

I've been using qjail to create many jails (2k per machine) on some load te=
st
hosts, during this we hit a few issues which we've fixed so wanted to pass =
on
the fixes.

The fixes where:
* Significantly improve performance of IP verification.
This check gets exponentially slower the more jails are added due to the lo=
ad
of every previous jail config to validate it. We've changed this to a simple
grep which achieves the same thing in a fraction of the time.
* Refactor IP check to a single method.
With the above changes it was trivial to make a single method replace the
existing two.
* Increase the jail limit from 100 =3D> 254 (max per subnet).
There didn't seem to be any reason for this limit so increased it such that=
 an
entire subject of jails can be created.
* Fix output message typo.
* Ignore missing definitions in some situations.
When running parallel qjail creates we we're seeing random failures due to
temporary definition files, which then disappeared. Deal with this by allow=
ing
read-definition to fail.


The patch is attached, hope its helpful.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



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