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

Re: [cobalt-users] I got a question for ya



On Fri, 16 Feb 2001, Jeff Lasman wrote:

> John M Troher wrote:
> 
> > Have you ever tried to increase the max allowed open files?
> > I think by default the the kernel it configed for 1024 open files at once.
> 
> No, I haven't, but I think I can help you:
> 
> > The docs I find on redhats site are very clear.  They state that
> > /proc/sys/kernel/file-max contains the number of open files and if
> > you want to increase the do: "echo 4096 > /proc/sys/kernel/file-max"
> > to increase the allowd open files to 4096.
> 
> If they really give that path, they're wrong:

No, just obsolete, it *used* to be there, and on Raq2's that's where it
still is cause they have an old kernel :) 

[admin admin]$ cat /proc/sys/kernel/file-max 
1024


> 
> [root@alpha /root]# find / -name file-max
> /proc/sys/fs/file-max

that's cheating ;0

> It's in /proc/sys/fs/file-max, both on my RaQ3i and on my generic RH
> Linux 7 boxes.

Because someone didn't read the POSIX spec the first time ;0

> -rw-r--r--   1 root     root            0 Feb 16 16:11 file-max
> 
> Note that the "date" of the file is also some kind of code; it's the
> same on both my RaQ3i and on all my Red Hat Linux 7 servers.

Um, it's the current time (Default for all entries in /proc where the
timestamp has no special meaning)

What i don't know is if it actually works on that kernel, some of the
early /proc stuff was read/write but not connected to anything...

gsh