lkml.org 
[lkml]   [1996]   [Nov]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectFD Limits

Is it hard to up the open file descriptors limit under linux
past 256 which is the HARDLIMIT for any users :

maelstrom:~# ulimit -n
256
maelstrom:~# ulimit -n 1024
ulimit: cannot raise limit: Operation not permitted

This is under linux 2.0.25, bash 1.14.7, i have done the following
to the kernel but do not know if i have done the right thing, can
someone please direct me in the right direction or confirm me if
i have done the right thing via private email, thanks.

/usr/src/linux/include/linux:fs.h
changed #define NR_OPEN from 256 to 1024

/usr/src/linux/include/linux:limits.h
changed #define NR_OPEN from 256 to 1024
changed #define OPEN_MAX from 256 to 1024

/usr/src/linux/include/linux:posix_types.h
changed #define __FD_SETSIZE from 1024 to 4096

Thanks,
Zachary Maas


\
 
 \ /
  Last update: 2005-03-22 13:37    [W:0.125 / U:0.664 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site