[comp.binaries.ibm.pc.d] 645k conventional memory

hartnegg@sun1.ruf.uni-freiburg.de (Klaus Hartnegg) (04/23/91)

Some days ago I wrote:

>I have 645k free conventional memory with Dos 3.3 and Qemm 5.11 with
>several devices and TSR's installed. No, it's not a typo, I really have 
>645k free, it is definitively conventional memory and I am really running 
>Dos 3.3.

I was not so excited when I noticed the more Ram because I do 
not run so huge programs but some of you seem to do so.
There seems to be an enormous interest on how exactly I
did this so I will post it here once instead of replying to 10 mails.

First of all: I have a 386 and installed QEMM 386 and DESQview.
Together with QEMM comes the program "optimize". I simply ran
this program. It made some changes to my config.sys, booted twice and,
voila, I had 704k conventional memory. Some of this is used
by some TSR's and devices that can not be loaded into high memory
(I already knew this and changed the config.sys after running
optimize to prevent them from being loaded high as optimize wanted
to load them). The rest (645k) is free.

Sorry, I do not know precisely what is going on here but 
it has something to do with the fact that I have a 386
(only this processor can remap memory to all places that it
likes to) and also it is has something to do with my hercules 
graphics card.

It looks as if the ram of my hercules card was added to the 
conventional memory and replaced by some EMS memory.
The hercules card of course still works well!

It looks as if QEMM can't map EMS memory into low memory unless
there is already some memory there (in my case the screen memory
of the hercules card) that it can replace.


An additional note: If I run DESQview this uses about 150k
conventional memory. However I read in the manual that it 
can also load high if there is enough low memory that could
be replaced by QEMM. The manual says it is not uncommon that
DV needs no conventional memory at all and Manifest should
report 0k usage of conventional memory.

I guess this can happen if one has a graphics card with more
memory than hercules has or some other card with memory on it.


I hope this helps you a bit and prevents my mailbox from
getting full.

Klaus.
-- 
--------------------------------------------------------------------------
Klaus Hartnegg, Kleist-Str. 7, D-7835 Teningen, Germany | include standard
Bitnet : hartnegg@dfrruf1 or hartnegg@cernvm            | disclaimer here!
Internet : hartnegg@ibm.ruf.uni-freiburg.de             |  

Conrad.Bullock@comp.vuw.ac.nz (Conrad Bullock) (04/24/91)

In article <1991Apr23.083505.1964@sun1.ruf.uni-freiburg.de>,
hartnegg@sun1.ruf.uni-freiburg.de (Klaus Hartnegg) writes:
|> Some days ago I wrote:
|> 
|> >I have 645k free conventional memory with Dos 3.3 and Qemm 5.11
|> with
|> >several devices and TSR's installed. No, it's not a typo, I really
|> have 
|> >645k free, it is definitively conventional memory and I am really
|> running 
|> >Dos 3.3.
|> 
|> First of all: I have a 386 and installed QEMM 386 and DESQview.
|> Together with QEMM comes the program "optimize". I simply ran
|> this program. It made some changes to my config.sys, booted twice
|> and,
|> voila, I had 704k conventional memory. Some of this is used
|> by some TSR's and devices that can not be loaded into high memory
|> (I already knew this and changed the config.sys after running
|> optimize to prevent them from being loaded high as optimize wanted
|> to load them). The rest (645k) is free.
|> 
|> Sorry, I do not know precisely what is going on here but 
|> it has something to do with the fact that I have a 386
|> (only this processor can remap memory to all places that it
|> likes to) and also it is has something to do with my hercules 
|> graphics card.

The Hercules graphics card takes 64K of the address space from segment
B000. DOS normally uses the first 640K of memory, ending at segment A000.
Since the 64K area from A000-B000 is unused, QEMM can map 64K of extended
memory into there, and tell DOS that it can use right up to the 704K
mark.

|> ... Stuff about using video RAM deleted ...

It doesn't actually use the video RAM itself - QEMM can use the areas of
memory which the video card doesn't take. On a VGA system, the area of
memory A000-B000 is used for the graphics modes, so if you want graphics,
you can't use that area for conventional memory. However, there is a 32K
gap from B000-B800, and QEMM can use this for High RAM on VGA systems.

Another alternative on VGA systems is to disable the use of graphics, and
then QEMM can use the area of memory right up to B800, giving you 736K of
'conventional' memory.

Followups to comp.sys.ibm.pc.misc.
-- 
Conrad Bullock                     | Domain:   conrad@comp.vuw.ac.nz
Victoria University of Wellington, |     or:   conrad@cavebbs.gen.nz
New Zealand.                       | Fidonet:  3:771/130
                                   | BBS:      The Cave BBS +64 4 643429