| From | Sent On | Attachments |
|---|---|---|
| Tom Haapanen | Jun 23, 2009 1:05 pm | |
| Michael Scheidell | Jun 23, 2009 1:56 pm | |
| Andrew Snow | Jun 23, 2009 2:15 pm | |
| Tom Haapanen | Jun 24, 2009 5:46 am | |
| Eirik Øverby | Jun 24, 2009 5:54 am |
| Subject: | Re: Memory usage across multiple jails | |
|---|---|---|
| From: | Andrew Snow (and...@modulus.org) | |
| Date: | Jun 23, 2009 2:15:50 pm | |
| List: | org.freebsd.freebsd-jail | |
Tom Haapanen wrote:
I am wondering whether there are any comparative efficiencies in memory utilization. Will the jails share the disk cache, for example, or does each jail allocate its own? Will other kernel structures (and code!) be shared across jails, or allocated multiple times? And what about userland applications, like httpd, for example? (I suspect userland would not be able to benefit, but that's just a guess.)
It is extremely efficient. It is as if the host system sees a single system with the processes of all the jails running.
* the jails share disk cache * jails don't have any reserved memory so any unused memory returns to the free pool of the kernel, available for disk cache * there is a single kernel shared across all jails * userland code can also be shared across jails *if* you run the code from the same set of on-disk binaries (which is not the way most people set up jails) * since there is only a single kernel all network and disk I/O from the jails goes at the same speed as the host
However, VMware installations are now able to achieve the same level of efficiency using the following measures:
* "transparent page sharing" stores only a single copy of shared memory pages * free and unused memory in each guest can be used by installing the vmmemctl driver (part of VMware-tools) * disk cache can be "shared" by using shared storage (NAS) * paravirtualisation drivers for disk and networking in the guest can achieve full host speed & efficiency
- Andrew
_______________________________________________ free...@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-jail To unsubscribe, send any mail to "free...@freebsd.org"





