open files (was Re: Virtual Hosting)

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: GeorgeToftgeorge@georgetoft.com
Date:  
Subject: open files (was Re: Virtual Hosting)
Thanks for the link.

So if I issue the cat command as described, and compare that against 
a ulimit command, I get the following discrepancy:
[georgetoft@biff georgetoft]$ ulimit -a | grep files
open files                  1024
[georgetoft@biff georgetoft]$ cat /proc/sys/fs/file-max
4096
[georgetoft@biff georgetoft]$


The number given by ulimit is the one that takes effect (243 virtual
hosts * 4 log files per host = 979, plus a few other open files for
mail, logs, login shells, etc is pretty close to 1024), so I'm
wondering what effect /proc/sys/fs/file-max has. The write up you
pointed me to seems to conflict with what I observed.

Any clarification would be appreciated.

George


Kevin Buettner wrote:
>
> On Jan 7, 9:13pm, George Toft wrote:
>
> > > Have you looked at /proc/sys/fs/file-nr and /proc/sys/fs/file-max? That
> > > should allow you to have more, right? See Kevin Buettner's post about them
> > > from a few months ago.
> >
> > [...] Since I only joined three months ago, I missed it.
>
> See...
>
> http://lists.plug.phoenix.az.us/pipermail/plug-discuss/2000-September/005501.html
>
> Kevin
>
> ________________________________________________
> See http://PLUG.phoenix.az.us/navigator-mail.shtml if your mail doesn't post to the list quickly and you use Netscape to write mail.
>
> Plug-discuss mailing list -
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss