All of lore.kernel.org
 help / color / mirror / Atom feed
From: Maximiliano Curia <maxy@gnuservers.com.ar>
To: Alain <alainm@pobox.com>, jeff@cginc.dyndns.org
Cc: linux-msdos@vger.kernel.org
Subject: Re: Clipper use 100% off CPU => me too!
Date: Wed, 12 Jan 2005 10:40:39 -0300	[thread overview]
Message-ID: <41E528D7.4030104@gnuservers.com.ar> (raw)
In-Reply-To: <41E4560A.60307@pobox.com>

Alain wrote:
> The same thing happens to my application, only that I get around 50% cpu 
> usage. Here I have access to the wait loop: I check Keyboard (bios 
> call), mouse, timers, event-queue and start again. What should I do to 
> stop using so much cpu?

I'm sending a copy to the dosemu list, so we can have more eyeballs on 
the issue.

> I have noticed that, just as it happens with Clipper, this usage is only 
> idle time and that it falls as soon as someone start using cpu...

Yes, I've seen that behavior in my machine. As I told you, it was fixed 
with the patch I posted.
(jeff you can find it in http://gnuservers.com.ar/~maxy/clipper/)

I don't if this would help you, but in one of the programs I've another 
patch, which is a source level patch. This was supposed to recover the 
idle calls for the system, but it didn't do any difference.

So if you want to give it a try, I've just uploaded them in:
http://gnuservers.com.ar/~maxy/clipper/nflib.zip
http://gnuservers.com.ar/~maxy/clipper/nfpatch.zip

I hope you remember how to put the files in the correct place, because I 
don't. :)

You also have to add a line in the beginning of you program, something like:
FT_OnIdle({||FT_IAmIdle(30,.T.)})

> I have $_hogthreshold = (1),

Same here.

> Mandrake linux 10.0, Dosemu 1.2.1.0 and FreeDOS 2035 (tom).

Debian sarge, dosemu 1.2.1 and freedos b8p.



-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.6.10 - Release Date: 10/01/05


      parent reply	other threads:[~2005-01-12 13:40 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-16  2:31 Clipper use 100% off CPU jeff dyn
2005-01-10 17:54 ` Maximiliano Curia
2005-01-11 22:49   ` Clipper use 100% off CPU => me too Alain
2005-01-11 23:30     ` Alain
2005-01-11 22:53   ` 50 linhas Alain
     [not found]   ` <41E4560A.60307@pobox.com>
2005-01-12 13:40     ` Maximiliano Curia [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=41E528D7.4030104@gnuservers.com.ar \
    --to=maxy@gnuservers.com.ar \
    --cc=alainm@pobox.com \
    --cc=jeff@cginc.dyndns.org \
    --cc=linux-msdos@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.