Solved

open file pointers

Posted on 2000-04-06
1
218 Views
Last Modified: 2010-04-20
Is there a limit to how many file pointers can be opened on a linux box by a remote connection (or even on the box itself)?  If so, is there any way to change that number?
0
Comment
Question by:visual032798
1 Comment
 
LVL 2

Accepted Solution

by:
munsie earned 100 total points
ID: 2692070
according to /usr/include/linux/limit.h, the limit is 256 per process.  This should include any file descriptors, pipes, and sockets.

but, with a quick little program that just opened up all of the files it could, I was able to open 1024 files at once.

This was done with the 2.2.14 kernel.

If you need more file descriptors, I would question your program's design, but the only way to change the limits is by changing the setting in the kernel source.  I didn't see anything obvious to change quickly scanning the kernel source, but it should be in there.

again, this is per process.  If you telnet in and start a 100 processes in the background, each process can have a 1024 files open.

good luck,
dennis
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
I NEED A "BARE" LINUX ... 9 92
Apache module 5 67
Why would ubuntu server 16.04 compress so many small access.log.gz files? 4 36
IMAP copying tool 14 49
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

726 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