Re: Sharing pages between VMs [message #6949 is a reply to message #6860] |
Thu, 28 September 2006 12:32  |
Pavel Emelianov
Messages: 1149 Registered: September 2006
|
Senior Member |
|
|
Enrico Weigelt wrote:
> * Pavel Emelianov <xemul@openvz.org> wrote:
>
>> Enrico Weigelt wrote:
>>
>>> Hi folks,
>>>
>>> is it possible to share pages between several VMs if they use
>>> the same filesystem ?
>>>
>> This is done "autmatically" :)
>> When two VEs open/mmap the same file it's pages
>> are shared between them.
>>
>
> Cool :)
> Now the interesting question: how can I mount several dirs in
> away that one VE cannot hurth another and mmap'ing is possible
> (AFAIK network filesystems are not mmap-capable).
> Does simfs handle all that properly ?
>
Unfortunately no. Simfs doesn't have any builtin sharing/protection.
You may bind-mount some subtree into several VEs for needed
shared subdirs, but you must make some write-protection manually.
This is usefull for "/bin" for example.
>
> cu
>
|
|
|