Max open files....

Jeremy Allison jallison at whistle.com
Sat Apr 18 01:11:24 GMT 1998


Sorry to rear this one's ugly head again but....

I still want to parameterize MAX_OPEN_FILES and
malloc it on startup.

I *know* it will crash some UNIXs (who shall remain
nameless :-) if it gets set too high.

It should be one of those "don't screw with this
unless you know what you're doing" parameters
and clearly labeled as such.

In my talk at BayLisa last night, someone talked
about getting Samba to run with ClearCase by
setting MAX_OPEN_FILES to 2000 and re-compiling.

This got me thinking - Samba is now becoming a 
viable alternative to NT - and many people get
their Samba distribution via rpm or other compiled
binary mechanism.

Now you could argue that the people who can't
re-compile are exactly the sort of people who
should be allowed to change MAX_OPEN_FILES :-)
but I think that's really intellectual snobbery.

There are many situations where you have a
binary package, but no compiler (thanks Sun :-)
and you need to tweak this.

I know we'll need to change it if we get the
file idling mechanism working, but that's sometime
in the future.

What do you think ?

Cheers,

	Jeremy.

-- 
--------------------------------------------------------
Buying an operating system without source is like buying
a self-assembly Space Shuttle with no instructions.
--------------------------------------------------------


More information about the samba-technical mailing list