home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!crdgw1!rdsunx.crd.ge.com!ariel!davidsen
- From: davidsen@ariel.crd.GE.COM (william E Davidsen)
- Newsgroups: comp.os.linux
- Subject: Re: VM86
- Message-ID: <1992Aug31.142857.4685@crd.ge.com>
- Date: 31 Aug 92 14:28:57 GMT
- References: <1992Aug29.065940.1256@athena.mit.edu> <1992Aug29.091200.16019@klaava.Helsinki.FI>
- Sender: usenet@crd.ge.com (Required for NNTP)
- Reply-To: davidsen@crd.ge.com (bill davidsen)
- Organization: GE Corporate R&D Center, Schenectady NY
- Lines: 28
- Nntp-Posting-Host: ariel.crd.ge.com
-
- In article <1992Aug29.091200.16019@klaava.Helsinki.FI>, torvalds@klaava.Helsinki.FI (Linus Benedict Torvalds) writes:
-
- | SIGALRM_handler()
- | {
- | check the screen memory in the vm86 box, and update the real
- | screen every now and then. Do any other regular house-keeping
- | fn's.
- | }
-
- This can get to be fun trying to balance the overhead of fast screen
- updates with reasonable CPU usage. One technique used (by Locus) is to
- do a CRC of the screen memory in blocks, and only copy what has changed.
- At some point I would like to try mapping the screen memory directly (I
- haven't looked at the vm86 stuff, can you even do that) or mapping
- memory readonly. Then, when an attempt is made to write the memory you
- remap r/w and start the timer tick for your update checking.
-
- Obviously a trap will generate overhead, but not having the timer tick
- and checking the screen memory will save it. And if a check shows the
- screen memory didn't change, the memory could be remapped r/o again.
-
- This looks like a nice place to try some algorithms and find a good
- compromise between performance and impact. Then we can get it running
- under X and have little DOS windows.
-
- --
- bill davidsen, GE Corp. R&D Center; Box 8; Schenectady NY 12345
- I admit that when I was in school I wrote COBOL. But I didn't compile.
-