Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Jul 2014 10:21:36 -0400
From:      Mike Tancsa <mike@sentex.net>
To:        "freebsd-emulation@freebsd.org" <emulation@freebsd.org>
Subject:   forcing a Virtbox to flush its cache on demand or more frequently
Message-ID:  <53CD21F0.7080401@sentex.net>

next in thread | raw e-mail | index | archive | help
I have been experimenting with HAST and virtbox to have failover between 
servers and ran into a problem with caching.  I am guessing in order to 
prevent every little guest write from writing out to the host's disks, 
the hypervisor waits for some period of time to write things out. 
However, this delay can be upwards of hours! On a normally busy box this 
is not an issue, but for a guest OS that does infrequent (but important) 
writes, the delay is much too long.

I have already set --hostiocache off, but it does not seem to make a 
difference.  If I set a process in the guest to do something like

dd if=/dev/urandom of=/tmp/junk bs=1024k count=5

that seems sufficient to trigger a write to the hypervisor's disk, but 
this is from limited testing only.  Is there a better way to do it ?

	---Mike




-- 
-------------------
Mike Tancsa, tel +1 519 651 3400
Sentex Communications, mike@sentex.net
Providing Internet services since 1994 www.sentex.net
Cambridge, Ontario Canada   http://www.tancsa.com/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?53CD21F0.7080401>