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,147 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

What Is Transaction Monitoring and who needs it?

Synthetic Transaction Monitoring that you need for the day to day, which ensures your business website keeps running optimally, and that there is no downtime to impact your customer experience.

Question has a verified solution.

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

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
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.:
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

688 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