rhl57.htm

来自「linux的初学电子书」· HTM 代码 · 共 2,354 行 · 第 1/4 页

HTM
2,354 行
字号

</FONT>

<TD VALIGN=top  BGCOLOR=#80FFFF ><FONT COLOR=#000080>

Boot from floppy drive A</FONT>

<TR>

<TD VALIGN=top  BGCOLOR=#80FFFF ><FONT COLOR=#000080>

-C

</FONT>

<TD VALIGN=top  BGCOLOR=#80FFFF ><FONT COLOR=#000080>

Boot from hard drive C</FONT>

<TR>

<TD VALIGN=top  BGCOLOR=#80FFFF ><FONT COLOR=#000080>

-D

</FONT>

<TD VALIGN=top  BGCOLOR=#80FFFF ><FONT COLOR=#000080>

Set debug options</FONT>

<TR>

<TD VALIGN=top  BGCOLOR=#80FFFF ><FONT COLOR=#000080>

-F

</FONT>

<TD VALIGN=top  BGCOLOR=#80FFFF ><FONT COLOR=#000080>

Number of floppy disks to use from dosemu.conf (1-4)</FONT>

<TR>

<TD VALIGN=top  BGCOLOR=#80FFFF ><FONT COLOR=#000080>

-H

</FONT>

<TD VALIGN=top  BGCOLOR=#80FFFF ><FONT COLOR=#000080>

Number of hard disks to use from dosemu.conf (1 or 2)</FONT>

<TR>

<TD VALIGN=top  BGCOLOR=#80FFFF ><FONT COLOR=#000080>

-P

</FONT>

<TD VALIGN=top  BGCOLOR=#80FFFF ><FONT COLOR=#000080>

Copy debug information to file, same as using 2&gt;</FONT>

<TR>

<TD VALIGN=top  BGCOLOR=#80FFFF ><FONT COLOR=#000080>

-V

</FONT>

<TD VALIGN=top  BGCOLOR=#80FFFF ><FONT COLOR=#000080>

Turn on VGA emulation</FONT>

<TR>

<TD VALIGN=top  BGCOLOR=#80FFFF ><FONT COLOR=#000080>

-c

</FONT>

<TD VALIGN=top  BGCOLOR=#80FFFF ><FONT COLOR=#000080>

Optimize video performance under virtual consoles</FONT>

<TR>

<TD VALIGN=top  BGCOLOR=#80FFFF ><FONT COLOR=#000080>

-e

</FONT>

<TD VALIGN=top  BGCOLOR=#80FFFF ><FONT COLOR=#000080>

Specify the amount of EMS memory to make available</FONT>

<TR>

<TD VALIGN=top  BGCOLOR=#80FFFF ><FONT COLOR=#000080>

-f

</FONT>

<TD VALIGN=top  BGCOLOR=#80FFFF ><FONT COLOR=#000080>

Flip definition of A: and B: floppy drives</FONT>

<TR>

<TD VALIGN=top  BGCOLOR=#80FFFF ><FONT COLOR=#000080>

-k

</FONT>

<TD VALIGN=top  BGCOLOR=#80FFFF ><FONT COLOR=#000080>

Use raw keyboard console (rawkeyboard in dosemu.conf)</FONT>

<TR>

<TD VALIGN=top  BGCOLOR=#80FFFF ><FONT COLOR=#000080>

-t

</FONT>

<TD VALIGN=top  BGCOLOR=#80FFFF ><FONT COLOR=#000080>

Deliver time interrupt 9</FONT>

<TR>

<TD VALIGN=top  BGCOLOR=#80FFFF ><FONT COLOR=#000080>

-x

</FONT>

<TD VALIGN=top  BGCOLOR=#80FFFF ><FONT COLOR=#000080>

Specify the amount of XMS memory to make available</FONT>

<TR>

<TD VALIGN=top  BGCOLOR=#80FFFF ><FONT COLOR=#000080>

