Path: utzoo!attcan!ncrcan!ziebmef!stephen From: stephen@ziebmef.uucp (Stephen M. Dunn) Newsgroups: comp.sys.ibm.pc Subject: Re: Disk caching--BUFFERS or FASTOPEN needed? Summary: Buffers, FASTOPEN and caches are all somewhat different Keywords: buffers caches fastopen Message-ID: <1989Jul10.190614.26337@ziebmef.uucp> Date: 10 Jul 89 23:06:13 GMT References: Reply-To: stephen@ziebmef.UUCP (Stephen M. Dunn) Distribution: comp.sys.ibm.pc Organization: Ziebmef Public Access Unix, Toronto, Ontario Lines: 33 In article kkerce@x102c.harris-atd.com (Kingsley F. Kerce) writes: $As I understand it, MS-DOS's BUFFERS entry in `config.sys' reserves $memory for information read from disks, and the FASTOPEN command $"tracks" the location of files on disks, holding hard pointers (to the $location of the files) in memory. Yes, that's pretty much correct. DOS's buffers hold information which has been read in from the disk (we'll just consider a read-only example for simplicity's sake). This could include directory and/or FAT information, and the actual data from a file. FASTOPEN stores part or all of the directory and subdir- ectory structure of one or more disks in memory so that files can be opened without actually reading from the disk. $It seems that the functionality of BUFFERS and FASTOPEN is duplicated $if one uses a disk caching scheme. Partially. Sometimes, the buffers will hold the required directory information. The FASTOPEN command always holds the directory information, but never contains the files themselves. A disk cache is like a large number of buffers, essentially. It holds the most recently used disk blocks, which may or may not include directories, FAT entries, subdirectories, and files. Often, the disk cache will perform read-ahead. This means that if you access one particular sector, it will guess that there is a good chance that you will soon read the next few sectors and it will read them into memory all at once. One advantage of most disk-cache programs is that they will generally use extended or expanded memory if you want them to, whereas DOS's buffers won't (with the exception of DOS 4, which will use EMS). -- ------------------------------------------------------------------------------- ! Stephen M. Dunn stephen@ziebmef.UUCP ! DISCLAIMER: Who'd ever ! ! My puppy died late last fall ! claim such dumb ideas? ! ! He's still rotting in the hall (O.E.) ! I sure as heck wouldn't !