delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2003/10/21/15:15:48

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: "Silvano Mantione" <mantione AT tele2 DOT it>
Newsgroups: comp.os.msdos.djgpp
References: <AGMkb.445$947 DOT 280 AT nntpserver DOT swip DOT net> <3f944c94 DOT sandmann AT clio DOT rice DOT edu>
Subject: HELP with DPMI under DOS - Conclusion
Lines: 64
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
Message-ID: <Wnflb.52$uv1.49@nntpserver.swip.net>
NNTP-Posting-Host: 81.211.207.59
X-Complaints-To: news-abuse AT swip DOT net
X-Trace: nntpserver.swip.net 1066762870 81.211.207.59 (Tue, 21 Oct 2003 21:01:10 MET DST)
NNTP-Posting-Date: Tue, 21 Oct 2003 21:01:10 MET DST
Organization: A Customer of Tele2
X-Sender: mantione AT tele2 DOT it@d81-211-207-59.cust.tele2.it
Date: Tue, 21 Oct 2003 21:00:54 +0200
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

I success to allocate 1022Mb with cwsdpmi5 with swap file, and with pmode13.
Under pmode the  _go32_dpmi_remaining_physical_memory() report 4Gb avaiable,
(I have 1Gb installed).
I notice that sbrk uses integer so I suppose that it as the same limit of
2Gb of malloc.
If I buy more RAM bringing my system memory to 3Gb I can use sbrk?
(Maybe I will try and maybe I will Charles let know).

Filosophic question.
I'm really interested in performance to get the best from my PC.
It is the pmod with djgpp with Dos the best I can get?
What about a real 32bit enviroment like Dos32 (if it is) ( I see there is a
"dos32 extention for djgpp"),
or a simple linux boot disk with single user and no multitasking.

Thank You
Silvan






"Charles Sandmann" <sandmann AT clio DOT rice DOT edu> wrote in message
news:3f944c94 DOT sandmann AT clio DOT rice DOT edu...
> > I'm tryuing to allocate an array of 1023Mb on a PC with 1Gb RAM
installed
> > but I can't success.
>
> How are you trying to allocate the memory?  I would suggest you use
> sbrk() to allocate such large chunks.  I also suggest you remove EMM
> providers from your configuration, and tell us what GO32-V2 prints.
>
> In my testing, I routinely allocate 2GB of memory for testing CWSDPMI,
> so I know it works.  It will fail if you disable paging and try to
allocate
> more than about 500MB.  The long term fix for this is to use 4MB pages,
> which is available in CWSDPMI r6 wip/test release.
>
> > I try do modify the parameters of cwsdpmi with
> > cwsparam, I also try pmode/dj, but nothing to do.
>
> I've also allocated 2GB of memory with the most recent pmode/dj - so this
> points to maybe something in your configuration or how you are trying to
> allocate the memory.
>
> > I'm writing an application
> > memory critical and I'm planning to buy 2Gb more memory (3Gb total) do
> > someone have some idea to how can I allocate this memory in a single
array
> > under DOS?
>
> If you are planning to use more than 2GB, you *MUST* use sbrk() for
> allocation.  (There are limitations in malloc() which will prevent you
> from using more than 2GB in a single allocation).
>
> Using 3GB (or 4GB) of memory under DOS in a single array has generated
> lots of email to me - but so far no one has built a machine and tested
> more than 2GB of physical usage - and sent me results.
>
> You will want to use the r6 test release if you plan to use more than
> 500MB.


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019