Re: Windows NT4 on KVM+QEMU extremely slow...

Preston Hagar <[email protected]> Thu, 18 Apr 2013 13:28:44 -0500
Newsgroups gmane.linux.gentoo.server
Message-ID <CAK6zN=2JxfGYapvmKLP=Msmh=GmexQ=-1+3GQODxh2h4=O67aQ@mail.gmail.com>
--047d7b414c2ecb8f7404daa6c5a1
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

On Thu, Apr 18, 2013 at 11:29 AM, Vin=EDcius Ferr=E3o <[email protected]=
rj.br
> wrote:

> KVM is enabled in BIOS too.
>
> I doubled checked it. Disabled and even got a message saying the KVM is
> not available when Disabled in BIOS=85.
>
> Thanks,
>
>  *Vin=EDcius Ferr=E3o*: Administrador de Sistemas
> www.ferrao.eti.br | +55 (21) 8888-2619
>
> On Apr 18, 2013, at 11:29 AM, Robert Bridge <[email protected]>
>  wrote:
>
> Hi,
>
> Are you sure your hardware virt isn't disabled in the BIOS? It is, in
> my experience, the one BIOS setting the linux kernel doesn't/can't
> over-ride.
>
> Cheers,
> RobbieAB
>
> On 18 April 2013 01:35, Vin=EDcius Ferr=E3o <[email protected]> w=
rote:
>
> Hello dudes,
>
> Thanks for the replies.
>
> But I've read somewhere that -no-kvm should be enabled in order to run NT=
4
> Properly.
>
> Anyway, I removed the flag and nothing really happened. It's still slow.
> It's usable, but slow. VMWare was much faster.
>
> And about the RAM issue. It's Windows NT4. I don't think more is necessar=
y.
> The machine boots consuming only 30MB. And about the slowness of the syst=
em
> is during CPU intensive operations.
>
> Anything else to try dudes?
>
> Thanks,
>
> Vin=EDcius Ferr=E3o: Administrador de Sistemas
> www.ferrao.eti.br | +55 (21) 8888-2619
>
> On Apr 17, 2013, at 5:54 PM, Hinnerk van Bruinehsen
> <[email protected]>
> wrote:
>
> On Wed, Apr 17, 2013 at 07:34:00PM +0000, Vin=EDcius Ferr=E3o wrote:
>
> Hello dudes,
>
> I'm running Windows NT 4 Terminal Server on QEMU and the performance is t=
oo
> slow; I don't even know how to debug it and I even don't if this is norma=
l
> or not.
>
> On VMWare Player the performance was much better. And this isn't a
> migration. I've reinstalled the NT4 from the ground.
>
> Anyway; i'm launching the VM with this arguments:
> kvm -m 128m -name WinNT4TS -drive file=3Dwinnt4ts.raw -cdrom Windows\ NT\=
 4\
> Terminal\ Server\ Image/WINNT-TSE40.iso -net
> nic,model=3Dne2k_pci,macaddr=3D00:0c:29:74:fa:b4 -net tap -vga std -cpu
> pentium,level=3D1 -smp 1 -no-acpi -no-hpet -no-kvm -boot c -vnc none
> -daemonize
>
>
> Hi,
>
> iirc the commandline switch --no-kvm disables kvm (so it'S just software
> emulated qemu). You disable hardware virtualization accerleration with
> it.
>
> Other than that: more than 128 MB ram will most likely also help to
> speed things up.
>
> WKR
> Hinnerk
>
>
>
>
>

You might try setting cache=3Dwriteback.  To do so, after the

file=3Dwinnt4ts.raw

make it

file=3Dwinnt4ts.raw,cache=3Dwriteback


It made a big difference for me with the MS Server 2003 I run with KVM.
 For reference, here is the kvm command that is run for my Win server 2003
VM (I migrated it from VMWare to KVM and now get the same or slightly
better performance):

/usr/bin/kvm -S -M pc-1.0 -cpu qemu64,-svm -enable-kvm -m 2048 -smp
1,sockets=3D1,cores=3D1,threads=3D1 -name antitrust -uuid
564dbb65-75b3-74bd-7252-d9749ee2697d -nodefconfig -nodefaults -chardev
socket,id=3Dcharmonitor,path=3D/var/lib/libvirt/qemu/antitrust.monitor,serv=
er,nowait
-mon chardev=3Dcharmonitor,id=3Dmonitor,mode=3Dcontrol -rtc base=3Dlocaltim=
e
-no-shutdown -boot c -drive
file=3D/var/data/vm/kvm/antitrust.img,if=3Dnone,id=3Ddrive-virtio-disk0,for=
mat=3Draw,cache=3Dwriteback
-device
virtio-blk-pci,bus=3Dpci.0,addr=3D0x5,drive=3Ddrive-virtio-disk0,id=3Dvirti=
o-disk0
-drive
file=3D/var/data/vm/kvm/virtio-win-0.1-52.iso,if=3Dnone,media=3Dcdrom,id=3D=
drive-ide0-1-0,readonly=3Don,format=3Draw
-device ide-drive,bus=3Dide.1,unit=3D0,drive=3Ddrive-ide0-1-0,id=3Dide0-1-0=
 -netdev
