Koozali.org: home of the SME Server

URGENT: max open files

Uwe

URGENT: max open files
« on: February 08, 2002, 07:08:42 AM »
Checking the log.smb file I see that Samba is requesting 10000 files and getting 1014.  As I have a hungry DOS app running on Windows clients I need more than 1014.  How can I adjust this parameter to actually get 10000 file handles.

Grub

Re: URGENT: max open files
« Reply #1 on: February 10, 2002, 11:08:33 AM »
To raise the maximum file hanles and open-inodes the kernel will accept:

echo "32768" > /proc/sys/fs/file-max
echo "65536" > /proc/sys/fs/inode-max

somewhere in your startup.

To raise the number of handles per process,  run the below before starting
smbd/nmbd to let them have up to 10,000 file handles.

ulimit -Hn 10240
ulimit -Sn 10240

ref.
http://lists.samba.org/pipermail/samba/2000-December/052609.html