Unix Technical Forum

Increasing File Descriptors

This is a discussion on Increasing File Descriptors within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> Can someone please point me to documentation on the proper way to increase the number of file descriptors under ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-19-2008, 03:19 PM
Fitzroy Blusterbuss
 
Posts: n/a
Default 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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-19-2008, 03:19 PM
Sylvain Robitaille
 
Posts: n/a
Default Re: Increasing File Descriptors

Fitzroy Blusterbuss wrote:

> Can someone please point me to documentation on the proper way to
> increase the number of file descriptors under slackware.


See the limits(5) manual page, or /usr/doc/shadow-4.0.3/README.limits.

There doesn't appear to be a "stock" limits file on my Slackware
installations, but I'm quite sure that this is the documentation you're
looking for.

I hope that helps ...

--
----------------------------------------------------------------------
Sylvain Robitaille syl@alcor.concordia.ca

Systems analyst Concordia University
Instructional & Information Technology Montreal, Quebec, Canada
----------------------------------------------------------------------
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-19-2008, 03:22 PM
/dev/rob0
 
Posts: n/a
Default Re: Increasing File Descriptors

On Wed, 08 Sep 2004 04:33:17 +0000, Fitzroy Blusterbuss wrote:
> 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


file:/usr/src/linux/Documentation/filesystems/proc.txt -- look for
"file-max".
--
/dev/rob0 - preferred_email=i$((28*28+28))@softhome.net
or put "not-spam" or "/dev/rob0" in Subject header to reply

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-19-2008, 03:27 PM
Fitzroy Blusterbuss
 
Posts: n/a
Default Re: Increasing File Descriptors

On Thu, 09 Sep 2004 23:53:53 -0500, /dev/rob0 wrote:

> On Wed, 08 Sep 2004 04:33:17 +0000, Fitzroy Blusterbuss wrote:
>> [quoted text muted]

>
> file:/usr/src/linux/Documentation/filesystems/proc.txt -- look for
> "file-max".


Thanks, but I'm still completely in the dark. According to this doc, the
command: "cat /proc/sys/fs/file-max", should tell me the number of file
handlers/descriptors available. It also says the default value is 4096.
When I run the command the result I get is 25202. This suggests that the
documentation is a bit out of date. When I run ulimit -n, however, I get
1024. That is the same number that a couple of different programs report
are available to them currently.

Is 25202 the number for the whole system and 1024 the number available to
me as an individual user? The information in proc.txt tells me how to
increase the 25202 number but that doesn't seem to be the solution. I need
to increase the 1024.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-19-2008, 03:27 PM
Floyd L. Davidson
 
Posts: n/a
Default Re: Increasing File Descriptors

Fitzroy Blusterbuss <Dewey@Manilla.com> wrote:
>
>Is 25202 the number for the whole system and 1024 the number available to
>me as an individual user? The information in proc.txt tells me how to
>increase the 25202 number but that doesn't seem to be the solution. I need
>to increase the 1024.


Almost invariably when someone "needs" to increase the number of file
descriptors, what they actually need is a better software design.

Why do you need more than 1024 file descriptors?

--
FloydL. Davidson <http://web.newsguy.com/floyd_davidson>
Ukpeagvik (Barrow, Alaska) floyd@barrow.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-19-2008, 03:28 PM
Keith Matthews
 
Posts: n/a
Default Re: Increasing File Descriptors

Floyd L. Davidson wrote:

> Fitzroy Blusterbuss <Dewey@Manilla.com> wrote:
>>
>>Is 25202 the number for the whole system and 1024 the number available to
>>me as an individual user? The information in proc.txt tells me how to
>>increase the 25202 number but that doesn't seem to be the solution. I need
>>to increase the 1024.

>
> Almost invariably when someone "needs" to increase the number of file
> descriptors, what they actually need is a better software design.
>
> Why do you need more than 1024 file descriptors?
>


I suggest you try running a large mail server, you'll soon find out.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-19-2008, 03:28 PM
Floyd L. Davidson
 
Posts: n/a
Default Re: Increasing File Descriptors

Keith Matthews <invalid@frequentous.co.uk> wrote:
>Floyd L. Davidson wrote:
>
>> Fitzroy Blusterbuss <Dewey@Manilla.com> wrote:
>>>
>>>Is 25202 the number for the whole system and 1024 the number available to
>>>me as an individual user? The information in proc.txt tells me how to
>>>increase the 25202 number but that doesn't seem to be the solution. I need
>>>to increase the 1024.

>>
>> Almost invariably when someone "needs" to increase the number of file
>> descriptors, what they actually need is a better software design.
>>
>> Why do you need more than 1024 file descriptors?
>>

>
>I suggest you try running a large mail server, you'll soon find out.


1024 per process isn't enough?

Do you see the obvious problem?

--
FloydL. Davidson <http://web.newsguy.com/floyd_davidson>
Ukpeagvik (Barrow, Alaska) floyd@barrow.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-19-2008, 03:29 PM
Fitzroy Blusterbuss
 
Posts: n/a
Default Re: Increasing File Descriptors

/sbin/initscript is the file I needed. You can use ulimit to set the soft
and hard fd limits there. Better to check the initscript man page rather
than the sample file initscripts.sample.



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:43 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com