From: "Rafael García" Newsgroups: comp.os.msdos.djgpp Subject: RE: negative sbrk(0) Date: Tue, 26 Sep 2000 19:57:07 +0200 Organization: Telefonica Transmision de Datos Lines: 24 Message-ID: <8qqo03$27r$1@diana.bcn.ttd.net> References: <8qns3d$6g4$1 AT diana DOT bcn DOT ttd DOT net> <7263-Tue26Sep2000085518+0300-eliz AT is DOT elta DOT co DOT il> <8qprpe$l72$1 AT diana DOT bcn DOT ttd DOT net> <969973140 DOT 340672 AT shelley DOT paradise DOT net DOT nz> NNTP-Posting-Host: 193.153.207.58 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2014.211 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Edmund Horner escribió en el mensaje de noticias 969973140 DOT 340672 AT shelley DOT paradise DOT net DOT nz... > I understand that even if you allocate a block bigger than you have free > memory, the DPMI service won't actually start the virtual memory up until > you actually _use_ it. O.K., but this does not make a solution. I have no chance to decide if using RAM o disk. > > Perhaps I must try malloc(1.5*filelength(f)) to decide if it is good idea > to > > load entire file in ram, but I thougth it would be better technique to > watch > > available before. I think it is possible a long delay for virtual > allocation > > if I ask for 20 Mb in a 2Mb ram machine, and in this environment I would > > prefer to let data on disk and read it myself as necessary, saving real > ram > > for other more important purposes.