Linux MS DOS discussions
 help / color / mirror / Atom feed
* Clipper use 100% off CPU
@ 2004-11-13 14:56 jeff dyn
  0 siblings, 0 replies; 8+ messages in thread
From: jeff dyn @ 2004-11-13 14:56 UTC (permalink / raw)
  To: linux-msdos

I
When i use clipper program, when he wait keyboard touch, CPU is 99% used.
But when the program is working, CPU go down to 1.2%
Whats wrong ?

see you

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

* Clipper use 100% off CPU
@ 2004-11-16  2:31 jeff dyn
  2005-01-10 17:54 ` Maximiliano Curia
  0 siblings, 1 reply; 8+ messages in thread
From: jeff dyn @ 2004-11-16  2:31 UTC (permalink / raw)
  To: linux-msdos

Hi
Some one know if  the  problem of 99% CPU use with clipper be resolve ???
Best regards

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

* Re: Clipper use 100% off CPU
@ 2004-11-16 17:05 Stas Sergeev
  0 siblings, 0 replies; 8+ messages in thread
From: Stas Sergeev @ 2004-11-16 17:05 UTC (permalink / raw)
  To: linux-msdos

Hello.

jeff dyn wrote:
> Some one know if  the  problem of 99% CPU use with clipper be resolve 
> ???
You can try to open an RFE on dosemu
bugtracker and attach you program there
for testings.
Alternatively please have a look here:
http://www.tamedos.com/


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

* Re: Clipper use 100% off CPU
  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
                     ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Maximiliano Curia @ 2005-01-10 17:54 UTC (permalink / raw)
  To: jeff; +Cc: linux-msdos

jeff dyn wrote:
> Some one know if the problem of 99% CPU use with clipper be resolve ???

Afaik, the best solution so far is to patch the clipper program with:
http://www.gnuservers.com.ar/~maxy/clipper/clip2f.exe

Someone in this list recommended this a while ago and I haven't thank 
him enough.

There is a few other solutions that load a tsr program that catch some 
"known to be broken" idle calls, that didn't turn out very well for me.


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

* Re: Clipper use 100% off CPU => me too
  2005-01-10 17:54 ` Maximiliano Curia
@ 2005-01-11 22:49   ` Alain
  2005-01-11 23:30     ` Alain
  2005-01-11 22:53   ` 50 linhas Alain
       [not found]   ` <41E4560A.60307@pobox.com>
  2 siblings, 1 reply; 8+ messages in thread
From: Alain @ 2005-01-11 22:49 UTC (permalink / raw)
  To: Dosemu

(Sorri Maximiliano, this message was for the list)

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

I have $_hogthreshold = (1), Mandrake linux 10.0, Dosemu 1.2.1.0 and 
FreeDOS 2035 (tom).

Alain

Maximiliano Curia escreveu:
> jeff dyn wrote:
> 
>> Some one know if the problem of 99% CPU use with clipper be resolve ???
> 
> 
> Afaik, the best solution so far is to patch the clipper program with:
> http://www.gnuservers.com.ar/~maxy/clipper/clip2f.exe
> 
> Someone in this list recommended this a while ago and I haven't thank 
> him enough.
> 
> There is a few other solutions that load a tsr program that catch some 
> "known to be broken" idle calls, that didn't turn out very well for me.
> 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 
> 

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

* 50 linhas
  2005-01-10 17:54 ` Maximiliano Curia
  2005-01-11 22:49   ` Clipper use 100% off CPU => me too Alain
@ 2005-01-11 22:53   ` Alain
       [not found]   ` <41E4560A.60307@pobox.com>
  2 siblings, 0 replies; 8+ messages in thread
From: Alain @ 2005-01-11 22:53 UTC (permalink / raw)
  To: Dosemu

When I issue:

mode co80,50

I do get 50 lines bit it says "Using VGA 400 lines resolution.". I would 
like to use 480 lines to get a more readable font. Where should I 
configure that?

Thanks,
Alain

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

* Re: Clipper use 100% off CPU => me too
  2005-01-11 22:49   ` Clipper use 100% off CPU => me too Alain
@ 2005-01-11 23:30     ` Alain
  0 siblings, 0 replies; 8+ messages in thread
From: Alain @ 2005-01-11 23:30 UTC (permalink / raw)
  To: Dosemu

Sorry again I have Dosemu 1.2.2.0 (I misstyped)

Alain escreveu:
> (Sorri Maximiliano, this message was for the list)
> 
> 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 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...
> 
> I have $_hogthreshold = (1), Mandrake linux 10.0, Dosemu 1.2.1.0 and 
> FreeDOS 2035 (tom).
> 
> Alain
> 
> Maximiliano Curia escreveu:
> 
>> jeff dyn wrote:
>>
>>> Some one know if the problem of 99% CPU use with clipper be resolve ???
>>
>>
>>
>> Afaik, the best solution so far is to patch the clipper program with:
>> http://www.gnuservers.com.ar/~maxy/clipper/clip2f.exe
>>
>> Someone in this list recommended this a while ago and I haven't thank 
>> him enough.
>>
>> There is a few other solutions that load a tsr program that catch some 
>> "known to be broken" idle calls, that didn't turn out very well for me.
>>
>> -
>> To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>>
>>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 
> 

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

* Re: Clipper use 100% off CPU => me too!
       [not found]   ` <41E4560A.60307@pobox.com>
@ 2005-01-12 13:40     ` Maximiliano Curia
  0 siblings, 0 replies; 8+ messages in thread
From: Maximiliano Curia @ 2005-01-12 13:40 UTC (permalink / raw)
  To: Alain, jeff; +Cc: linux-msdos

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


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

end of thread, other threads:[~2005-01-12 13:40 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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     ` Clipper use 100% off CPU => me too! Maximiliano Curia
  -- strict thread matches above, loose matches on Subject: below --
2004-11-16 17:05 Clipper use 100% off CPU Stas Sergeev
2004-11-13 14:56 jeff dyn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox