Koozali.org: home of the SME Server
Legacy Forums => General Discussion (Legacy) => Topic started by: David Woolley on October 08, 2003, 12:12:17 AM
-
Author: Grub
Date: 02-10-02 03:08
To raise the maximum file handles 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
This seems to answer yes to my question "Can e-smith serve 64,000 files to a handful of LAN users?"
But I dont understand how to implement the suggested commands. I dont understand the terms "file handles" and "open i-nodes".
Would someone please help with a step by step (for sme v5.5 or 5.6)
How can I calculate the optimum amount of RAM or other system resources to support serving these large quantities of files?
Thanks for your help
David
-
I use these commands to change the amount of file descriptors for squid. I have the commands added to the /etc/init.d/squid file. I added them right after the start command in this file. The commands I use are:
echo 65526 > /proc/sys/fs/file-max
ulimit -HSn 65536
If you are using them for smb, add the commands into the smbd init file.
hope this helps & good luck
Marco
-
Many thanks Marco. Ill give it a try
David