-?

</FONT>

<TD VALIGN=top  BGCOLOR=#80FFFF ><FONT COLOR=#000080>

Print command summary only</FONT>

<TR>

<TD VALIGN=top  BGCOLOR=#80FFFF ><FONT COLOR=#000080>

-2

</FONT>

<TD VALIGN=top  BGCOLOR=#80FFFF ><FONT COLOR=#000080>

Emulate a 286</FONT>

<TR>

<TD VALIGN=top  BGCOLOR=#80FFFF ><FONT COLOR=#000080>

-3

</FONT>

<TD VALIGN=top  BGCOLOR=#80FFFF ><FONT COLOR=#000080>

Emulate a 386</FONT>

<TR>

<TD VALIGN=top  BGCOLOR=#80FFFF ><FONT COLOR=#000080>

-4

</FONT>

<TD VALIGN=top  BGCOLOR=#80FFFF ><FONT COLOR=#000080>

Emulate a 486</FONT>

</TABLE><BR>

<A NAME="E68E441"></A>

<H3 ALIGN=CENTER>

<CENTER>

<FONT SIZE=5 COLOR="#FF0000"><B>Limitations of DOSemu</B></FONT></CENTER></H3>

<BR>

<P>DOSemu is not perfect yet. Development is underway, with many known opportunities for speed optimizations and improvements.

<BR>

<BR>

<A NAME="E69E569"></A>

<H4 ALIGN=CENTER>

<CENTER>

<FONT SIZE=4 COLOR="#FF0000"><B>Notable Software That Won't Run Under DOSemu</B></FONT></CENTER></H4>

<BR>

<P>Perhaps the most significant application that does not run under DOSemu is Windows 3.1. As with Linux in general, volunteers are working to correct this. Other software that requires DOS Protected Mode Interface (DPMI) is also likely to cause problems. 
To find an up-to-date list of software that has been successfully used under DOSemu, look for the file /doc/EMUsucess.txt in the DOSemu distribution.

<BR>

<BR>

<A NAME="E69E570"></A>

<H4 ALIGN=CENTER>

<CENTER>

<FONT SIZE=4 COLOR="#FF0000"><B>Hardware Limitations for DOSemu</B></FONT></CENTER></H4>

<BR>

<P>Not all video cards are currently supported under DOSemu. More popular cards are supported simply because developers are more likely to have them. Some non-typical hardware is reported to work under DOSemu with some patches.

<BR>

<P>Sound cards are problematic under DOSemu. They have the potential to perform DMA (direct memory access) to memory the Linux kernel had allocated elsewhere. A generic sound-card interface that interacted with the kernel's built-in sound card support 
would solve this problem.

<BR>

<BR>

<A NAME="E69E571"></A>

<H4 ALIGN=CENTER>

<CENTER>

<FONT SIZE=4 COLOR="#FF0000"><B>Performance Limitations</B></FONT></CENTER></H4>

<BR>

<P>DOSemu runs slower than a native MS-DOS session. I have successfully run a few older benchmark programs under DOSemu to

<BR>

<P><A NAME="I2"></A> compare the performance degradation to native MS-DOS. Benchmark results are not a perfect measure, but they do demonstrate potential performance in some distinct areas. I measured three different areas: CPU performance, disk 
performance, and video performance, each of which produced strangely different results.

<BR>

<BR>

<A NAME="E70E34"></A>

<H5 ALIGN=CENTER>

<CENTER>

<FONT SIZE=4 COLOR="#FF0000"><B>CPU Performance</B></FONT></CENTER></H5>

<BR>

<P>DOSemu's raw CPU speed depends on what else is happening under Linux. With an otherwise idle Linux box, DOSemu's compute speed is close to that of a native MS-DOS session. The Landmark Version 2.0 and PC-Bench Version 5.6 show similar performance, with 
perhaps a 10 to 20 percent performance penalty under DOSemu for the instruction mix, CPU, and FPU measurements.

