Hi ,

To increase the number of file descriptors on Redhat 6.x add this to 
then end of /etc/rc.d/rc.local .

# increase max files
echo "32768" > /proc/sys/fs/file-max
# increase max inodes
echo "131072" > /proc/sys/fs/inode-max

Adjust the numbers to suit your install. You can also set the /proc 
values on the fly.

To see how many files and inodes are in use

cat /proc/sys/fs/file-nr
cat /proc/sys/fs/inode-nr

It gets a bit more complex than this as some programs set there 
maximum file descriptors at compile time ( eg squid) , dont think 
qmail falls into this category. You need to tweak some kernel include 
files for these ones /usr/include/linux/limits.h
/usr/include/linux/tasks.h

Regards
Simon.

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, 5 September 2000 5:46 
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: FW: Limiting qmail to save OS
> 
> 
> hello all
> 
> frequently (about 2 times a month) the file limits are being 
> exceeded by
> qmail haveing to many files open.  The box only has qmail/vpopmail 
and
> pop3 running on it.
> 
> I have traced the 'failure' to 2 messages with 1053 
> reciepients listed.
> 
> Evidently there is no way I can find to increase the 1024 
> open file limit
> on my 2.2.12 Red Hat box.
> 
> How do you control the incoming mail as to not force the 
> system to error
> out because of not open file resources?
> 
> Why dose qmail itself keep accepting SMTP connections (and having to
> open a file to dump the mail to) when it must be getting an 
> error about no
> more open handles available???
> 
> Is anyone else runnng into this?
> 
> Paul Farber
> Farber Technology
> [EMAIL PROTECTED]
> Ph  570-628-5303
> Fax 570-628-5545
> 
> 

Reply via email to