Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 beta 3/9/83; site mot.UUCP Path: utzoo!linus!philabs!cmcl2!seismo!hao!noao!terak!asuvax!mot!fred From: fred@mot.UUCP (Fred Christiansen) Newsgroups: net.unix-wizards Subject: Re: sticky bits ? Message-ID: <102@mot.UUCP> Date: Fri, 15-Feb-85 11:51:57 EST Article-I.D.: mot.102 Posted: Fri Feb 15 11:51:57 1985 Date-Received: Wed, 20-Feb-85 04:52:52 EST References: <344@byucsa.UUCP> Organization: Motorola Microsystems, Phoenix AZ Lines: 25 (our environment: System V Release 2 on VAX and 68000-based systems) Setting the sticky bit causes the loadable image of a program to go to swap on its first invocation and stay there, even after the program terminates execution. This speeds up the loading of subsequent invocations of the same program. This is handy for commonly invoked programs. While benign, it is of little use to set the sticky bit on a program that will be nearly continuously in use (such as init(1m), getty(1), or sh(1)) since, by the nature of its usage, it is normally in this "state" anyhow. The recommendation of the SysV Administrator's manual is to run the system activity package and observe the 20 or so most commonly invoked programs, then set the sticky bit on these. The caveat here, tho, is to scale that number (20) up or down depending on the amount of swap space allocated. (We had one panicking customer call for help when he kept running out of swap space. Turns out he was filling up his swap space by having the sticky bit set on too many programs.) -- ------------------------------------------------------------------------------- "Should any of your I.M. Forces be caught or killed, the secretary will disavow any knowledge of your actions. This tape will self-destruct in five seconds." << Replace this line with your favorite disclaimer.>> ------------------------------------------------------------------------------- Fred Christiansen, Networking Software, Motorola Microsystems, Tempe, AZ 85282 {allegra,ihnp4}!sftig!mot!fred {ihnp4,seismo}!ut-sally!oakhill!mot!fred {ihnp4,amdahl}!drivax!mot!fred ucbvax!arizona!asuvax!mot!fred