home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload / ShartewareOverload.cdr / utils / hdutils.zip / SST.DOC < prev    next >
Text File  |  1986-10-22  |  9KB  |  265 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.        SST - THE SEEK STOPPER
  8.        Copyright 1986
  9.        Alfred J. Heyman
  10.  
  11.        Version 2.01
  12.  
  13.        Feel  free to copy and share SST with others so long as it
  14.        is  distributed in its unmodified form and as long  as  no
  15.        disk  copy  or  duplication fee is  charged.   The  Author
  16.        reserves the sole right to distribute SST for profit.
  17.  
  18.        If  you  find SST to be useful,  And/Or would like  to  be
  19.        notified  about getting possible future SST  enhancements,
  20.        you can become a registered SST user by Sending $10 to the
  21.        Author at the Address below.
  22.  
  23.        Alfred J. Heyman
  24.        Room 101
  25.        P.O. Box 172101
  26.        Memphis, TN
  27.        38187
  28.  
  29.        SST  may  not be used in a commercial environment  without
  30.        the  above  mentioned   registration.     Source  code  is
  31.        available.
  32.        ----------------------------------------------------------
  33.        WHAT IS SST?
  34.  
  35.        SST is a program that is designed to reorganize a DOS disk
  36.        so that it will run "Faster".   Normal daily use of a disk
  37.        will  produce  a  disk  with  many  fragmented  files  and
  38.        subdirectories.   Simply put, these are files that are not
  39.        completely contiguous or together,  but are spread out all
  40.        over the disk.   These fragmented files and subdirectories
  41.        slow disk access down because DOS must tell the Disk  Head
  42.        to  Seek to other parts of the disk to pick up other parts
  43.        of the same file.  For example, your disk might have three
  44.        files on it that we will call A,B,and C.   Different parts
  45.        might be arranged as follows....
  46.  
  47.        AAAAAAABBBBBBBBAAAC CCAAABBBB     CCC
  48.  
  49.        SST  would reorganize the three files so that all of their
  50.        parts would be contiguous....
  51.  
  52.        AAAAAAAAAAAAABBBBBBBBBBBBCCCCCC
  53.  
  54.        This change would shorten the amount of time that it takes
  55.        DOS to read in the file.  If a subdirectory is fragmented,
  56.        fixing  it  will  speed  up disk  access  time  even  more
  57.        noticeably!
  58.        __________________________________________________________
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.        Syntax: SST [d:] [ TEST] [ CLEAR]
  75.  
  76.        TEST   - will  run  SST in  a  READ-ONLY  mode.   No
  77.                 alterations will be made to the disk.
  78.        CLEAR  - will  Clear  move  all  erased  entries  in   all
  79.                 directories to the ends of those directories.
  80.  
  81.        __________________________________________________________
  82.  
  83.        SO WHATS SO GREAT ABOUT SST?
  84.  
  85.        The main difference between SST and other Disk  Optimizing
  86.        programs is the way that SST achieves the end result.  SST
  87.        was designed to be FAST.   SST is also NOT  copy-protected
  88.        and never will be.
  89.  
  90.        SST  reads in all of the data that it will need during the
  91.        run   session  and  Keeps  this  information  in   memory.
  92.        Specifically,  SST uses DOS Interrupts 25h and 26h to look
  93.        at   the  boot  track  and  other  parts  of   the   disk.
  94.        Information  about  the disks' characteristics are  stored
  95.        there.   SST makes a quick comparison of the data it  gets
  96.        here  with  what DOS thinks about the disk.  If these  two
  97.        sets of data agree with each other,  SST will read in  the
  98.        disks  File  Allocation  Table,  Root  Directory  and  All
  99.        subdirectories.  ALL of this information is kept in memory
  100.        during the SST session.
  101.  
  102.        SST  then decides on the best way to reorganize the disk's
  103.        clusters.  When this is finished,  the user is prompted (Y
  104.        or N) to continue or not.
  105.  
  106.        A  "Y" response to the above question will start the  File
  107.        Cluster Swapping procedure.  Here, the actual file data is
  108.        physically  moved.   All data is buffered IN MEMORY.  When
  109.        SST  is  finished  SWAPPING,  it  then  updates  the  File
  110.        Allocation table on the disk, and all directories.
  111.  
  112.        Some  disk optimization programs use the slower and  safer
  113.        method  of  buffering file data to the disk.   While  this
  114.        practically eliminates the chances of data losses  because
  115.        of accidents such as power failures,  it makes the program
  116.        run incredibly slow on a nearly full disk.
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138.  
  139.  
  140.        SST DISADVANTAGES:
  141.  
  142.        WARNING:  It is strongly advised that the user back up his
  143.        disk  before  using  SST.   Since SST  buffers  all  Data,
  144.        Tables, and Directories to Memory,
  145.  
  146.        IF  A  POWER FAILURE OCCURS WHILE CLUSTER SWAPPING  IS  IN
  147.                  ACTION... ALL DATA WILL BE LOST.
  148.  
  149.        The  Same thing goes for ANY interruption during the  SWAP
  150.        procedure.  Simply LEAVE SST alone after pressing "Y" when
  151.        prompted!
  152.  
  153.        SST  assumes  that  all disk sectors that are bad  are  so
  154.        marked  in the File Allocation Table.  If you have a  Hard
  155.        disk  that  causes  you  problems...   I.E.   it  develops
  156.        unexpected  bad  Sectors regularly,  Don't use SST  on  it
  157.        unless  you  have verified that the disk is currently  OK.
  158.        One  way  of  doing this is with Peter  Norton's  DiskTest
  159.        Program in his Norton Utilities Package.  (CopyRight Peter
  160.        Norton).
  161.  
  162.        THE SST USER:
  163.  
  164.        SST is intended for Computer users who have the ability to
  165.        quickly back up their disk and who don't have the time  to
  166.        waste   for  a  simple  disk  optimization.   Other   disk
  167.        optimizers  can  take many hours to work on  a  LARGE/FULL
  168.        disk.   SST  can usually handle these more  quickly.   For
  169.        Example,  SST has reorganized a 32 MEG Hard disk on an  AT
  170.        compatible   in   under  30   minutes.   This   particular
  171.        Optimization  moved over 20 Meg of data.  Zero Bytes  were
  172.        free on the disk.
  173.  
  174.        SST LIMITATIONS:
  175.  
  176.        SST is  designed to  run only in a single user, non-multi-
  177.        tasking  system without  stay resident programs installed.
  178.        SST can perform an optimization on almost any standard DOS
  179.        disk up to 32 Megabytes in size as long as sectors are 512
  180.        bytes long.   However, it should be noted that SST needs a
  181.        lot of memory to work with Bigger disks.   If SST runs out
  182.        of memory,  a runtime error FF will halt the program. This
  183.        error  typically  occurs  while  SST  is  reading  in  the
  184.        Subdirectories and before anything is moved or changed  on
  185.        the  disk.   SST's Memory allocation routines will look to
  186.        see if enough memory is available when the "BIG BYTES" are
  187.        needed.  A lack of memory returns a message along with the
  188.        Runtime  Error  FF message.   The Smaller  Dynamic  Memory
  189.        allocations are not PreChecked.  These routines are called
  190.        many  times...  (Thousands of times on Hard disks) and  it
  191.        would  slow  things  up  a great deal to  do  a  bunch  of
  192.        calculations  every  time  that  16  bytes  were   needed,
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.  
  203.  
  204.  
  205.        especially  since  SST's  Library  Routines  AUTOMATICALLY
  206.        check  on  Stack/Heap  memory  availability  in  order  to
  207.        generate this Runtime Error.
  208.  
  209.        If SST just can't quite make it to the SWAPPING  procedure
  210.        with the memory that you have,  you can do a few things to
  211.        try and get it to run.
  212.  
  213.        Simply  do a cold boot without any unneeded device drivers
  214.        like  ANSI.SYS  in the  system.  Temporarily  rename  your
  215.        CONFIG.SYS  file to something else and boot up without any
  216.        of the other DOS parameters that you may specify that  eat
  217.        up memory (BUFFERS=##). SST does not use Dos' DISK buffers
  218.        to move any disk cluster data. Don't run ANY Stay Resident
  219.        programs  before  SST.  The extra 1 or 2K of  free  memory
  220.        gained with these methods has proven to be enough before!
  221.  
  222.  
  223.        MEMORY USAGE SPELLED OUT:
  224.  
  225.        SST uses 16 bytes of memory for every used cluster on  the
  226.        disk.  This translates to 262k for a completely full 32Meg
  227.        Hard  disk.   SST uses 32 bytes of memory for every active
  228.        directory entry on the disk.  One thousand files would use
  229.        up 32000 bytes of RAM.   SST will buffer out one  complete
  230.        copy  of  the  File allocation Table.  This would  use  up
  231.        another  32K of ram on a 32Meg Hard  Drive.   The  program
  232.        also needs another 64k for dynamic variables when run on a
  233.        32Meg drive.....
  234.        As  you can see,  this all adds up very quickly.   If  you
  235.        plan  to run SST on a 32Meg drive,  you will need at LEAST
  236.        512K,  If  you  have  640K,  you should  not  have  memory
  237.        problems with SST and a 32 Meg Drive.
  238.  
  239.        For smaller drives such as 20 Meg and 10 Meg,  The  memory
  240.        requirements are much lower.
  241.  
  242.        __________________________________________________________
  243.  
  244.                           * DISCLAIMER *
  245.  
  246.        The  author  makes no claims or guarantees about  the  use
  247.        misuse,  or  suitability of SST on a particular  computer.
  248.        It  is  the  users duty to take  adequate  precautions  to
  249.        prevent  and recover from any accidental data loss because
  250.        of power failure or any other cause.
  251.  
  252.  
  253.  
  254.  
  255.  
  256.  
  257.  
  258.  
  259.  
  260.  
  261.  
  262.  
  263.  
  264.  
  265.