Hi,

On Tue, Dec 29, Robert Goley wrote:

> I am having trouble with an application that we recently ported to suse
> linux.  We are getting errors when running reports that open more that
> 24-28 database files.  We are using Faircom Ctree local database.  It
> does not seem to be a database problem but a file limit problem.  Is
> there a way to specify the maximum number of files that can be opened at
> a system or user level.  We use other unix flavors also that we have had
> to do this to but I am at a loss as for where to start in linux(having
> already checked the kernel and yast and other files in the /etc dir).
> Any suggestions?

The maximum number of open files for the whole system can be tuned at
runtime using:

echo "4096" > /proc/sys/kernel/file-max
echo "12288" > /proc/sys/kernel/inode-max

This sets the number of open files to 4096

The number of open files per program is 256. If this is not enough for
your application, you need to use a patched kernel (see
ftp.suse.com:/pub/SuSE-Linux/suse_update/kernel/Informix) and recompile
the application with a redefined value of NR_OPEN.

A pre-patched kernel for large fds will be contained in SuSE Linux 6.0

                                                                  -o)
    Hubert Mantel              Goodbye, dots...                   /\\
                                                                 _\_v
-
To get out of this list, please send email to [EMAIL PROTECTED] with
this text in its body: unsubscribe suse-linux-e
Check out the SuSE-FAQ at http://www.suse.com/Support/Doku/FAQ/ and the
archiv at http://www.suse.com/Mailinglists/suse-linux-e/index.html

Reply via email to