<div dir="ltr">Picking up on an earlier point, it looks like both virtio net and virtio block device support have been integrated into mainline illumos for a while, so in theory it should work, though it might take some doing to get a previously installed system to switch to virtio. <div>
<br></div><div>Has anyone actually tried this?</div><div> -nld</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Sep 13, 2013 at 6:38 PM, ashley willis <span dir="ltr"><<a href="mailto:ashleywillis76@gmail.com" target="_blank">ashleywillis76@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I decided to run the mongorestore tool from the bare metal OmniOS to<br>
the mongo server running in KVM CentOS, and it is running much quicker<br>
-- 50% in 12m52s (and the CPU and memory for mongorestore is only<br>
0.3%). MongoDB is not using much CPU in the VM, either. Total import<br>
time this way is 32m12.235s -- still much slower than just bare metal,<br>
but not insanely slow like before (the NFS->NFS all within the OmniOS<br>
VM was 92m48s). Giving the VM 6 cores and 14GB of ram (instead of 2<br>
and 2) gave somewhat better performance: 27m18.305s. Going back to<br>
if=ide, 35m51.575s, so if=virtio does help here some.<br>
<br>
Is there anything else that can be done to improve disk I/O in a VM,<br>
short of giving the VM an entire physical disk?<br>
<span class="HOEnZb"><font color="#888888"><br>
-ashley<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On Fri, Sep 13, 2013 at 4:58 PM, ashley willis <<a href="mailto:ashleywillis76@gmail.com">ashleywillis76@gmail.com</a>> wrote:<br>
> So, a CentOS 6.4 VM is still horrible with virtio -- it's loaded 2% of<br>
> the database in 6 minutes onto a 30g ext4 partition.<br>
><br>
> On Fri, Sep 13, 2013 at 4:24 PM, ashley willis <<a href="mailto:ashleywillis76@gmail.com">ashleywillis76@gmail.com</a>> wrote:<br>
>> that works for booting centos 6.4, but not for booting omnios -- grub<br>
>> comes up but it keeps looping back to the grub menu. granted, i don't<br>
>> really need to boot omnios in kvm. i had horrible performance in<br>
>> centos as well, so i will try this.<br>
>><br>
>> for comparison to my home machine, on a work server i loaded that same<br>
>> dataset in 4m10s (xeon 2*6 cores, 60GB ram, 12 600GB 10k SAS drives in<br>
>> raid10) reading from disks in a different box.<br>
>><br>
>> -ashley<br>
>><br>
>> On Fri, Sep 13, 2013 at 3:50 PM, Narayan Desai <<a href="mailto:narayan.desai@gmail.com">narayan.desai@gmail.com</a>> wrote:<br>
>>> Depending on the availability of the guest-side drivers, it should be a lot<br>
>>> faster to use virtio, both for disk and net.<br>
>>><br>
>>> Does anyone know if virtio support ships now in OmniOS? I know there have<br>
>>> been some drivers floating around for a while now, but haven't tried them.<br>
>>>  -nld<br>
>>><br>
>>><br>
>>> On Fri, Sep 13, 2013 at 1:45 PM, ashley willis <<a href="mailto:ashleywillis76@gmail.com">ashleywillis76@gmail.com</a>><br>
>>> wrote:<br>
>>>><br>
>>>> I have 14GB dump of a MongoDB database that took 10 minutes to restore<br>
>>>> on bare metal OmniOS -- I'm fine with this (system is an 8-core AMD<br>
>>>> FX-8150, 32GB ram, pair of 500GB WD 'blue" drives mirrored, 90GB ssd<br>
>>>> cache -- all desktop-grade).<br>
>>>><br>
>>>> Running OmniOS under KVM on this box, the same operation took 246<br>
>>>> minutes with the dump available over an NFS share from the bare metal<br>
>>>> system (given 2 cores, 2GB ram, and a 30GB zvol).<br>
>>>><br>
>>>> Under the same KVM instance, I decided to see the performance reading<br>
>>>> the dump from NFS and having the MongoDB data directory on this same<br>
>>>> NFS share, and it's on track to finish in under 60 minutes (half-way<br>
>>>> done). That's more than 4 times faster.<br>
>>>><br>
>>>> What gives?<br>
>>>><br>
>>>> /usr/bin/qemu-system-x86_64 -name OmniOS_Text_r151006p.iso -enable-kvm<br>
>>>> -vnc <a href="http://0.0.0.0:15" target="_blank">0.0.0.0:15</a> -smp 2 -m 2048 -no-hpet -localtime -drive<br>
>>>> file=/dev/zvol/rdsk/rpool/omnios,if=ide,index=0 -net<br>
>>>> nic,vlan=0,name=net0,model=e1000,macaddr=2:8:20:e:15:33 -net<br>
>>>> vnic,vlan=0,name=net0,ifname=vnic10,macaddr=2:8:20:e:15:33 -vga std<br>
>>>> -daemonize<br>
>>>><br>
>>>> -ashley<br>
>>>> _______________________________________________<br>
>>>> OmniOS-discuss mailing list<br>
>>>> <a href="mailto:OmniOS-discuss@lists.omniti.com">OmniOS-discuss@lists.omniti.com</a><br>
>>>> <a href="http://lists.omniti.com/mailman/listinfo/omnios-discuss" target="_blank">http://lists.omniti.com/mailman/listinfo/omnios-discuss</a><br>
>>><br>
>>><br>
</div></div></blockquote></div><br></div>