OpenVZ Forum


Home » Mailing lists » Users » Sharing pages between VMs
Re: Sharing pages between VMs [message #6949 is a reply to message #6860] Thu, 28 September 2006 12:32 Go to previous message
Pavel Emelianov is currently offline  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
>
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: OS Versions
Next Topic: kernel: TCP: time wait bucket table overflow
Goto Forum:
  


Current Time: Mon Oct 13 03:05:13 GMT 2025

Total time taken to generate the page: 0.32867 seconds