tap,fd=3D18,id=3Dhostnet0 -device
e1000,netdev=3Dhostnet0,id=3Dnet0,mac=3D00:0c:29:e2:69:7d,bus=3Dpci.0,addr=
=3D0x3
-chardev pty,id=3Dcharserial0 -device
isa-serial,chardev=3Dcharserial0,id=3Dserial0 -chardev pty,id=3Dcharparalle=
l0
-device isa-parallel,chardev=3Dcharparallel0,id=3Dparallel0 -usb -device
usb-mouse,id=3Dinput0 -vnc 127.0.0.1:2 -vga vmware -device
virtio-balloon-pci,id=3Dballoon0,bus=3Dpci.0,addr=3D0x4

--047d7b414c2ecb8f7404daa6c5a1
Content-Type: text/html; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">On Thu, Apr 18, 2013 at 11:29 AM, Vin=EDcius Ferr=E3o <spa=
n dir=3D"ltr">&lt;<a href=3D"mailto:[email protected]" target=3D"_b=
lank">[email protected]</a>&gt;</span> wrote:<br><div class=3D"gmai=
l_extra"><div class=3D"gmail_quote">
<blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-=
left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;p=
adding-left:1ex"><div style=3D"word-wrap:break-word">KVM is enabled in BIOS=
 too.<div>
<br></div><div>I doubled checked it. Disabled and even got a message saying=
 the KVM is not available when Disabled in BIOS=85.</div><div><br></div><di=
v>Thanks,</div><div><br><div><div class=3D"im"><div>
<div style=3D"line-height:13px;margin:6px 0px;padding:8px;border-top-width:=
1px;border-top-color:rgb(153,153,153);border-top-style:dotted;border-bottom=
-width:1px;border-bottom-color:rgb(153,153,153);border-bottom-style:dotted;=
font-family:&#39;Lucida Grande&#39;,Verdana,Arial,sans-serif;font-size:11px=
;color:rgb(51,102,153)">

		<strong style=3D"color:rgb(51,102,153)">Vin=EDcius Ferr=E3o</strong>: Adm=
inistrador de Sistemas <br>
		<a href=3D"http://www.ferrao.eti.br" style=3D"color:rgb(51,102,153);text-=
decoration:none;border-bottom-width:1px;border-bottom-color:rgb(153,153,153=
);border-bottom-style:dotted" target=3D"_blank">www.ferrao.eti.br</a> | <a =
href=3D"tel:%2B55%20%2821%29%208888-2619" value=3D"+552188882619" target=3D=
"_blank">+55 (21) 8888-2619</a>
</div>

</div>
<br></div><div><div>On Apr 18, 2013, at 11:29 AM, Robert Bridge &lt;<a href=
=3D"mailto:[email protected]" target=3D"_blank">[email protected]</a>&g=
t;</div><div>=A0wrote:</div><div><div class=3D"h5"><br><blockquote type=3D"=
cite">
Hi,<br><br>Are you sure your hardware virt isn&#39;t disabled in the BIOS? =
It is, in<br>my experience, the one BIOS setting the linux kernel doesn&#39=
;t/can&#39;t<br>over-ride.<br><br>Cheers,<br>RobbieAB<br><br>On 18 April 20=
13 01:35, Vin=EDcius Ferr=E3o &lt;<a href=3D"mailto:[email protected].=
br" target=3D"_blank">[email protected]</a>&gt; wrote:<br>
<blockquote type=3D"cite">Hello dudes,<br><br>Thanks for the replies.<br><b=
r>But I&#39;ve read somewhere that -no-kvm should be enabled in order to ru=
n NT4<br>Properly.<br><br>Anyway, I removed the flag and nothing really hap=
pened. It&#39;s still slow.<br>
It&#39;s usable, but slow. VMWare was much faster.<br><br>And about the RAM=
 issue. It&#39;s Windows NT4. I don&#39;t think more is necessary.<br>The m=
