home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 36 Tips / 36-Tips.zip / DIHPFT.FAX < prev    next >
Text File  |  1994-12-08  |  10KB  |  196 lines

  1. Differences in HPFS and FAT File Systems 7/20/94
  2.  
  3.        File:OSDIHPFT.fax
  4.  
  5.        TITLE: HPFS AND FAT FILE SYSTEMS
  6.  
  7.        DESCRIPTION:
  8.  
  9.        What are the differences between HPFS and FAT File Systems?
  10.        How do they interface with each other under OS/2?
  11.  
  12.        SUMMARY:
  13.  
  14.        The following is an excerpt from A Technical Guide to OS/2 2.0,
  15.        written by Martin McElroy, IBM United Kingdom.
  16.  
  17.        DETAILS:
  18.  
  19.        OS/2 offers superior file system support, which leads to
  20.        increased performance.  The OS/2 architecture also allows other
  21.        file systems to be installed in a modular fashion (Installable
  22.        File System or IFS).  It is therefore more flexible in design
  23.        to accommodate future enhancements; for example, OS/2 now
  24.        includes CD-ROM support via an IFS.
  25.  
  26.        OS/2 also provides support for very large disks, a
  27.        consideration that is particularly relevant to server
  28.        environments.  OS/2 supports hard drives up to 2 GB in size.
  29.        In Windows 3.1 the limit is only 1 GB.
  30.  
  31.        In addition, OS/2 2.0 provides file I/O services not only to
  32.        OS/2 applications but to DOS and Windows applications running
  33.        in VDMs.  Therefore, DOS and Windows applications can take
  34.        advantage of advanced functions, without having to be modified,
  35.        since the DOS emulation of MVDM provides a compatible interface
  36.        to the file system for DOS applications.
  37.  
  38.        Both major OS/2 file systems have been improved under OS/2 2.0,
  39.        allowing better performance not only for applications
  40.        themselves, but also in paging performed by system when using
  41.        virtual memory.
  42.  
  43.                     HIGH PERFORMANCE FILE SYSTEM (HPFS)
  44.       -------------------------------------------------------------
  45.  
  46.       The following is an excerpt from A Technical Guide to OS/2 2.0
  47.       written by Martin McElroy, IBM United Kingdom.
  48.  
  49.       HPFS was first introduced to OS/2 version 1.2, and is an example
  50.       of the kind of advanced function that has not yet been
  51.       implemented in less sophisticated systems like DOS.  It was
  52.       introduced as an alternative to the File Allocation Table (FAT)
  53.       system which came from DOS.  HPFS is particularly good for
  54.       managing large disks and partitions or large files.  It provides
  55.       fast and consistent performance, outperforming DOS-based FAT
  56.       systems in nearly all cases (OS/2 2.0 implements an enhanced FAT
  57.       system that uses some similar caching features as HPFS, which
  58.       can also give high performance in many circumstances-see below.
  59.  
  60.       HPFS is particularly good in disk utilization compared to FAT.
  61.       It uses a highly contiguous file allocation system, which
  62.       results in especially good performance (relative to FAT) in
  63.       accessing files or data in a cluttered or full partition.  It
  64.       implements a B-Tree directory structure and search algorithm, as
  65.       opposed to sequential under FAT.  HPFS also allows for multi-
  66.       threaded I/O, caching of directory pointers in memory for
  67.       quicker access of last directories used, and read-ahead and lazy
  68.       write (lazy write buffers up write requests from applications
  69.       and commits them to disk after a given time or during disk
  70.       inactivity.)  These advanced features allow for substantial
  71.       performance increases and greater tuning.  In addition, HPFS can
  72.       provide write error recovery on the fly with 'hotfix'facilities.
  73.  
  74.       Since it is FAT-compatible at the API level, applications
  75.       running under OS/2 can use either system, and do not have to be
  76.       written specifically for one or the other.  It also presents a
  77.       consistent interface to other components of OS/2 like MVDM, to
  78.       allow DOS and Windows to use HPFS volumes as if they were FAT.
  79.  
  80.       HPFS also supports the use of long file names, for greater
  81.       usability, so instead of having LJS1290.TXT you can have a file
  82.       name 'Letter to John Smith September 90'. Obviously applications
  83.       need to be coded with this in mind. DOS and Windows applications
  84.       can use the 8.3 naming system on HPFS without any difficulty.
  85.  
  86.       HPFS has been enhanced in version 2.0 to add performance-related
  87.       features such as command chaining (providing a list of
  88.       contiguous sector requests required to fulfill an I/O request)
  89.       and scatter/gather facilities such as are supported in Small
  90.       Computer Systems Interface (SCSI) adapters to gather physically
  91.       discontiguous pages in a data buffer, and perform I/O in a
  92.       single operation.
  93.  
  94.                     HIGH PERFORMANCE FILE SYSTEM CHANGES
  95.       ----------------------------------------------------------------
  96.  
  97.       The following is an excerpt from Chapter 6 of the IBM OS/2
  98.       Version 2.0 Technical Redbooks, Volume 1:  Control Program
  99.       (Document Number GG24-3730-00), published by the IBM CORP.
  100.  
  101.       The following changes have been made to the High Performance
  102.       File System (HPFS) driver under OS/2 Version 2.0: At
  103.       initialization time, the level of support provided by the device
  104.       driver is determined using the new device command 1DH-
  105.       GetDeviceSupport.
  106.  
  107.       The HPFS driver passes physical addresses for data pointers, in
  108.       the appropriate request format, to the device driver. The HPFS
  109.       driver now supports command chaining, calling the volume manager
  110.       with a list of all contiguous sector requests required to
  111.       fulfill an I/O request. This function is supported for all DASD
  112.       types.
  113.  
  114.  
  115.        The HPFS driver supports scatter/gather by passing physical
  116.        pointers to each page in the data buffer (physically
  117.        discontiguous) as part of the I/O request. This allows I/O
  118.        controllers such as the IBM SCSI adapters which support the
  119.        scatter/gather capability to perform the I/O in a single
  120.        operation.
  121.  
  122.      * The HPFS driver now supports disk caching in the IFS driver,
  123.        rather than in the device driver.
  124.      * The HPFS driver is able  to  recognize  devices  which  have
  125.        outboard caches (non-system memory), and incorporate them into
  126.        the total caching scheme.
  127.      * The HPFS file system under OS/2 Version 2.0 supports a maximum
  128.        file size of 2GB. The maximum size for an HPFS volume is 512GB.
  129.  
  130.                         ENHANCED FAT (aka SUPER FAT)
  131.        ---------------------------------------------------------------
  132.  
  133.        The following is an excerpt from A Technical Guide to OS/2 2.0,
  134.        written by Martin McElroy, IBM United Kingdom.
  135.  
  136.        OS/2 2.0 includes an enhanced version of the FAT file system
  137.        which is completely compatible with the FAT system under DOS.
  138.        This gives greater performance but full compatibility with
  139.        existing FAT systems. It adds features like lazy write and
  140.        improved caching to FAT. This means that DOS applications
  141.        running with FAT file system under OS/2 2.0 will be
  142.        substantially faster for disk-based operations than under DOS.
  143.        All of these benefits can be obtained without having to
  144.        reformat your hard disk - the OS/2 enhanced FAT driver works
  145.        with existing DOS FAT volumes.
  146.  
  147.                             FAT FILE SYSTEM CHANGES
  148.        ---------------------------------------------------------------
  149.  
  150.        The following is an excerpt from Chapter 6 of the IBM OS/2
  151.        Version 2.0 Technical Redbooks, Volume 1:  Control Program
  152.        (Document Number GG24-3730-00), published by the IBM
  153.        Corporation.
  154.  
  155.        Changes have also been made to the FAT file system driver under
  156.        OS/2 Version 2.0, in order to provide improved performance and
  157.        enhanced support for disk hardware devices.
  158.  
  159.      * The FAT driver now supports command chaining.
  160.      * The driver attempts to call the volume manager with a list of
  161.        all contiguous sector requests required to fulfill an I/O
  162.        request, thus allowing multiple page-in and page-out requests
  163.        in a single logical operation.
  164.      * The FAT driver provides faster allocation of free space on the
  165.        logical drive, using a bitmap to track free clusters on the
  166.        disk.
  167.  
  168.        Disk caching is now supported within the FAT driver, and has
  169.        been removed from the device driver. A cache buffer is provided
  170.        to support disk caching with the following features:
  171.  
  172.      * Lazy writing.
  173.      * Lazy reading on writes, that is, the ability to write to the
  174.        cache and flush the cache to disk, but then to read the updated
  175.        information from the cache rather than requiring a physical
  176.        disk read operation.
  177.      * Asynchronous read-ahead through a multi-purpose asynchronous
  178.        read thread.
  179.      * Large cache size (theoretical maximum of 64MB, although
  180.        practical limitations will necessitate a smaller cache).
  181.      * The ability to dynamically enable and disable the cache in
  182.        response to a user command.
  183.      * Bad sectors are automatically bypassed on reads.
  184.  
  185.        There are a number of advantages in performing caching in the
  186.        FAT driver rather than the device driver; more operating system
  187.        kernel services are available at this level, and intelligent
  188.        read-ahead operations can more easily be performed. Lazy
  189.        writing is also more easily implemented at the file system
  190.        level than at the device driver level.
  191.  
  192.        The FAT file system under OS/2 Version 2.0 supports a maximum
  193.        file size of 2GB. The maximum supported size for a FAT volume
  194.        is also 2GB.
  195. 12/31/99
  196.