LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 12-18-2006, 04:30 AM   #1
debloxie
Member
 
Registered: Jul 2003
Posts: 153

Rep: Reputation: 30
Question Raising Number Of File Descriptors To 8192


Hello there,

am using Fedora Core 4 with a default of 1024 of system filedesciptors as with most distros. Am using squid and on Redhat 9 i alwasy increase the number of filedescriptors to 8192 from the default 1024 just in case the load gets high. I perform the usual ulimit stuff as described in the squid FAQ site ( http://wiki.squid-cache.org/SquidFaq...9c235e59f50bc5 ) before installing squid.

I have found this not to have worked on the Fedora Core 4 i have even after performing all rituals which worked for RH9.

Is there a way out of this on fedora 4 ?

Thanks
 
Old 12-18-2006, 09:09 AM   #2
edenCC
Member
 
Registered: May 2006
Location: Gz,China
Distribution: RH,FB
Posts: 196
Blog Entries: 1

Rep: Reputation: 32
Quote:
Originally Posted by debloxie
Hello there,

am using Fedora Core 4 with a default of 1024 of system filedesciptors as with most distros. Am using squid and on Redhat 9 i alwasy increase the number of filedescriptors to 8192 from the default 1024 just in case the load gets high. I perform the usual ulimit stuff as described in the squid FAQ site ( http://wiki.squid-cache.org/SquidFaq...9c235e59f50bc5 ) before installing squid.

I have found this not to have worked on the Fedora Core 4 i have even after performing all rituals which worked for RH9.

Is there a way out of this on fedora 4 ?

Thanks
there're two points to change the normal user's max open-file limit
root# echo 60000 > /proc/sys/fs/file-max
root# echo "* - nofile 60000" > /etc/security/limits.conf
and then, relogin. the ulimit -n will change to 60000, that's will be enough for a cache env.
 
Old 12-18-2006, 10:37 AM   #3
debloxie
Member
 
Registered: Jul 2003
Posts: 153

Original Poster
Rep: Reputation: 30
Hi EdenCC,

i saw the value 63726 in the /proc/sys/fs/file-max folder wch is more than 60,000, so i left it ok

then i echoed the second value to limits.conf and that did the trick with having 60000 as output of ulimit -n

but this valued didnt show up in my squid reports, it still show 1024, do i need to restart the system or squid itself?

Cheers
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Increasing File Descriptors Geoffrey_Firmin Slackware 5 04-21-2008 09:48 AM
increasing maximum no of file descriptors kshkid Programming 9 02-21-2006 10:02 AM
How to find out the number of open file descriptors? skie_knite007 Programming 2 12-11-2005 10:23 PM
file descriptors node047 Linux - Newbie 1 03-29-2005 05:47 AM
unix file descriptors versus c FILE pointers nodger Programming 9 11-25-2004 07:02 AM


All times are GMT -5. The time now is 10:04 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration