Operating System Hacks 

To fix limited number of mounts, edit /usr/include/linux/fs.h

#define NR_SUPER 256

Increase max number of entries cashed in /usr/include/linux/nfs_fs.h

#define NFS_LOOKUP_CACHE_SIZE 256

Then recompile kernel.  After this, add the following lines to your
file /etc/rc.d/rc.sysinit

echo 32768 > /proc/sys/kernel/inode-max
echo 16384 > /proc/sys/kernel/file-max


To fix the problem with the number of rsh's that can be started,
change the line in /etc/inetd.conf to read

shell stream tcp nowait.511 root /usr/sbin/tcpd in.rshd

also recompile /usr/src/redhat/netkit-base/inetd/inetd.c and change

RETRYTIME (60*10)

to

RETRYTIME (10)



To change the default hard limit for stack size for all users,
change the following line in /usr/src/linux/include/linux/sched.h:

#define _STK_LIM        (8*1024*1024)

to

#define _STK_LIM        (64*1024*1024)

Then recompile the kernel.

Obviously, this creates a default hard limit of 64MB...the value
can be changed to whatever one desires/needs.