qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] QEmu 0.6.0 and FreeDOS on XP Host get 100% CPU usage
@ 2004-07-13 21:33 Info
  2004-07-14  1:50 ` Natalia Portillo
  2004-07-14 12:20 ` PeteD
  0 siblings, 2 replies; 8+ messages in thread
From: Info @ 2004-07-13 21:33 UTC (permalink / raw)
  To: qemu-devel

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: [Qemu-devel] QEmu 0.6.0 and FreeDOS on XP Host get 100% CPU usage
  2004-07-13 21:33 [Qemu-devel] QEmu 0.6.0 and FreeDOS on XP Host get 100% CPU usage Info
@ 2004-07-14  1:50 ` Natalia Portillo
  2004-07-14  9:25   ` Luke Deller
  2004-07-14 12:40   ` Info
  2004-07-14 12:20 ` PeteD
  1 sibling, 2 replies; 8+ messages in thread
From: Natalia Portillo @ 2004-07-14  1:50 UTC (permalink / raw)
  To: qemu-devel

In qemu isn't implemented idle.

So when the emulated cpu is idle, the emulation is not.
That's the reason. 

> -----Mensaje original-----
> De: qemu-devel-bounces+iosglpgc=teleline.es@nongnu.org 
> [mailto:qemu-devel-bounces+iosglpgc=teleline.es@nongnu.org] 
> En nombre de Info
> Enviado el: martes, 13 de julio de 2004 22:34
> Para: qemu-devel@nongnu.org
> Asunto: [Qemu-devel] 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
> 
> 
> _______________________________________________
> Qemu-devel mailing list
> Qemu-devel@nongnu.org
> http://lists.nongnu.org/mailman/listinfo/qemu-devel

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Qemu-devel] QEmu 0.6.0 and FreeDOS on XP Host get 100% CPU usage
  2004-07-14  1:50 ` Natalia Portillo
@ 2004-07-14  9:25   ` Luke Deller
  2004-07-14 10:00     ` Antony T Curtis
  2004-07-14 12:40   ` Info
  1 sibling, 1 reply; 8+ messages in thread
From: Luke Deller @ 2004-07-14  9:25 UTC (permalink / raw)
  To: qemu-devel

Natalia Portillo wrote:
> 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.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Qemu-devel] QEmu 0.6.0 and FreeDOS on XP Host get 100% CPU usage
  2004-07-14  9:25   ` Luke Deller
@ 2004-07-14 10:00     ` Antony T Curtis
  0 siblings, 0 replies; 8+ messages in thread
From: Antony T Curtis @ 2004-07-14 10:00 UTC (permalink / raw)
  To: qemu-devel

On Wed, 2004-07-14 at 10:25, Luke Deller wrote:
> Natalia Portillo wrote:
> > 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.

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...

-- 
Antony T Curtis <antony.t.curtis@ntlworld.com>

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Qemu-devel] QEmu 0.6.0 and FreeDOS on XP Host get 100% CPU usage
  2004-07-13 21:33 [Qemu-devel] QEmu 0.6.0 and FreeDOS on XP Host get 100% CPU usage Info
  2004-07-14  1:50 ` Natalia Portillo
@ 2004-07-14 12:20 ` PeteD
  2004-07-14 12:45   ` Info
  1 sibling, 1 reply; 8+ messages in thread
From: PeteD @ 2004-07-14 12:20 UTC (permalink / raw)
  To: 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" <info@geodb.org>
To: <qemu-devel@nongnu.org>
Sent: Tuesday, July 13, 2004 10:33 PM
Subject: [Qemu-devel] 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
>
>
> _______________________________________________
> Qemu-devel mailing list
> Qemu-devel@nongnu.org
> http://lists.nongnu.org/mailman/listinfo/qemu-devel

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Qemu-devel] QEmu 0.6.0 and FreeDOS on XP Host get 100% CPU usage
  2004-07-14  1:50 ` Natalia Portillo
  2004-07-14  9:25   ` Luke Deller
@ 2004-07-14 12:40   ` Info
  1 sibling, 0 replies; 8+ messages in thread
From: Info @ 2004-07-14 12:40 UTC (permalink / raw)
  To: qemu-devel

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

On Wed, 14 Jul 2004 02:50:08 +0100
  "Natalia Portillo" <claunia@claunia.com> wrote:
>*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. 
>
>> -----Mensaje original-----
>> De: qemu-devel-bounces+iosglpgc=teleline.es@nongnu.org 
>> [mailto:qemu-devel-bounces+iosglpgc=teleline.es@nongnu.org] 
>> En nombre de Info
>> Enviado el: martes, 13 de julio de 2004 22:34
>> Para: qemu-devel@nongnu.org
>> Asunto: [Qemu-devel] 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
>> 
>> 
>> _______________________________________________
>> Qemu-devel mailing list
>> Qemu-devel@nongnu.org
>> http://lists.nongnu.org/mailman/listinfo/qemu-devel
>
>
>
>_______________________________________________
>Qemu-devel mailing list
>Qemu-devel@nongnu.org
>http://lists.nongnu.org/mailman/listinfo/qemu-devel

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Qemu-devel] QEmu 0.6.0 and FreeDOS on XP Host get 100% CPU usage
  2004-07-14 12:20 ` PeteD
@ 2004-07-14 12:45   ` Info
  2004-07-14 13:53     ` Adrian Smarzewski
  0 siblings, 1 reply; 8+ messages in thread
From: Info @ 2004-07-14 12:45 UTC (permalink / raw)
  To: 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

On Wed, 14 Jul 2004 13:20:25 +0100
  "PeteD" <Pete@crazycode.fsnet.co.uk> 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" <info@geodb.org>
>To: <qemu-devel@nongnu.org>
>Sent: Tuesday, July 13, 2004 10:33 PM
>Subject: [Qemu-devel] 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
>>
>>
>> _______________________________________________
>> Qemu-devel mailing list
>> Qemu-devel@nongnu.org
>> http://lists.nongnu.org/mailman/listinfo/qemu-devel
>
>
>
>_______________________________________________
>Qemu-devel mailing list
>Qemu-devel@nongnu.org
>http://lists.nongnu.org/mailman/listinfo/qemu-devel

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Qemu-devel] QEmu 0.6.0 and FreeDOS on XP Host get 100% CPU usage
  2004-07-14 12:45   ` Info
@ 2004-07-14 13:53     ` Adrian Smarzewski
  0 siblings, 0 replies; 8+ messages in thread
From: Adrian Smarzewski @ 2004-07-14 13:53 UTC (permalink / raw)
  To: 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-----

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2004-07-14 13:53 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-13 21:33 [Qemu-devel] QEmu 0.6.0 and FreeDOS on XP Host get 100% CPU usage Info
2004-07-14  1:50 ` Natalia Portillo
2004-07-14  9:25   ` Luke Deller
2004-07-14 10:00     ` Antony T Curtis
2004-07-14 12:40   ` Info
2004-07-14 12:20 ` PeteD
2004-07-14 12:45   ` Info
2004-07-14 13:53     ` Adrian Smarzewski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).