How to Allocate More File Handles for FoxPro 2.6 for UNIXID: Q126954 2.60 UNIX The information in this article applies to:
NOTE: Microsoft does not support, endorse, or recommend SCO Unix or SCO Xenix. We provide the following information only as a convenience for our customers. Microsoft does not provide warranties of any kind on the following information, either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.
SUMMARYFor users of FoxPro on MS-DOS and Windows platforms, the error message "Too Many Files Open" is usually easy to correct by making some changes to the CONFIG.SYS or AUTOEXEC.BAT files and then rebooting the computer. However, to fix the same problem, FoxPro users under the UNIX operating system must tune the UNIX Kernel parameters, and then re-link the Kernel by shutting down and then rebooting the UNIX host machine. WARNING: The information that follows illustrates a specific situation and is by no means the only Kernel configuration that would eliminate the "Too Many Files Open" error for the situation illustrated in this article. It is also important to note that tuning Kernel parameters is a complex and potentially dangerous process, and should be performed by experienced SCO administrators only.
MORE INFORMATIONBy default, SCO sets up the host to support 60 files per user, 200 files system wide, and 100 locks system wide. This may be okay for most installations, but suppose you need to support 80 files per user? What follows is a description of the process you need to follow to tune the Kernel on the SCO UNIX host to provide for two users opening 80 FoxPro tables simultaneously. You could use an alternative method called the SYSADMSH (System Administration Shell) method if you prefer. For more information about using the System Administration Shell to tune the SCO UNIX Kernel, please see the following article in the Microsoft Knowledge Base:
Tuning the Kernel on the SCO UNIX Host for Two Users to Use 80 Tables Each1. Login on the console as root. 2. At the "#" prompt, type:
3. At the configuration menu, select "3. Files, Inodes, and Filesystems."
4. At the NINODE parameter prompt for the maximum number of open inodes 5. At the NHINODE parameter prompt for the inode hash table size,
6. At the NFILE parameter prompt for the maximum number of open files
7. Skip past the next three parameters (NMOUNT, CMASK, and ETRUNC). At
8. Skip past the SHLBMAX parameter, and at the FLCKREC parameter prompt for
9. Skip past the remaining prompts, and come back to the configuration
10. You will be asked if you wish to update the system configuration files.
11. Re-link the Kernel by typing the following at the "#" prompt:
12. When this is done you will see a message stating that the UNIX Kernel
13. SCO UNIX will then let you know that the new Kernel has been installed.
14. Perform an orderly shutdown of the system, and then reboot. The new
These settings represent a worst case scenario. Hopefully, you would not
ever have to support two or more users who each need to have 80 tables open
at the same time.
Here's the reasoning behind the values presented above. Start with the maximum number of files that each user must have open at any one time, which in this case is 80. Now FoxPro tables can have other associated files like memo files and indexes, so for the worst case assume that all 80 files will have an associated memo file and one index (CDX) file, this brings the total to 240. You also have to allow for the files that FoxPro itself opens for operations. The SCO products discussed here are manufactured by vendors independent of Microsoft; we make no warranty, implied or otherwise, regarding these products' performance or reliability. Additional reference words: FoxUnix 2.60 KBCategory: KBSubcategory: FxenvOs
|
|
Last Reviewed: May 13, 1998 © 1999 Microsoft Corporation. All rights reserved. Terms of Use. |