Solved

I found this in my /etc/system file: set rlim_fd_max=2048  Can you provide details on this setting?

Posted on 2004-03-24
5
1,125 Views
Last Modified: 2013-12-27
This seems to be a file discriptor setting.  Is it an OK setting and how does it affect my overall performance?
0
Comment
Question by:rwpulliam
  • 3
5 Comments
 
LVL 12

Expert Comment

by:stefan73
ID: 10668957
Hi rwpulliam,
That changes the maximum number of file descriptors per process to 2048. It's a kernel setting - so be careful.

The number of fd's increase the amount of memory each process needs. Some applications require a higher than defaul value here - but don't change anything here unless you need to and you know what you're doing.

Cheers,

Stefan
0
 
LVL 18

Assisted Solution

by:liddler
liddler earned 100 total points
ID: 10668961
http://docs.sun.com/db/doc/806-7009/6jftnqskr?a=view
gives an explanation of rlim_fd_max and rlim_fd_cur

It is the "Hard" limit of file descriptors and by default is 1024
I seem to remember increasing it on a very, very busy webserver

What application are you running?
0
 

Author Comment

by:rwpulliam
ID: 10669731
I am running several rsync processes on one staging serverto keep web content syncronized on 4 production servers. This has caused /tmp to go to 100% on one of the target production servers.  At any given time there may be several instances of rsync running.  I am hoping using this setting  on all servers involved in the syncronization process will prevent this (/tmp at 100%) from happening.  I noticed this kernel setting on a database server in our enterprise that is running very smoothly.

Keep me posted.

Thanks.
0
 
LVL 12

Accepted Solution

by:
stefan73 earned 150 total points
ID: 10669785
rwpulliam,
/tmp overflows cannot be prevented by increasing the number of file descriptors. You should rather use the
 -T, --temp-dir=DIR

option of rsync to point to another directory than /tmp.
0
 
LVL 12

Expert Comment

by:stefan73
ID: 10669836
rwpulliam,
> I noticed this kernel setting on a database server in our enterprise
> that is running very smoothly

A DB server is a lot different from a web repository server. It's like watching someone win a race in a yellow car and then repainting your car yellow expecting to win :-)
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded‚Ķ
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

744 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now