From: Zac Medico <zmedico@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev] Portage FEATURE suggestion - limited-visibility builds
Date: Thu, 26 Jul 2012 15:35:16 -0700 [thread overview]
Message-ID: <5011C624.4080909@gentoo.org> (raw)
In-Reply-To: <CAGfcS_mc0Uh3sgOakjoQAj5K2Wfh23Cdhxi2j5sRQW+m3zLjcw@mail.gmail.com>
On 07/26/2012 11:26 AM, Rich Freeman wrote:
> Implementing it wouldn't necessarily be hard - just create a tmpfs
> under /var/tmp/portage, unshare off a new mount namespace, and
> read-only bind-mount everything needed from the root filesystem
> (including /var/tmp/portage/...), and chroot into it. When the build
> is done the process governing it terminates and the kernel wipes out
> all the mounts and then portage unmounts the tmpfs. You wouldn't need
> to use a tmpfs for the build - it would actually be zero-size as
> reported by df since it just contains a bazillion bind mounts, though
> all those mounts would consume slab memory.
It seems like you might need some kind of copy-on-write support, at
least to run pkg_setup. Apparently cowbuilder uses cow hardlinks for
that. Another way would be to use fiemap (cp --reflink).
--
Thanks,
Zac
next prev parent reply other threads:[~2012-07-26 22:36 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-26 18:26 [gentoo-dev] Portage FEATURE suggestion - limited-visibility builds Rich Freeman
2012-07-26 18:40 ` Michael Mol
2012-07-26 19:43 ` Rich Freeman
2012-07-26 18:59 ` Michael Orlitzky
2012-07-26 21:45 ` Alec Warner
2012-07-26 22:35 ` Zac Medico [this message]
2012-07-27 15:37 ` Rich Freeman
2012-07-27 0:31 ` Gregory M. Turner
2012-07-27 15:04 ` [gentoo-dev] " Michael Palimaka
2012-07-31 14:48 ` [gentoo-dev] " "Paweł Hajdan, Jr."
2012-07-31 14:55 ` Michael Mol
2012-07-31 14:56 ` Ian Stakenvicius
2012-07-31 19:16 ` Rich Freeman
2012-07-31 19:27 ` Michał Górny
2012-07-31 23:57 ` vivo75
2012-08-07 18:05 ` Rich Freeman
2012-07-31 19:24 ` Michael Mol
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5011C624.4080909@gentoo.org \
--to=zmedico@gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox