9fans archive / 1996 / 03 / 55 /    prev next

From: forsyth@pla... forsyth@pla...
Subject: File Server memory...
Date: Sun, 17 Mar 1996 07:40:47 -0500

if you are running a file server on a machine with less than (say) 32mbytes,
you might find it worthwhile making the following change to /sys/src/fs/port/main.c:

currently:
	conf.nfile = 30000;

i use

	if (conf.mem < 32*1024*1024)
		conf.nfile = 15000;
	else
		conf.nfile = 30000;

you could reduce nfile still further if necessary.  this reduces the number
of simultaneously open files, but increases the memory available for buffers etc.