<BR>

<BR>

<A NAME="E70E35"></A>

<H5 ALIGN=CENTER>

<CENTER>

<FONT SIZE=4 COLOR="#FF0000"><B>Disk Performance</B></FONT></CENTER></H5>

<BR>

<P>Determining the disk speed degradation under DOSemu proved to be difficult. In some cases there was a performance decrease, and in others a performance increase. This discrepancy seems directly related to the quality of support of the controller and 
disk drive from the underlying Linux kernel, as well as the built-in caching provided by Linux.

<BR>

<P>Linux runs as a pure 32-bit operating system, and handles I/O operations to disk controllers in bait mode. This, combined with much better SCSI support, can lead to equal or better disk benchmark numbers under DOSemu than under native DOS. Not all disks 
are as fast under DOSemu, with performance degradation ranging from small to huge. As with CPU speed, disk speed depends on what other Linux tasks are doing.

<BR>

<BR>

<A NAME="E70E36"></A>

<H5 ALIGN=CENTER>

<CENTER>

<FONT SIZE=4 COLOR="#FF0000"><B>Video Performance</B></FONT></CENTER></H5>

<BR>

<P>Video support is Linux's Achilles' heel. Text performance is much slower when not running DOSemu under a virtual console. Under a virtual console, benchmarked text speed approaches that of native MS-DOS. When you are using real-world applications, the 
text speed is dramatically slower, with an observed speed as low as 20 percent of the speed under native MS-DOS. Graphics speed is even worse.

<BR>

<BR>

<A NAME="E68E442"></A>

<H3 ALIGN=CENTER>

<CENTER>

<FONT SIZE=5 COLOR="#FF0000"><B>Mouse Support</B></FONT></CENTER></H3>

<BR>

<P>For mouse support, you can get Microsoft compatible mouse drivers from oak.oakland.edu:/Simtel/msdos/mouse/mouse701.zip (mscmouse). Make sure you have the correct port assigned to the mouse. Even so, some mice do not get recognized for up to 60 seconds, 
so be patient.

<BR>

<P>Another known problem is that DOSemu is not able to use COM4 after DOSemu finishes execution. This port is at 0x2E8, /dev/cua3 in Linux and uses interrupt 5. You can run the command:

<BR>

<BR>

<PRE>

<FONT COLOR="#000080">setserial /dev/cua3 irq 5</FONT></PRE>

<P>Another cure is to disable the allowvideoportaccess on line in the config file.

<BR>

<BR>

<A NAME="E68E443"></A>

<H3 ALIGN=CENTER>

<CENTER>

<FONT SIZE=5 COLOR="#FF0000"><B>Optimizing DOSemu</B></FONT></CENTER></H3>

<BR>

<P>There are a few changes that will help DOS performance under DOSemu short of buying a faster PC.

<BR>

<BR>

<A NAME="E69E572"></A>

<H4 ALIGN=CENTER>

<CENTER>

<FONT SIZE=4 COLOR="#FF0000"><B>Using Garrot</B></FONT></CENTER></H4>

<BR>

<P>Garrot is an MS-DOS based Terminate and Stay Resident (TSR) program written by Thomas G. McWilliams that releases CPU time from a DOSemu process back to Linux. Some MS-DOS applications poll endlessly on events such as keyboard input. Garrot keeps track 
of how long a DOS application has been running without giving control back to Linux. After a threshold of time has expired, control returns to Linux. The Garrot threshold is best determined by trial and error. A good initial value is half the bogo-mips 
value. Bogo-mips is the value that the Linux kernel assigns for internal delay loops, and is displayed when booting the Linux kernel.

<BR>

<P>For CPU-intensive DOS applications, Garrot will cause a minor degradation in CPU speed. For non-CPU&#151;intensive applications, Garrot will show a dramatic decrease in overall CPU usage, as measured by the Linux utility top.

