Path: utzoo!attcan!uunet!husc6!rice!uw-beaver!cornell!rochester!pt.cs.cmu.edu!b.gp.cs.cmu.edu!ralf From: ralf@b.gp.cs.cmu.edu (Ralf Brown) Newsgroups: comp.sys.ibm.pc Subject: Re: Dos disk buffering schemes Message-ID: <4110@pt.cs.cmu.edu> Date: 25 Jan 89 16:52:11 GMT References: <579@arisia.Xerox.COM> Organization: Carnegie-Mellon University, CS/RI Lines: 16 In article <579@arisia.Xerox.COM> leisner@arisia.Xerox.COM (Marty Leisner) writes: }I'm using Aztec C 4.1b. It seems the stdio routines reread the disk sector }after every fseek. Fine. } }But it seems DOS goes to disk with every read. What does BUFFERS= do in }config.sys? It doesn't seem to do much (DOS hits the disk every time it seems). The buffers are used only for partial-sector reads and writes. If you read or write a complete sector, DOS transfers the data directly between the user buffer and the disk. Every MS-DOS "C" I've seen uses a buffer size of 512 bytes--exactly one disk sector. -- {harvard,uunet,ucbvax}!b.gp.cs.cmu.edu!ralf -=-=- AT&T: (412)268-3053 (school) ARPA: RALF@B.GP.CS.CMU.EDU |"Tolerance means excusing the mistakes others make. FIDO: Ralf Brown at 129/31 | Tact means not noticing them." --Arthur Schnitzler BITnet: RALF%B.GP.CS.CMU.EDU@CMUCCVMA -=-=- DISCLAIMER? I claimed something? --