LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 09-07-2004, 11:47 PM   #1
Geoffrey_Firmin
LQ Newbie
 
Registered: May 2004
Posts: 14

Rep: Reputation: 0
Increasing File Descriptors


Can someone please point me to documentation on the proper way to increase
the number of file descriptors under slackware. All the information I've
been able to come up with refers to changing the limits.conf file, but
there is no such file in slackware. Some sources are saying you have to do
some pretty involved kernel hacking to get an increase, others say no,
that after the 2.4 series you just need to change configuration files.

I'm using Slack 10, kernel 2.6.6

- TIA
 
Old 09-15-2004, 12:17 AM   #2
Geoffrey_Firmin
LQ Newbie
 
Registered: May 2004
Posts: 14

Original Poster
Rep: Reputation: 0
The answer, for any poor souls that find themselves in a similar situation is:

/sbin/initscript

See the man page for how to set up this file to increase the available file descriptors/handlers.

It took me 6 days to find that out. Once I found out how to do it the actual change took about a minute.
 
Old 09-15-2004, 01:19 AM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,978
Blog Entries: 11

Rep: Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879
A ulimit -f XXXX thrown into e.g. /etc/profile should
do the same thing :} ... pity I never saw the original
post...


Cheers,
Tink
 
Old 09-15-2004, 03:28 AM   #4
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 242Reputation: 242Reputation: 242
It should be ulimit -Hn xxx as I see it in man initscript. Refering to man bash /ulimit, it says that ulimit -f is for increase the maximum size for a file created by the shell.

I still don't know what really is the point to increase file descriptors/handlers limit... Is it the number of opened files at the same time ? If so, the default (1024) is enough for my part.

Last edited by Cedrik; 09-15-2004 at 03:31 AM.
 
Old 04-19-2008, 08:50 AM   #5
urbanmusic
LQ Newbie
 
Registered: Apr 2008
Location: near coventry UK
Distribution: Slamd64 in pure 64 mode
Posts: 1

Rep: Reputation: 0
thankyou

wow that has been doing my head in for ages I was trying to get higher memlock for users so I just changed the -c to -l and added unlimited wow what a diference thanks for the post urbanmusic
 
Old 04-21-2008, 09:48 AM   #6
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 1,913

Rep: Reputation: Disabled
Quote:
Originally Posted by Geoffrey_Firmin View Post
The answer, for any poor souls that find themselves in a similar situation is:

/sbin/initscript

See the man page for how to set up this file to increase the available file descriptors/handlers.

It took me 6 days to find that out. Once I found out how to do it the actual change took about a minute.
This is documented at http://slackwiki.org/Resource_Limits
 
  


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
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
Poll with nonblocking file descriptors bstark Programming 1 11-03-2004 08:27 PM
File Descriptors - How to raise the limit? xmdms Linux - General 3 07-15-2004 12:57 AM
File descriptors odd question ferreter Linux - General 2 02-13-2003 10:21 AM


All times are GMT -5. The time now is 05:23 PM.

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