OpenVZ Forum


Home » General » Support » vzfs support
vzfs support [message #89] Wed, 14 September 2005 10:13 Go to next message
Eric is currently offline  Eric
Messages: 6
Registered: September 2005
Junior Member
Are you going to include something like vzfs?
Re: vzfs support [message #90 is a reply to message #89] Wed, 14 September 2005 11:22 Go to previous messageGo to next message
dim is currently offline  dim
Messages: 344
Registered: August 2005
Senior Member
No, it is Virtuozzo feature.

http://static.openvz.org/openvz_userbar_en.gif
Re: vzfs support [message #92 is a reply to message #89] Wed, 14 September 2005 14:14 Go to previous messageGo to next message
TheWiseOne is currently offline  TheWiseOne
Messages: 66
Registered: September 2005
Location: Pennsylvania
Member
You're better off without it anyway.

vzfs is an overlay filesystem. Now, unless the vzfs developers have done some real magic, overlay filesystems are always prone to double caching.

As an example in Virtuozzo the data under /vz/private/<veid>/root and then the overlayed vzfs at /vz/root/<veid> is cached twice. I'd like to see this argued, this is somehow possible if the inode betwen the backing and the overlay is shared, but unlikely. To the kernel it does it's smart cache/buffer/swapping based on the files inode.

Reasons like this is why I see my server with 8GB of RAM using 5GB between the buffer/cache.... man would I love to see 2-3GB of that used for application data.


Matt Ayres
TekTonic
Re: vzfs support [message #94 is a reply to message #92] Wed, 14 September 2005 15:13 Go to previous messageGo to next message
dim is currently offline  dim
Messages: 344
Registered: August 2005
Senior Member
What do you mean under 'double caching'?
Which kernel do you use on your server with 8GB RAM?

kernel finds balance between cache buffers/swap itself, but you can try to change it through sysctls. These sysctls are depends on kernel version. For 2.4 kernels it is vm.bdflush, for 2.6 - vm.swappiness, vm.dirty_ratio, vm_dirty_background_ratio.

If you need to avoid much memory used for system buffers - try to tune these parameters.


http://static.openvz.org/openvz_userbar_en.gif
Re: vzfs support [message #95 is a reply to message #89] Wed, 14 September 2005 15:14 Go to previous messageGo to next message
TheWiseOne is currently offline  TheWiseOne
Messages: 66
Registered: September 2005
Location: Pennsylvania
Member
I suppose I eat my words on this, it does seem to share the same inode.

Then I can only help that vm.swappiness can help my systems.

# ls -ali /vz/private/1/root/etc/inittab /vz/root/1/etc/inittab
451387465 -rw-r--r-- 1 root root 1456 Sep 2 16:31 /vz/private/1/root/etc/inittab
451387465 -rw-r--r-- 1 root root 1456 Sep 2 16:31 /vz/root/1/etc/inittab


Matt Ayres
TekTonic
Re: vzfs support [message #96 is a reply to message #94] Wed, 14 September 2005 15:16 Go to previous message
TheWiseOne is currently offline  TheWiseOne
Messages: 66
Registered: September 2005
Location: Pennsylvania
Member
I know of the sysctls, under 2.4 it does not work well at all. I just showed it does indeed use the same inode. Traditionally with an overlay fs the inodes are different between the source and mount and since the buffercache identifies by inode each file is cached twice. Whoever wrote vzfs worked around this (it is something able to be done, just not very "mainstream").

Matt Ayres
TekTonic
Previous Topic: virtuozzo and nfs
Next Topic: VZ Migration
Goto Forum:
  


Current Time: Tue Apr 16 07:29:41 GMT 2024

Total time taken to generate the page: 0.01392 seconds