OpenSolaris

Discussions Communities Projects Download Source Browser

Home » OpenSolaris Forums » OpenSolaris » discuss

Thread: VirtualBox on zfs

Welcome, Guest Help
Login Login
Guest Settings Guest Settings
Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 2 - Last Post: Jun 23, 2008 5:07 AM by: mdemarco
mdemarco

Posts: 365
From:

Registered: 7/5/06
VirtualBox on zfs
Posted: Jun 23, 2008 4:37 AM
To: OpenSolaris » discuss
  Click to reply to this thread Reply

Just a note to hopefully help someone else out.

I have been running VirtualBox on my sager laptop inside zfs partition with 2Gbytes of ram build 82. Even though I had the Guest OS set to 600Meg. (WindowsXP) MY memory would keep dropping until I started seeing performance problems. I added another 2Gbyte of ram to the system but this only delayed the performance problem. I thought that it might have been a memory leak with VirtualBox but the process memory usage never grew.

I found the problem to be zfs cache. I believe this was caused by the large file size of VirtualBox and that ZFS cache keeps trying to bring it into memory. I have limited zfs cache down to 1Gbyte using the following line in /etc/system
set zfs:zfs_arc_max = 0x3E800000

The performance problems went away and VirtualBox is still happy.

Hope this is help to someone.

jf_

Posts: 94
From: CZ

Registered: 4/2/08
Re: VirtualBox on zfs
Posted: Jun 23, 2008 5:07 AM   in response to: mdemarco

  Click to reply to this thread Reply


Hi,

On Mon, Jun 23, 2008 at 04:37:36AM -0700, Mike DeMarco wrote:
> Just a note to hopefully help someone else out.
>
> I have been running VirtualBox on my sager laptop inside zfs partition with 2Gbytes of ram build 82. Even though I had the Guest OS set to 600Meg. (WindowsXP) MY memory would keep dropping until I started seeing performance problems. I added another 2Gbyte of ram to the system but this only delayed the performance problem. I thought that it might have been a memory leak with VirtualBox but the process memory usage never grew.
>
> I found the problem to be zfs cache. I believe this was caused by the large file size of VirtualBox and that ZFS cache keeps trying to bring it into memory. I have limited zfs cache down to 1Gbyte using the following line in /etc/system
> set zfs:zfs_arc_max = 0x3E800000
>
> The performance problems went away and VirtualBox is still happy.
>
> Hope this is help to someone.

Just generally about "ZFS Evil"; check following page:
http://www.solarisinternals.com/wiki/index.php/ZFS_Evil_Tuning_Guide

/j.

_______________________________________________
opensolaris-discuss mailing list
opensolaris-discuss at opensolaris dot org


mdemarco

Posts: 365
From:

Registered: 7/5/06
Re: VirtualBox on zfs
Posted: Jun 23, 2008 5:54 AM   in response to: jf_
To: OpenSolaris » discuss
  Click to reply to this thread Reply

>
> Just generally about "ZFS Evil"; check following
> g page:
> http://www.solarisinternals.com/wiki/index.php/ZFS_Ev
> il_Tuning_Guide
>
> /j.
>

Yes the tuning guide was a great help in tracking down this problem.

Note:
Some of the kernel debugging suggestions do not work. Here is one of them.

mdb -kw
Loading modules: [ unix genunix specfs dtrace cpu.generic uppc pcplusmp scsi_vhci ufs ip hook neti sctp arp usba uhci s1394 nca fctl lofs zfs random md audiosup cpc fcip crypto ptm nsctl sppp nfs ipc ]
> arc::print -a p c c_max
mdb: failed to dereference symbol: unknown symbol name
>




Terms of Use | Privacy | Trademarks | Copyright Policy | Site Guidelines
Your use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Use.
© 2010, Oracle Corporation and/or its affiliates

Oracle