Mail Archives: djgpp/1997/05/01/12:55:27
On 1 May 1997, George Foot wrote:
> Oh right. Thanks. But it seems a shame to let all that good memory go to
> waste.
You will need it badly when you need to run nested programs, like
recursive Make's, compilations from inside Emacs/RHIDE etc. Each nested
task needs some conventional RAM, mainly for the transfer buffer. My
configuration leaves about 620K free conventional memory, which lets me
run about 6 nested programs with QDPMI (more than 20 with CWSDPMI) before
I begin worrying.
Some programs use DOS memory for other things. For example, Emacs moves
data to and from the Windows clipboard (when it runs from Windows' DOS
box) via low memory, because that is the only way DOS programs can access
the clipboard. If you cut/paste large portions of text, you need that
much bytes of low memory, or it will fail.
> Why is the default transfer buffer only 16K?
See above. There is a trade-off between faster I/O and nested programs.
I/O will only get marginal improvement after 16KB, so bumping the TB up
doesn't buy you any benefits, but you waste much more DOS memory and risk
failures in spawning child programs early on.
- Raw text -