<BR>

<BR>

<A NAME="E69E573"></A>

<H4 ALIGN=CENTER>

<CENTER>

<FONT SIZE=4 COLOR="#FF0000"><B>Other Optimization Suggestions</B></FONT></CENTER></H4>

<BR>

<P>The following parameters in dosemu.conf will help speed up various aspects of DOSemu:

<BR>

<UL>

<LI>Hogthreshold. Set this to half the value shown in boot up messages for BogoMIP message.

<BR>

<BR>

<LI>fastfloppy

<BR>

<BR>

<LI>X parameters &quot;updatefreq&quot; and &quot;updatelines&quot;

<BR>

<BR>

<LI>-c option on the DOS command line

<BR>

<BR>

</UL>

<P>Because DOSemu runs as a Linux process, any general Linux optimizations should also help performance under DOSemu. Typical optimizations include having enough swap space, optimizing the kernel, and killing unneeded Linux processes.

<BR>

<BR>

<A NAME="E68E444"></A>

<H3 ALIGN=CENTER>

<CENTER>

<FONT SIZE=5 COLOR="#FF0000"><B>Sources for More Documentation About DOSemu</B></FONT></CENTER></H3>

<BR>

<P>The DOSemu manual (dosemu.texinfo) written by Robert Sanders has not been updated in some time but is still a good source of information. It is distributed with DOSemu.

<BR>

<P>The &quot;dosEMU Novice's Altering Guide&quot; or DANG is a road map to the inner workings of DOSemu. It is designed for the adventurous, those people who wish to modify the source code themselves. DANG is maintained by Alistair MacDonald 
(am20@unix.york.ac.uk) and is posted periodically to the MSDOS channel of Linux Activists.

<BR>

<P>The EMU success list (EMUsuccess.txt) is a list of all programs that have been reported to work with DOSemu. It is posted periodically to the mailing list. The most recent version can be found on <A 
HREF="tppmsgs/msgs2.htm#214" tppabs="ftp://dspsun.eas.asu.edu/pub/dosemu">dspsun.eas.asu.edu/pub/dosemu</A>.

<BR>

<P>Of course, there is the DOSemu FAQ/HOWTO. But you already know about that, don't you? It is also posted frequently to the mailing list. The most recent version can be found on <A 
HREF="tppmsgs/msgs2.htm#214" tppabs="ftp://dspsun.eas.asu.edu/pub/dosemu">dspsun.eas.asu.edu/pub/dosemu</A>.

<BR>

<BR>

<A NAME="E69E574"></A>

<H4 ALIGN=CENTER>

<CENTER>

<FONT SIZE=4 COLOR="#FF0000"><B>Where To Get More Information About DOSemu</B></FONT></CENTER></H4>

<BR>

<P>Try subscribing to the linux-msdos-digest mailing list. To subscribe, send e-mail to <A HREF="mailto:Majordomo@vger.rutgers.edu">Majordomo@vger.rutgers.edu</A> with the following command in the body of your e-mail message:

<BR>

<BR>

<PRE>

<FONT COLOR="#000080">subscribe linux-msdos-digest your_username@your.email.address</FONT></PRE>

<P>To get rid of these messages, send e-mail to <A HREF="mailto:Majordomo@vger.rutgers.edu">Majordomo@vger.rutgers.edu</A> with the following command in the body of your e-mail message:

<BR>

<BR>

<PRE>

<FONT COLOR="#000080">unsubscribe linux-msdos-digest your_username@your.email.address</FONT></PRE>

<BLOCKQUOTE>

<BLOCKQUOTE>

<HR ALIGN=CENTER>

<BR>

<NOTE>The Netware-HOWTO by Lauri Tischler (<A HREF="mailto:ltischler@fipower.pp.fi">ltischler@fipower.pp.fi</A>) is now a separate document. It is included with the DOSemu distribution and may also be found at <A 
HREF="tppmsgs/msgs0.htm#72" tppabs="ftp://sunsite.unc.edu/">sunsite.unc.edu</A>.</NOTE>

