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

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



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:

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

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

Where did you get the impression the default is 1024?  Here's what I
get:

[root@alpha fs]# cat file-max
4096

Sure looks like it's 4096 to me.

You do realize that these aren't really files, right?  They're viewports
into the internals of the operating system.

I'm not sure you can change it, but I'm heartened by the directory
attributes for the file:

-rw-r--r--   1 root     root            0 Feb 16 16:11 file-max

which seem to indicate that root has write permissions.

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.

If you try it, be sure to let the list know your results.

And if you do make the change you'll have to make it in
/etc/rc.d/rc.local as well, as it needs to be made each time you boot
the system.

Thanks.

Jeff
-- 
Jeff Lasman <jblists@xxxxxxxxxxxxx>
nobaloney.net
P. O. Box 52672
Riverside, CA  92517
voice: (909) 787-8589  *  fax: (909) 782-0205