[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: file descriptors??



In article <[🔎] Pine.LNX.3.96.980107084321.5460B-100000@siva.taz.net.au>,
Craig Sanders <cas@taz.net.au> wrote:
>
>On Tue, 6 Jan 1998, Elie Rosenblum wrote:
>
>> And thus spake Craig Sanders, on Wed, Jan 07, 1998 at 01:52:06AM +1100:
>> > is there any debian policy on number of file descriptors compiled into the
>> > kernel?  (and also in limits.h in libc6-dev - AFAIK pretty much everything
>> > that uses select() will need to be recompiled if the limit is increased).
>> 
>> This has been sysctl configurable in the runtime kernel since at most 2.0,
>> probably 1.3.

Not true. That's the global limit. The per-process limit is hardcoded at
256 fds per process in the 2.0.x kernel

>	root@siva [08:41:43] kernel# cd /proc/sys/kernel/
>	root@siva [08:41:58] kernel# ls -l *-max *-nr
>	-rw-r--r--   1 root     root            0 Jan  7 08:40 file-max
>	-r--r--r--   1 root     root            0 Jan  7 08:40 file-nr
>	-rw-r--r--   1 root     root            0 Jan  7 08:40 inode-max
>	-r--r--r--   1 root     root            0 Jan  7 08:40 inode-nr
>	root@siva [08:42:41] kernel# echo 2048>file-max; echo 8192>inode-max
>	bash: file-max: Bad file descriptor
>	bash: inode-max: Bad file descriptor

You forgot a space. Try echo 2048 > file-max. 2048>file-max means something
entirely different in shell-syntax..

Mike.
-- 
 Miquel van Smoorenburg |  The dyslexic, agnostic, insomniac lay in his bed
    miquels@cistron.nl  |  awake all night wondering if there is a doG


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-devel-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .


Reply to: