Solved

File Open

Posted on 2000-05-14
9
187 Views
Last Modified: 2010-04-21
How can I specify how many files can be opened simultaneously ?

Andrew
0
Comment
Question by:andrewyu
9 Comments
 
LVL 40

Expert Comment

by:jlevie
ID: 2808509
What OS?
0
 
LVL 12

Expert Comment

by:geotiger
ID: 2809449
In Solaris, you can set it for a shell as

ulimit -n 64

If you want to set up for all the users, you need to change kernel settings in /etc/system.

0
 

Author Comment

by:andrewyu
ID: 2810888
How can I amend this setting in FreeBSD ?

Andrew
0
Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

 

Accepted Solution

by:
nicob earned 30 total points
ID: 2810891
Hi,

To set the amount of users/processes in the /etc/system file you have to do the following :

set maxusers=<number>
set max_nprocs=<number>

Where <number> is you have to fill in the amount you want. You have to remember that max_nprocs is calculated in the following way :

10 + 16 * maxusers

To increase the number of file descriptors you have to put the following in the /etc/system file :

set rlim_fd_max=<number>

You require a reboot of the system after you have changed this in the /etc/system file.

Hope this answers your question.

Nico.
0
 
LVL 40

Expert Comment

by:jlevie
ID: 2811669
As I recall, on FreeBSD the number of open files is determined by the maxusers setting in the kernel config file and is twice the maximum number of processes. The default for the GENERIC kernel has maxusers=32 and since the maximum number of processes is 20+(16*maxusers), that yields a maximum number of open files of 1064. To raise the max open files limit you need to build a new kernel with a larger value for maxusers.
0
 
LVL 40

Expert Comment

by:jlevie
ID: 2813960
I've checked my assertion about the maximum number of openfiles in FreeBSD and in fact it is increaed by building a new kernel with a larger maxusers.
0
 

Author Comment

by:andrewyu
ID: 2814142
Thank you very much !

BUT, if the DEVIL told me the FILE TABLE IS FULL, do you think I can correct this problem by the solution provided by you ?

Andrew
0
 
LVL 40

Expert Comment

by:jlevie
ID: 2815095
His solution is for Solaris and it will work if that is your OS. If it's BSD then it won't work.
0
 

Author Comment

by:andrewyu
ID: 2817915
So, it is a solutionfor SVR?, right ?

Anyway, where can I get resources regarding this issues ?

Andrew
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Java core in Solaris 10 1 282
Remote Change Dates on AIX Automation 7 62
Unix Question 19 50
what is the difference between "sudo su" and "su - root" 6 117
This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

778 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question