Page 1 of 1

Pagefile on immutable disk?

Posted: 10. Mar 2011, 10:35
by poulbak
I am thinking of making a more effective use of disks regarding pagefile.
Currently I simply have it as 'C:\pagefile.sys' inside the vdi. This means that whenever I create a snapshot, that file takes up a lot of space, which is basically garbage (and will even be backed up too).

On the host I have moved pagefile to D: drive - physical disk 2. This has at least 2 advantages: Speed, I/O operations on C: drive are not slowed down when used - and it won't be backed up, saving space.

I would like a similar thing on my VM, here I was also hoping to save a lot of space.
However I have never tried it and I can't find anything on theses forums regarding this issue.

Is 'Immutable' the right way to go - will it work or are there other ways? Ideally I want a small vdi file that I can 'write to' and which is then reverted back when closing the vm.
Anyone tried this?

Re: Pagefile on immutable disk?

Posted: 10. Mar 2011, 10:55
by vbox4me2
This will work fine, but not all VBox versions will trow away the immu-diff file on restart. You might have to script it if your version doesn't.

Re: Pagefile on immutable disk?

Posted: 10. Mar 2011, 11:03
by poulbak
Forgot to mention: VBox is 4.0.4 (newest).
Are you saying that the changes are thrown at restart or when closing down? I'm of course thinking of the backup issue (saving space).

Re: Pagefile on immutable disk?

Posted: 10. Mar 2011, 11:06
by vbox4me2
Thats the 64k question, some versions trow them away at VM restart, others at VBox restart and some not at all. In either way at least a swap-vdi can be excluded from backup.