Skip to contentSkip to conversation

DOSEmu on SMP systems.

DISCUSSION Stas Sergeev 2 participants 3 messages Aug 26, 2003 – Aug 28, 2003

lore
Share & tools
lore
#0 lore raw

Hello.

Quoted 2 lines · Sergey Suleymanov

I have Tyan Athlon MP platform with Linux kernel 2.4.21. Dosemu eats ~30 %CPU time in a plain DOS command prompt. Playing with config.hogthreshold multipliers in int.c, int16.c and *_IDLE_USECS values gives nothing.

Not sure about an SMP, but the $_hogthreshold
doesn't work reliably for me without the
attached patch. See if probably it helps you.

int16.c renamed from int16.c.old +3 -9
@@ -116,7 +116,6 @@
 static unsigned check_key_available(int extended)
 {
   unsigned keyptr = get_key(extended);
-  static Bit32u oldESP;
   static int trigger = 0, trigger1 = 0;
   
   if(keyptr == -1 && config.hogthreshold && CAN_SLEEP()) {
@@ -125,17 +124,12 @@
     else
       trigger1=0;
     if(trigger1 >= config.hogthreshold*500) {
-      if(oldESP==_ESP) {
-        if (++trigger >= config.hogthreshold*20) {
-          usleep(INT2F_IDLE_USECS);
-          trigger=0;
-          keyptr = get_key(extended);
-        }
-      } else {
+      if (++trigger >= config.hogthreshold*20) {
+        usleep(INT2F_IDLE_USECS);
         trigger=0;
+        keyptr = get_key(extended);
       }
       trigger1--;
-      oldESP=_ESP;
     }
   }
   return get_key(extended);
#1 lore raw
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

Stas Sergeev writes:

Stas> Not sure about an SMP, but the $_hogthreshold doesn't work Stas> reliably for me without the attached patch. See if probably it Stas> helps you.

:( No. On a single Athlon with the same kernel version idling works quite well.

I think I need to try run dosemu with uniprocessor kernel.

Signature · 1 line
  Sergey Suleymanov
#2 lore raw

It seems the problem (if it is) was in kernel module amd76x_pm. :(

Signature · 1 line
  Sergey Suleymanov