[Users] Sharing pages between VMs

Pavel Emelianov xemul at openvz.org
Thu Sep 28 08:32:32 EDT 2006


Enrico Weigelt wrote:
> * Pavel Emelianov <xemul at 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
>   



More information about the Users mailing list