Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Apr 2007 15:47:38 +0100 (BST)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        freebsd-current@FreeBSD.ORG, ed@fxq.nl, ticso@cicely12.cicely.de
Subject:   Re: ZFS to support chflags?
Message-ID:  <20070412154142.L99718@fledge.watson.org>
In-Reply-To: <200704121238.l3CCcX9v070904@lurza.secnetix.de>
References:  <200704121238.l3CCcX9v070904@lurza.secnetix.de>

next in thread | previous in thread | raw e-mail | index | archive | help

On Thu, 12 Apr 2007, Oliver Fromme wrote:

> Ed Schouten wrote:
> > Bernd Walter wrote:
> > > E.g. hardlink system binaries over multiple jails flaged immuteable.
> > > No jail can compromise the data in other jails, while still allowing
> > > the kernel to share memory pages for it.
> >
> > There are nicer ways to do that as far as I know. Just read-only nullmount 
> > some kind of base install to another directory.
>
> Memory pages are not shared across different mounts, including nullmounts 
> (AFAIK), which was Bernd's point. So Bernd's solution is much better in 
> terms of memory usage, which is significant if you run a large number of 
> jails.

This is a slightly vague statement.  To be a bit more specific: there is a 
significant memory overhead to running nullfs, as all base file system vnodes 
have shadow vnodes.  However, the VM objects, and hence file cache, are shared 
across the layers.  If you mmap at one layer, you're getting the same pages as 
the underlying layer, for example.

Robert N M Watson
Computer Laboratory
University of Cambridge



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