home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Professional / OS2PRO194.ISO / os2 / info / faq / os2_20 / os2help / hpfsfat.fax < prev    next >
Encoding:
Text File  |  1992-09-17  |  9.2 KB  |  175 lines

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