From mboxrd@z Thu Jan 1 00:00:00 1970 From: Maurilio Longo Subject: Re: Dosemu and clipper applications eating all CPU Date: Thu, 11 Mar 2004 09:29:08 +0100 Sender: linux-msdos-owner@vger.kernel.org Message-ID: <40502353.9AF8BC11@libero.it> References: <404F6E4F.6060207@aknet.ru> <404F9CEF.9030300@libero.it> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: List-Id: Content-Type: text/plain; charset="us-ascii" To: linux-msdos@vger.kernel.org Hi, clipper runtimes calls int 0x21 sub-function 0x2C, I intercept this one and issue a usleep(). I had to change INT2F_IDLE_SEC to INT28_IDLE_SEC and call usleep() only every 50 times this function gets called or else I had a sluggish dos application. (I set hog_threshold to 0) regards. Maurilio Longo ha scritto: > Stas, > > clipper calls time-of-day interrupt when idle, don't have right number > of interrupt call here at home, but I did write some years ago a little > TSR to release cpu under OS/2 and I'm using a home-made dosemu 1.0.x at > work with a changed handling of this interrupt call inside dosemu code, > tomorrow I'll tell you the right call. > > regards. > > Stas Sergeev wrote: > > > > > Hello. > > > > Maximiliano Curia wrote: > > > >>> Problem of clipper I presume? If it > >>> just runs in a busy loop while idle, > >>> dosemu can't really help. > >> > >> Yes, that dosemu doesn't detect the clipper idle calls. > > > > But *what kind* of idle calls? > > This is the vital info. If you > > can't find the answer, then the > > problem can't be fixed:) > > int 0x28 is the real idle call, > > but since dosemu catches that, > > I suspect clipper does something > > else. > > > >> It still eats the cpu, with nice -n 19, but now the 60% is marked as > >> nice. > > > > Yes, and the system must not be > > crawled now at least. At least in > > a theory:) > > > >> I'm trying to understand the freedos idle. > > > > That might be not the case either. > > FreeDOS can just call int16 to do > > a blocking wait for a keypress, and > > that will do the trick. > > You have to find out what exactly > > the clipper does however. > > - > > 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 > > > > -- > __________ > | | | |__| Maurilio Longo > |_|_|_|____| > > - > 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 -- __________ | | | |__| md2520@mclink.it |_|_|_|____| Team OS/2 Italia