> -----Original Message-----
> From: James Montz [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, November 15, 2000 12:06 PM
> To: [EMAIL PROTECTED]
> Subject: Keeping file-max setting?
> 
> 
> What do I need to do so that the system quites over-writing
> /proc/sys/fs/file-max with the default of 4096.
> 
> I have manually set my file-max and inode-max, but after 
> every reboot, both
> value revert to default.  Is there an init script that is 
> re-writing these
> values?
> 
> Thanks in advance!
> 
> ____________________
> James C. Montz
> Systems Engineer
> Northwest Internet Services
> 

Hi, 
You can have them reset every boot by putting the following statements in
your /etc/rc.d/rc.local
echo "32768" > /proc/sys/fs/file-max
echo "8192" >/proc/sys/fs/inode-max

Alternatively (for 6.2+), in /etc/sysctl.conf add the following
# Improve the number of inodes opened
fs.inode-max = 32768
# Improve the number of open files
fs.file-max = 8192

Of course, use your preferred max settings.


John MacLean
CAE Ltd.
Instructor Operator Systems / Dept 55
Tel: (514) 341-2000 x2460
Fax: (514) 340-5496



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to