From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <5e546d13de0fd673af50920b02eb1df5.axp-list@archive.invalid> X-Archive-Original-Message-ID: <199711062057.VAA24641@martian.ping.de> Date: Thu, 6 Nov 1997 23:55:44 -0900 (AKST) From: Christopher E. Brown Subject: Re: echo my_max > /proc/sys/kernel/file-max - safe? In-Reply-To: <199711070241.VAA14977@michael.webdevelop.com> On Thu, 6 Nov 1997, Steven Kokinos wrote: > >A search in some newsgroups and mailinglist-archives found suggestions > >to "echo my_max > /proc/sys/kernel/file-max" in some rc-file. > > > >Is this in your opinion a Safe Thing To Do [tm]? > > Absolutely, this is part of what we modify on all kernels, both intel and > alpha. The standard open files is set *very* conservatively and can be > much higher without causing any particular difficulty, and in fact cleans > up several problems, especially when using a busy web server in > conjunction with databases such as MySQL, or msql. I do this to all my system, otherwise I run out on many of em. Only problem is the per user file limit (for non root users) is hardcoded, and is an issue for non-root servers (httpd, mysqld, etc). I missed the start of this so am not shure if it has been said but.. When you increase file-max you should also increase inode-max. If you increase file-max by a factor of 3 you should also do the same with inode-max, otherwise you may max out allowed inodes before reaching you file limit. ---------------------------------------------------------------------------- Christopher E. Brown (CB421) +(907) 357-5680 We are Pentium of Borg. Division is futile. You will be approximated. ---------------------------------------------------------------------------- -- To unsubscribe: send e-mail to axp-list-request@redhat.com with 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com