<BR>

<HR ALIGN=CENTER>

</BLOCKQUOTE></BLOCKQUOTE>

<BR>

<A NAME="E68E445"></A>

<H3 ALIGN=CENTER>

<CENTER>

<FONT SIZE=5 COLOR="#FF0000"><B>How DOSemu Works</B></FONT></CENTER></H3>

<BR>

<P>DOSemu works similar to the DOS feature of MS Windows in that it uses the virtual 86 (vm86) feature of the i386 and above chips. Under vm86, a process runs under a private 80x86 environment that is isolated by the i386 processor from any other process.

<BR>

<P>In addition to private access to an 80&#180;86 processor, MS-DOS and MS-DOS applications need to interact with PC hardware through port accesses and interrupt functions. In vm86 mode, both port access and interrupts return vm86 back to the DOSemu.

<BR>

<P>For port access attempts, DOSemu tries to recognize the port, and either simulates its function or passes the request to the real hardware. Ports that DOSemu are allowed to map are configured by the Port parameter in dosemu.conf. Direct access to 
hardware ports is possible under Linux through /dev/kmem support.

<BR>

<P>DOS interrupt functions are widely understood and well-documented. Interrupts are caught from virtual 86 mode, and are implemented by executing the equivalent functionality as Linux system calls.

<BR>

<BR>

<A NAME="E68E446"></A>

<H3 ALIGN=CENTER>

<CENTER>

<FONT SIZE=5 COLOR="#FF0000"><B>A Brief History of DOSemu and Its Contributing Authors</B></FONT></CENTER></H3>

<BR>

<P>The first release of DOSemu was written by Matthias Lautner in September 1992. Since that time, many other people have contributed major pieces of functionality. There are too many authors to name, but some of the more significant contributors include 
Robert Sanders, James MacLean, Andres Tridgell, Stephen Tweedie, and Andreas Kies. Other parts of DOSemu functionality were borrowed from Carnegie Mellon's MACH DOS emulator.

<P ALIGN=LEFT>

<A HREF="rhl56.htm" tppabs="http://202.113.16.101/%7eeb%7e/Red%20Hat%20Linux%20Unleashed/rhl56.htm" TARGET="_self"><IMG SRC="purprev.gif" tppabs="http://202.113.16.101/%7eeb%7e/Red%20Hat%20Linux%20Unleashed/purprev.gif" WIDTH = 32 HEIGHT = 32 BORDER = 0 ALT="Previous Page"></A>

<A HREF="#I0" TARGET="_self"><IMG SRC="purtop.gif" tppabs="http://202.113.16.101/%7eeb%7e/Red%20Hat%20Linux%20Unleashed/purtop.gif" WIDTH = 32 HEIGHT = 32 BORDER = 0 ALT="Page Top"></A>

<A HREF="index-1.htm" tppabs="http://202.113.16.101/%7eeb%7e/Red%20Hat%20Linux%20Unleashed/index.htm" TARGET="_self"><IMG SRC="purtoc.gif" tppabs="http://202.113.16.101/%7eeb%7e/Red%20Hat%20Linux%20Unleashed/purtoc.gif" WIDTH = 32 HEIGHT = 32 BORDER = 0 ALT="TOC"></A>

<A HREF="rhl58.htm" tppabs="http://202.113.16.101/%7eeb%7e/Red%20Hat%20Linux%20Unleashed/rhl58.htm" TARGET="_self"><IMG SRC="purnext.gif" tppabs="http://202.113.16.101/%7eeb%7e/Red%20Hat%20Linux%20Unleashed/purnext.gif" WIDTH = 32 HEIGHT = 32 BORDER = 0 ALT="Next Page"></A>


</BODY></HTML>



⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?