X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f NNTP-Posting-Date: Mon, 07 May 2012 21:29:28 -0500 From: "Charles Sandmann" Newsgroups: comp.os.msdos.djgpp References: <92c86f75-e970-4998-94c6-56d6fbf885fe AT e15g2000vba DOT googlegroups DOT com> <1c38ca22-52f5-470e-813f-1af6ed5f21d4 AT m16g2000yqc DOT googlegroups DOT com> Subject: Re: System() Date: Mon, 7 May 2012 21:29:22 -0500 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-RFC2646: Format=Flowed; Original Message-ID: Lines: 28 X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 64.91.136.221 X-Trace: sv3-7tvDsmtPSFPyDbxgpUcuUAgOWL8qvi7t5BUKRShMVLd2Nxzyp0iTMHybPqIelQdnVkl8McgS+YBGXfH!K+Su+XjrBAMbVMRPvqAAAA6vSuhScNpKzfgG7s0e5/3FaLfVUEX3snmVmgsl/w2SSOJ/whAKehDQ!+8mmlLv4kqnRx9A7YqCA00JhRySyd/3I X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 Bytes: 2703 X-Original-Bytes: 2642 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com "Georg" wrote in message news:fea067ab-ee56-4b9e-bb73-ed3365fb9d59 AT ee2g2000vbb DOT googlegroups DOT com... > 2. Real mode DOS 7.0: > So a rough calculation: 572k minus 43k for CWSDPMI and minus 162k for > testsys.exe's data gives 367k remaining. That is what DOS tells to be > available for a program. > Maybe one can load high CWSDPMI. But why are there 162k for > testsys.exe's data while it is just 1936 bytes in Windows XP? Under Windows XP, much of the memory for DPMI is implemented in the virtual machine itself, not in the DOS session. With CWSDPMI, all of the code and data structures are in DOS memory. Excessive usage is a byproduct of new "huge" computers. CWSDPMI will try to provide lots of physical and virtual memory if it is needed. But just the bitmap for 2GB of 4KB pages would be 64KB of memory; there are similar structures for swap space, etc. In the DOS days, typically a 16MB system was large, so the data structures were much smaller. Any DOS user also typically used EMM configs to provide UMBs (so DOS=HIGH,UMB). In these cases all the typical data structures would fit in UMBs. There are some tuning settings to reduce CWSDPMI memory usage, but since recent GCCs are such memory hogs, you may tune for one type of app over another. If most of your apps are 32-bit GCC apps, the 367KB remaining is much more than you need.