home *** CD-ROM | disk | FTP | other *** search
/ Network Support Encyclopedia 15 / novell-nsepro-1992-vol15.iso / download / file_h.txt < prev    next >
Text File  |  1989-09-05  |  4KB  |  78 lines

  1. Can you handle it?
  2.  
  3.      Use of file handles on the network can be confusing.  The
  4. NetWare operating system (NET$OS) opens file handles for itself,
  5. workstation shells open file handles on the network and DOS opens
  6. file handles on the local workstation.
  7.  
  8.      There are at least four files that are opened by NET$OS when
  9. the server is booted.  These four are: NET$MSG.SYS,  NET$BVAL.SYS,
  10. NET$BIND.SYS, and DIRSTAMP.SYS.
  11.  
  12.      The first file, NET$MSG.SYS is a transient file that NET$OS
  13. uses for passing kernel messages.  Frequently referred to as the
  14. binderies, NET$BIND.SYS and NET$BVAL.SYS, are the next two files
  15. opened.  Then there is DIRSTAMP.SYS, this special file is the File
  16. Allocation Table (FAT).  For every volume defined at the server
  17. there is a DIRSTAMP.SYS.  If only one volume (SYS:) exists, then
  18. only one DIRSTAMP.SYS will be opened.  Likewise, for every volume
  19. defined, a corresponding DIRSTAMP.SYS will be opened, adding to
  20. the total number of file handles NET$OS will open.
  21.  
  22.      Additional files that are opened, and their somewhat unusual
  23. rule of file handle freeing are the queue files.  For every
  24. (printer) queue there are two files opened.  The files are
  25. Q$xxxxxx.SYS and Q$xxxxxx.SRV.  These files are only opened if
  26. there is a printer(s) servicing the particular queue.  The
  27. unusual rule is: If a queue is serviced by one or more printers
  28. when the server is booted, two file handles are used (this is
  29. standard), but, only one handle is freed if all printers servicing
  30. the queue are removed (this is unusual).   On the other hand, if a
  31. queue is initially (when the server is booted) serviced by no
  32. printers, then when printers are added (to service it), two file
  33. handles are used (once again, normal), but, if all printers
  34. servicing the queue are removed, both file handles are released.
  35.  
  36.      At the workstation there are two types of file handles,
  37. network (owned by the file server) and local (owned by DOS).  The
  38. network shell (NET2, NET3, NET4) detects where the file resides
  39. that is being opened.   When the shell determines an open is being
  40. performed on a drive which is non-local, the file handle is stored
  41. in the shell's handle area and in the file server's file handle
  42. table.  For instance, whenever "capturing", a file handle is
  43. opened for the actual capture process.  If the file being opened
  44. exists locally, the shell passes the open call to DOS and lets DOS
  45. provide space for the resulting file handle.
  46.  
  47.      Thus, the FILES= (in CONFIG.SYS) and FILE HANDLES= (in
  48. SHELL.CFG, detailed in the Supervisor Reference, Appendix B)
  49. parameters are completely separate.  For example, if a user has
  50. FILES=20 in his CONFIG.SYS, then 20 DOS files can be opened.  If
  51. the FILE HANDLES=80 (default provided by the shell is 40)
  52. parameter is defined, then, the total number of files concurrently
  53. opened on all file servers the user is attached to would be 80.
  54.  
  55. Some notes on Dynamic memory use
  56.  
  57.      Each file handle open on the network consumes 62 bytes from
  58. dynamic memory pool 2.  The initial printer to service a queue
  59. uses 56 bytes from dynamic memory pool 1 , each additional printer
  60. to service a queue (already serviced by at least one printer) uses
  61. another 8 bytes.   Also, every network drive mapped  uses 16 bytes
  62. from dynamic memory pool 1.  Most VAPs (Btrieve, LANspool, etc.)
  63. use file handles via actual mapped drives or printer queues.
  64.  
  65. Other transiently used file handles
  66.  
  67.      There are several other files NET$OS has open from time to
  68. time, they are: NET$ACCT.DAT, NET$REC.DAT, SYS$LOG.ERR, and
  69. NET$LOG.DAT.  The first two are for NetWare's accounting services,
  70. the third tracks errors that NET$OS detects.  The last file, which
  71. is exploited by applications, is provided to hold certain data
  72. that various applications deem worthy of logging.
  73.  
  74.      If you have any questions concerning information in this
  75. article, feel free to contact me at CompuServe ID 70007,3430.
  76. Some material (use of FILES= and FILE HANDLES=) was supplied by
  77. Grant Echols, CompuServe ID 76247,2232.
  78.