vzfs support [message #89] |
Wed, 14 September 2005 10:13 |
Eric
Messages: 6 Registered: September 2005
|
Junior Member |
|
|
Are you going to include something like vzfs?
|
|
|
|
Re: vzfs support [message #92 is a reply to message #89] |
Wed, 14 September 2005 14:14 |
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 #95 is a reply to message #89] |
Wed, 14 September 2005 15:14 |
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 |
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
|
|
|