[comp.sys.novell] File Handles, How to get more > 40

shephard@newsserver.sfu.ca (Gordon Shephard) (05/24/91)

Novell seems to ignore the Config.Sys Command, Files=50, when using
Novell 2.15 and Microsoft C 5.1.  Normally Microsoft C 5.1 refuses to
give more than 20 file handles, but the compiler can be modified (by
modifying the source code for MC 5.1, crtodat.asm) to give you a greater
number of file handles.  Unfortunately Novell 2.15 seems to ignore this
change, and will give a maximum of 40 file handles.  Is there any way to
get around this?
-- 
| Gordon Harry Shephard         | Distributed Computing Support Group  |
| Academic Computing Services   | Phone: (604)291-3930   (604)464-4991 | 
| Simon Fraser University       | USERGHS@SFU.BITNET                   |
| Burnaby, BC, Canada. V5A 1S6  | Shephard@Whistler.sfu.ca             | 

ah@opal.cs.tu-berlin.de (Andreas Helmcke) (05/24/91)

shephard@newsserver.sfu.ca (Gordon Shephard) writes:

>Novell seems to ignore the Config.Sys Command, Files=50, when using
>Novell 2.15 and Microsoft C 5.1.  Normally Microsoft C 5.1 refuses to
>give more than 20 file handles, but the compiler can be modified (by
>modifying the source code for MC 5.1, crtodat.asm) to give you a greater
>number of file handles.  Unfortunately Novell 2.15 seems to ignore this
>change, and will give a maximum of 40 file handles.  Is there any way to
>get around this?

You are mixing up several limits for file handles:

1. In config.sys :
       Files= ...
   this limits the max. numer of open files for your PC and all
   processes:
     (e.g. starting a programm from within an other creates a new
      'process')
2. The number of open files (file handles) per process is limited 
   by DOS (not Microsoft C ) to am maximum of 20.
   (there is an undocumented DOS-function-call you can use to increase
    this limit) (I guess the modification for MSC will use that (or
    simular))
3. Novell Netware restricts the number of file handles per WS to 40
   (right :-) this is your actual limit)
   you can increase this by adding the line
         FILE HANDLES=....
   to the file SHELL.CFG on your workstations boot disk.
   (if you don't have it by now, just create it ;-))
4. the Netware file Server has an limit on open files in the total net.
   You have to reconfigure your server using elsgen to change this.

All the above mentiond limits work together i.e. *all* have to be
high enough for your application to work.

Andreas
--
Andreas Helmcke         | UUCP: ah@tubopal.UUCP (ah@opal.cs.tu-berlin.de)
                        |       ...!{unido,pyramid}!tub!opal!ah
			| BITNET: ah%tubopal@DB0TUI11.BITNET
Steinbach's Guideline for Systems Programming

ileader@sideways.gen.nz (Ian Leader) (05/28/91)

shephard@newsserver.sfu.ca (Gordon Shephard) writes:

> Novell seems to ignore the Config.Sys Command, Files=50, when using
> Novell 2.15 and Microsoft C 5.1.  Normally Microsoft C 5.1 refuses to
> give more than 20 file handles, but the compiler can be modified (by
> modifying the source code for MC 5.1, crtodat.asm) to give you a greater
> number of file handles.  Unfortunately Novell 2.15 seems to ignore this
> change, and will give a maximum of 40 file handles.  Is there any way to
> get around this?
> -- 
> | Gordon Harry Shephard         | Distributed Computing Support Group  |

The file handles parameter in the config.sys file will only affect files 
on the local hard disk of the workstation.  To increase the available 
network file handles, you need to set up a SHELL.CFG file in the same 
directory as NETx.com containing the line:
                       FILE HANDLES = 50
to tell the network shell to use more than the default 40 file handles.
You should be able to tell whether the shell is interpreting the 
SHELL.CFG file correctly by seeing whether it displays a prompt saying 
the same thing as IPX.com is loaded.

                            - Ian Leader  (ileader@sideways.gen.nz)
                            - Avalon Television Centre
                            - Lower Hutt
                            - New Zealand

**These views MUST be my own because my company wouldn't be interested in
**having views on these things, anyway.

fengstad@honte.uleth.ca (Grant Fengstad) (06/04/91)

In <1991May23.223224.23679@newsserver.sfu.ca> shephard@newsserver.sfu.ca (Gordon Shephard) writes:

>Novell seems to ignore the Config.Sys Command, Files=50, when using
>Novell 2.15 and Microsoft C 5.1.  Normally Microsoft C 5.1 refuses to
>give more than 20 file handles, but the compiler can be modified (by
>modifying the source code for MC 5.1, crtodat.asm) to give you a greater
>number of file handles.  Unfortunately Novell 2.15 seems to ignore this
>change, and will give a maximum of 40 file handles.  Is there any way to
>get around this?
>-- 
>| Gordon Harry Shephard         | Distributed Computing Support Group  |

Create a file on your boot disk/directory called NET.CFG.  In this file
place a statement "File Handles=XX" where XX equals the amount of file
handles you wish to have.  

This is fully documented in the Installation Manual.

-- 
+--------------------------------------+
|  Grant M. Fengstad                   |
+--------------------------------------+
|  Unix:      fengstad                 |

rick@ofa123.fidonet.org (Rick Ellis) (06/05/91)

On <May 23 22:32> Gordon Shephard writes:

 GS> Novell seems to ignore the Config.Sys Command, Files=50, when using
 GS> Novell 2.15 and Microsoft C 5.1.  

You need to increase the number of file handles in your SHELL.CFG file on the 
workstation.


 

--  
Rick Ellis
Internet: rick@ofa123.fidonet.org
Compuserve: >internet:rick@ofa123.fidonet.org
BBS: 714 939-1041 (HST/V.32bis)