X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f From: "Michael Wahl, PicoQuant" Newsgroups: comp.os.msdos.djgpp Subject: Re: Protected Mode disk access Date: Fri, 25 Jan 2002 19:56:02 +0100 Organization: PicoQuant Lines: 32 Message-ID: <3C51AA42.5A975E3A@pq.fta-berlin.NOSPAMPLEASE.de> References: <1011635483 DOT 28296 DOT 0 DOT nnrp-08 DOT c1ed6b28 AT news DOT demon DOT co DOT uk> <8011-Tue22Jan2002103628+0200-eliz AT is DOT elta DOT co DOT il> NNTP-Posting-Host: quantum.pq.fta-berlin.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: rhodos.FTA-Berlin.de 1011984916 14863 141.16.70.115 (25 Jan 2002 18:55:16 GMT) X-Complaints-To: usenet AT rhodos DOT fta-berlin DOT de NNTP-Posting-Date: 25 Jan 2002 18:55:16 GMT X-Mailer: Mozilla 4.77 [en] (Win98; U) X-Accept-Language: en To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Eli Zaretskii wrote: > > > From: "Tim Nicholson" > > Newsgroups: comp.os.msdos.djgpp > > Date: Mon, 21 Jan 2002 17:45:50 -0000 > > > > Am I correct in thinking the DJGPP switches from protected mode to real mode > > to access the HDD and transfers data in 64K blocks (variable) via the DPMI > > to and from DOS? > > True, except that the default buffer size is 16KB, not 64KB. > > > The reason for asking is that disk I/O seems much faster under Windows 98/ME > > etc. and I am guessing this is partly because the whole thing is happening > > in protected mode. > > If you are comparing DOS and Windows, and see a significantly faster > I/O on Windows, I suggest to install a large SmartDRV cache on the > DOS machine, set it up to delayed-write operation, and try again. > Chances are, you will see disk I/O that's as fast as on Windows. > (Details can be found in section 3.9 of the DJGPP FAQ list.) > > If you already have SmartDRV installed, please post the command line > used to install it in AUTOEXEC.BAT. > > > Does DOS (the one shipped with Win98) utilise the full capabilities of the > > drive (i.e.. UDMA100 etc)? > > Not DOS, BIOS. DOS doesn't talk to the disk directly. Ok, but can one get DMA under DOS/BIOS at all?