* DOSEmu on SMP systems.
@ 2003-08-26 7:57 Sergey Suleymanov
0 siblings, 0 replies; 4+ messages in thread
From: Sergey Suleymanov @ 2003-08-26 7:57 UTC (permalink / raw)
To: Linux-MSDOS Mailing list
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. rdtsc is disabled.
Are there any DOSEMU's idling tuning issues on SMP systems?
--
Sergey Suleymanov
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: DOSEmu on SMP systems.
@ 2003-08-26 17:08 Stas Sergeev
2003-08-28 5:31 ` Sergey Suleymanov
0 siblings, 1 reply; 4+ messages in thread
From: Stas Sergeev @ 2003-08-26 17:08 UTC (permalink / raw)
To: linux-msdos
[-- Attachment #1: Type: text/plain, Size: 392 bytes --]
Hello.
Sergey Suleymanov wrote:
> 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.
[-- Attachment #2: int16.diff --]
[-- Type: text/plain, Size: 854 bytes --]
--- int16.c.old Mon Jun 23 04:02:08 2003
+++ int16.c Tue Aug 26 21:02:31 2003
@@ -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);
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: DOSEmu on SMP systems.
2003-08-26 17:08 Stas Sergeev
@ 2003-08-28 5:31 ` Sergey Suleymanov
2003-08-28 12:24 ` Sergey Suleymanov
0 siblings, 1 reply; 4+ messages in thread
From: Sergey Suleymanov @ 2003-08-28 5:31 UTC (permalink / raw)
To: Linux-MSDOS Mailing list
>>>>> 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.
--
Sergey Suleymanov
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-08-28 12:24 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-26 7:57 DOSEmu on SMP systems Sergey Suleymanov
-- strict thread matches above, loose matches on Subject: below --
2003-08-26 17:08 Stas Sergeev
2003-08-28 5:31 ` Sergey Suleymanov
2003-08-28 12:24 ` Sergey Suleymanov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox