QEmu 0.6.0 and FreeDOS on XP Host get 100% CPU usage
Hello all
I have a Windows XP host (SP1) and a FreeDOS guest which runs in the QEmu 0.6.0 from FreeOSZoo. As soon as I start the FreeDOS in QEmu, the CPU usage of the host get up to 100%, even there is only the FreeDOS kernel and command.com running inside QEmu.
I found some infos in the net, that the DOS polling access to the keyboard can be the reason for it and I could use DOSKBD or TAME to change that behavor.
Unfortunatly, after trying a lot, I wasn't able to resolve the problem.
Has anyone made some experience with this ?
Cheers
Andreas
In qemu isn't implemented idle.
So when the emulated cpu is idle, the emulation is not. That's the reason.
Quoted 34 lines
-----Mensaje original-----
De: [email protected] [mailto:[email protected]] En nombre de Info
Enviado el: martes, 13 de julio de 2004 22:34
Para: [email protected]
Asunto: [Qemu-devel] QEmu 0.6.0 and FreeDOS on XP Host get 100% CPU usageHello all
I have a Windows XP host (SP1) and a FreeDOS guest which runs in the QEmu 0.6.0 from FreeOSZoo. As soon as I start the FreeDOS in QEmu, the CPU usage of the host get up to 100%, even there is only the FreeDOS kernel and command.com running inside QEmu.
I found some infos in the net, that the DOS polling access to the keyboard can be the reason for it and I could use DOSKBD or TAME to change that behavor.
Unfortunatly, after trying a lot, I wasn't able to resolve the problem.
Has anyone made some experience with this ?
Cheers
Andreas_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel
Quoted 4 lines · Natalia Portillo
In qemu isn't implemented idle.
So when the emulated cpu is idle, the emulation is not. That's the reason.
I don't think that is true, because when I run Windows XP as a guest in qemu, the qemu process doesn't use 100% CPU unless something is actually running in Windows.
I suspect that Andreas gets 100% CPU usage with a FreeDOS guest because FreeDOS doesn't do CPU idle... that's not how DOS works. It's not much of an operating system at all, really.
Luke.
Quoted 6 lines · Luke Deller
Quoted 4 lines · Natalia Portillo
In qemu isn't implemented idle.
So when the emulated cpu is idle, the emulation is not. That's the reason.
Quoted 7 lines
I don't think that is true, because when I run Windows XP as a guest in qemu, the qemu process doesn't use 100% CPU unless something is actually running in Windows.
I suspect that Andreas gets 100% CPU usage with a FreeDOS guest because FreeDOS doesn't do CPU idle... that's not how DOS works. It's not much of an operating system at all, really.
DOS programming frequently involves polling the keyboard...
For those familiar with programming with Turbo Pascal...
repeat until KeyPressed(); ch := ReadKey();
The above code is typical of DOS programming... note the furious loop. Some more sophisticated programs hooked the keyboard interrupt for keyboard processing ... some used a mix of the two. The reason many applications polled the hardware directly was to get access to all the scancodes - so additional Alt etc sequences can be handled by the program.
IIRC, The EDIT program shipped with MSDOS 6 used a mix... it used interrupt for most ... but when you pulled down a menu, it polled the keyboard. A popular "Intel suggested" way to heat-burn a CPU was to run EDIT and pull down the file menu... and leave the PC alone.
Back on to topic... I think the last time I looked at the BIOS source, the get character service routine polls the keyboard, perhaps if this is made nicer, and if FreeDOS uses the BIOS for keyboard reads, it would behave better...
Signature · 1 line
Antony T Curtis <[email protected]>
Thank you for this inside view. More later in the night, I got a solution working to decrase the CPU usage. There is a tool on the VMWare website called CPUIdle. With it loaded, the CPU usage decrased from 100% to 4%. Hope this helps others too.
Andreas
Quoted 37 lines · On Wed, 14 Jul 2004 02:50:08 +0100 "Natalia Portillo" <[email protected]>…
*This message was transferred with a trial version of CommuniGate(tm) Pro* In qemu isn't implemented idle.
So when the emulated cpu is idle, the emulation is not. That's the reason.
Quoted 16 lines
-----Mensaje original-----
De: [email protected] [mailto:[email protected]] En nombre de Info Enviado el: martes, 13 de julio de 2004 22:34
Para: [email protected]
Asunto: [Qemu-devel] QEmu 0.6.0 and FreeDOS on XP Host get 100% CPU usageHello all
I have a Windows XP host (SP1) and a FreeDOS guest which runs in the QEmu 0.6.0 from FreeOSZoo. As soon as I start the FreeDOS in QEmu, the CPU usage of the host get up to 100%, even there is only the FreeDOS kernel and command.com running inside QEmu.
I found some infos in the net, that the DOS polling access to the keyboard can be the reason for it and I could use DOSKBD or TAME to change that behavor.
Unfortunatly, after trying a lot, I wasn't able to resolve the problem.
Has anyone made some experience with this ?
Quoted 8 lines
Cheers
Andreas_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel
Not sure if this works on FreeDOS (it works ok on DOS 6.22)
http://www.vmware.com/software/dosidle210.zip
Copy the contents of that to your dos image (make an iso, floppy, or however you want to do it), then run dosidle.exe when you've booted into DOS.
----- Original Message -----
From: "Info" <[email protected]>
To: <[email protected]>
Sent: Tuesday, July 13, 2004 10:33 PM
Subject: [Qemu-devel] QEmu 0.6.0 and FreeDOS on XP Host get 100% CPU usage
Quoted 25 lines
Hello all
I have a Windows XP host (SP1) and a FreeDOS guest which runs in the QEmu 0.6.0 from FreeOSZoo. As soon as I start the FreeDOS in QEmu, the CPU usage of the host get up to 100%, even there is only the FreeDOS kernel and command.com running inside QEmu.
I found some infos in the net, that the DOS polling access to the keyboard can be the reason for it and I could use DOSKBD or TAME to change that behavor.
Unfortunatly, after trying a lot, I wasn't able to resolve the problem.
Has anyone made some experience with this ?
Cheers
Andreas_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel
Hello Pete
thank you for your help. DOSIdle works fine and helped very much. Specificaly because I mostly work with my notebook over Wireless and otherwise the akku will be down very fast.
Greetings
Andreas
Quoted 48 lines · On Wed, 14 Jul 2004 13:20:25 +0100 "PeteD" <[email protected]> wrote:
*This message was transferred with a trial version of CommuniGate(tm) Pro* Not sure if this works on FreeDOS (it works ok on DOS 6.22)
http://www.vmware.com/software/dosidle210.zip
Copy the contents of that to your dos image (make an iso, floppy, or however you want to do it), then run dosidle.exe when you've booted into DOS.
----- Original Message -----
From: "Info" <[email protected]>
To: <[email protected]>
Sent: Tuesday, July 13, 2004 10:33 PM
Subject: [Qemu-devel] QEmu 0.6.0 and FreeDOS on XP Host get 100% CPU usageQuoted 17 lines
Hello all
I have a Windows XP host (SP1) and a FreeDOS guest which runs in the QEmu 0.6.0 from FreeOSZoo. As soon as I start the FreeDOS in QEmu, the CPU usage of the host get up to 100%, even there is only the FreeDOS kernel and command.com running inside QEmu.
I found some infos in the net, that the DOS polling access to the keyboard can be the reason for it and I could use DOSKBD or TAME to change that behavor.
Unfortunatly, after trying a lot, I wasn't able to resolve the problem.
Has anyone made some experience with this ?
Quoted 8 lines
Cheers
Andreas_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Info wrote:
| thank you for your help. DOSIdle works fine and helped very much. | Specificaly because I mostly work with my notebook over Wireless and | otherwise the akku will be down very fast.
Please do not use top-posting!
Top posting means replying to a message above the original message. You should write your answer _below_ previous text just like I'm doing right now.
Don't over-quote. When replying, cut quotes down to what's necessary to show what you're replying to. Just like I'm doing right now.
- --
Pozdrowienia
Adrian Smarzewski
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFA9TrmgnuWEmthbpURAlBEAJ9lFYHrZPthro9ZnCR2n5rDoq2+3wCgsBgK H85M9z0IhgKQItpbmzyF/Ts=
=VLFe
-----END PGP SIGNATURE-----