achine boots consuming only 30MB. And about the slowness of the system<br>
is during CPU intensive operations.<br><br>Anything else to try dudes?<br><=
br>Thanks,<br><br>Vin=EDcius Ferr=E3o: Administrador de Sistemas<br><a href=
=3D"http://www.ferrao.eti.br" target=3D"_blank">www.ferrao.eti.br</a> | <a =
href=3D"tel:%2B55%20%2821%29%208888-2619" value=3D"+552188882619" target=3D=
"_blank">+55 (21) 8888-2619</a><br>
<br>On Apr 17, 2013, at 5:54 PM, Hinnerk van Bruinehsen<br>&lt;<a href=3D"m=
ailto:[email protected]" target=3D"_blank">h.v.bruinehsen@fu-berl=
in.de</a>&gt;<br> wrote:<br><br>On Wed, Apr 17, 2013 at 07:34:00PM +0000, V=
in=EDcius Ferr=E3o wrote:<br>
<br>Hello dudes,<br><br>I&#39;m running Windows NT 4 Terminal Server on QEM=
U and the performance is too<br>slow; I don&#39;t even know how to debug it=
 and I even don&#39;t if this is normal<br>or not.<br><br>On VMWare Player =
the performance was much better. And this isn&#39;t a<br>
migration. I&#39;ve reinstalled the NT4 from the ground.<br><br>Anyway; i&#=
39;m launching the VM with this arguments:<br>kvm -m 128m -name WinNT4TS -d=
rive file=3Dwinnt4ts.raw -cdrom Windows\ NT\ 4\<br>Terminal\ Server\ Image/=
WINNT-TSE40.iso -net<br>
nic,model=3Dne2k_pci,macaddr=3D00:0c:29:74:fa:b4 -net tap -vga std -cpu<br>=
pentium,level=3D1 -smp 1 -no-acpi -no-hpet -no-kvm -boot c -vnc none<br>-da=
emonize<br><br><br>Hi,<br><br>iirc the commandline switch --no-kvm disables=
 kvm (so it&#39;S just software<br>
emulated qemu). You disable hardware virtualization accerleration with<br>i=
t.<br><br>Other than that: more than 128 MB ram will most likely also help =
to<br>speed things up.<br><br>WKR<br>Hinnerk<br><br><br></blockquote><br>
</blockquote></div></div></div><br></div></div></div></blockquote><div><br>=
</div><div><br></div><div style>You might try setting cache=3Dwriteback. =
=A0To do so, after the</div><div style><br></div><div style>file=3Dwinnt4ts=
.raw</div>
<div style><br></div><div style>make it</div><div style><br></div><div styl=
e>file=3Dwinnt4ts.raw,cache=3Dwriteback</div><div style><br></div><div styl=
e><br></div><div style>It made a big difference for me with the MS Server 2=
003 I run with KVM. =A0For reference, here is the kvm command that is run f=
or my Win server 2003 VM (I migrated it from VMWare to KVM and now get the =
same or slightly better performance):</div>
<div style><br></div><div style><div>/usr/bin/kvm -S -M pc-1.0 -cpu qemu64,=
-svm -enable-kvm -m 2048 -smp 1,sockets=3D1,cores=3D1,threads=3D1 -name ant=
itrust -uuid 564dbb65-75b3-74bd-7252-d9749ee2697d -nodefconfig -nodefaults =
-chardev socket,id=3Dcharmonitor,path=3D/var/lib/libvirt/qemu/antitrust.mon=
itor,server,nowait -mon chardev=3Dcharmonitor,id=3Dmonitor,mode=3Dcontrol -=
rtc base=3Dlocaltime -no-shutdown -boot c -drive file=3D/var/data/vm/kvm/an=
titrust.img,if=3Dnone,id=3Ddrive-virtio-disk0,format=3Draw,cache=3Dwritebac=
k -device virtio-blk-pci,bus=3Dpci.0,addr=3D0x5,drive=3Ddrive-virtio-disk0,=
id=3Dvirtio-disk0 -drive file=3D/var/data/vm/kvm/virtio-win-0.1-52.iso,if=
=3Dnone,media=3Dcdrom,id=3Ddrive-ide0-1-0,readonly=3Don,format=3Draw -devic=
e ide-drive,bus=3Dide.1,unit=3D0,drive=3Ddrive-ide0-1-0,id=3Dide0-1-0 -netd=
ev tap,fd=3D18,id=3Dhostnet0 -device e1000,netdev=3Dhostnet0,id=3Dnet0,mac=
=3D00:0c:29:e2:69:7d,bus=3Dpci.0,addr=3D0x3 -chardev pty,id=3Dcharserial0 -=
device isa-serial,chardev=3Dcharserial0,id=3Dserial0 -chardev pty,id=3Dchar=
parallel0 -device isa-parallel,chardev=3Dcharparallel0,id=3Dparallel0 -usb =
-device usb-mouse,id=3Dinput0 -vnc <a href=3D"http://127.0.0.1:2">127.0.0.1=
:2</a> -vga vmware -device virtio-balloon-pci,id=3Dballoon0,bus=3Dpci.0,add=
r=3D0x4</div>
<div><br></div></div><div style><br></div><div style><br></div><div style><=
br></div><div>=A0</div></div><br></div></div>

--047d7b414c2ecb8f7404daa6c5a1--