Some experience with the ContigFileAllocSize Tweak ?

Discussions about using Windows guests in VirtualBox.
Post Reply
TheVegaWarrior
Posts: 2
Joined: 27. May 2009, 22:46
Primary OS: MS Windows Vista
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, MS-Dos 6+Win3.1, SuSe 11.0

Some experience with the ContigFileAllocSize Tweak ?

Post by TheVegaWarrior »

Hi,

I have read an article about the use of the ContigFileAllocSize registry key, helping to avoid fragmenting disks (see here: http://www.dev-toast.com/2007/02/22/inc ... fficiency/ ). The author says that this tweak should not be used in a guest, as it may corrupt the vdi file on the host. However, the article is more than 2 years old and I guess this issue might have been solved in the meantime. Has someone already tried this ?

I have the feeling, if it works, that the benefits of this tweak might be bigger in a virtual disk (where you don't care too much about leaving empty gaps, if they are not allocated in the vdi).

(If nobody as ever tried it, I will test it, with a copy of my favorite vdi and on a partition which I would accept to see corrupted).
TerryE
Volunteer
Posts: 3572
Joined: 28. May 2008, 08:40
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Ubuntu 10.04 & 11.10, both Svr&Wstn, Debian, CentOS
Contact:

Re: Some experience with the ContigFileAllocSize Tweak ?

Post by TerryE »

NTFS and "Avoid Defragmentation" are an oxymoron :lol:

You just need to defragment regularly and keep your NTFS partitions less than 75% full. Also if you are using the default Windows defrag, it's prett stupid. It won't move a file unless it has a sufficient contig space to put it in. Hence you can get a file with a 1,000 fragments that it won't move and this chops your FS into a 1,000 small bits. So also try the MS Systinternals tool contig which is at least smart enough to realise that 2 big fragments is a lot better then 1,000 small ones.

Also the VDI allocation page size is 1Mb so this change won't help in terms of host VDI sizing.
Read the Forum Posting Guide
Google your Q site:VirtualBox.org or search for the answer before posting.
Post Reply