public inbox for linux-msdos@vger.kernel.org
 help / color / mirror / Atom feed
From: Stas Sergeev <stsp@aknet.ru>
To: linux-msdos@vger.kernel.org
Subject: Re: Dosemu and clipper applications eating all CPU
Date: Sat, 13 Mar 2004 01:33:08 +0300	[thread overview]
Message-ID: <40523AA4.8040304@aknet.ru> (raw)

[-- Attachment #1: Type: text/plain, Size: 680 bytes --]

Hello.

Maximiliano Curia wrote:
> Yes, that dosemu doesn't detect the clipper idle calls.
OK, some nice guy at SF finally
provided a clipper-based program
for testing (that's why I like
the SF tracker) and I was able to
have a look at what it does myself.
Indeed it calls int21h/1Ch, although
so infrequently, that it doesn't
seem to be usefull here.
It calls int16h/11h a bit more
frequently, although also rather
rarely.
The attached patch makes it to
release the CPU a little, although
perhaps still not enough.
Also note that clipper will work
in protected mode only in dosemu
1.3.1. On any other versions it
can work in real mode only, which
may have a different CPU loads.

[-- Attachment #2: delay.diff --]
[-- Type: text/plain, Size: 424 bytes --]

--- src/base/bios/int16.c	Sat Mar 13 00:40:05 2004
+++ src/base/bios/int16.c	Sat Mar 13 01:15:29 2004
@@ -126,7 +126,7 @@
       trigger1=0;
     if(trigger1 >= config.hogthreshold*500) {
       if(oldESP==_ESP) {
-        if (++trigger >= config.hogthreshold*20) {
+        if (trigger++ >= (config.hogthreshold - 1) * 20) {
           usleep(INT2F_IDLE_USECS);
           trigger=0;
           keyptr = get_key(extended);

[-- Attachment #3: Type: text/plain, Size: 81 bytes --]

Scanned by evaluation version of Dr.Web antivirus Daemon 
http://drweb.ru/unix/


             reply	other threads:[~2004-03-12 22:33 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-12 22:33 Stas Sergeev [this message]
2004-03-15 11:53 ` Dosemu and clipper applications eating all CPU Maurilio Longo
  -- strict thread matches above, loose matches on Subject: below --
2004-04-28 17:32 Stas Sergeev
2004-04-28  5:55 Mgr. Peter Tuharsky
2004-04-28 19:52 ` Maximiliano Curia
2004-03-15 19:17 Stas Sergeev
2004-03-15 17:50 Stas Sergeev
2004-03-15 18:07 ` Maurilio Longo
2004-03-11 18:44 Stas Sergeev
2004-03-10 19:36 Stas Sergeev
2004-03-10 22:55 ` Maurilio Longo
2004-03-11  8:29   ` Maurilio Longo
2004-03-10 18:36 Stas Sergeev
2004-03-09 20:16 Stas Sergeev
2004-03-10 15:29 ` Peter B. Steiger
2004-03-10 19:11 ` Maximiliano Curia
2004-03-08 16:11 Maximiliano Curia

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=40523AA4.8040304@aknet.ru \
    --to=stsp@aknet.ru \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox