Sticky bit -- To set or not to set.

Stan Friesen sarima at gryphon.CTS.COM
Mon Apr 25 09:10:22 AEST 1988


In article <13085 at brl-adm.ARPA> "oread::barbanis"@coins.cs.umass.edu writes:
>
>Is there any reason at all to have the sticky bit on in an executable?
>Or, to put it differently, under what circumstances should it be set?
>(circumstances such as program size, hardware/OS, program usage
>pattern, etc.)
>Unless I've missed something, only the ex/vi family editors have
>the sticky bit on, on both our Suns and Vaxen.  Why is this A Good Thing
>(or is it A Good Thing at all?)
>
	The sticky bit should be set *only* for very heavily used programs
that are not in continuous use. It is intended to help reduce the startup
overhead of major system utilities, like vi, especially moderately large ones.
WARNING: setting the sticky bit uses up swap space and RAM, so make sure you
have enough of both to handle ALL sticky programs plus any normal user program
mix that you can foresee. Thus on most systems only vi/ex and perhaps the
shells need or should have the sticky bit set. On some turnkey systems it
might be useful to make the main user application sticky as well.
-- 
Sarima Carandolandion			sarima at gryphon.CTS.COM
aka Stanley Friesen			rutgers!marque!gryphon!sarima
					Sherman Oaks, CA



More information about the Comp.unix.wizards mailing list