Path: utzoo!mnetor!uunet!husc6!purdue!umd5!mimsy!chris From: chris@mimsy.UUCP (Chris Torek) Newsgroups: comp.unix.questions Subject: Re: Sharable executables -- ambiguous documentation Message-ID: <10156@mimsy.UUCP> Date: 13 Jan 88 02:18:52 GMT References: <561@acornrc.UUCP> Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742 Lines: 31 Keywords: ld(1), chmod(2), executables In article <561@acornrc.UUCP> bob@acornrc.UUCP (Bob Weissman) writes: >Vax running 4.2bsd. (4.2!?) >ld(1) indicates that the default ... is ... as if the -z flag had >been specified ... [and that] -n ... produces sharable, preloaded >executables. All true. >But the man page for chmod(2), in its brief discussion of the sticky bit >(mode 01000), says that the default is for executables to be sharable. Also true. Somewhere, if you look hard enough (possibly including at the source code for the kernel), you can find that `-z' creates a demand loaded shared text image that is run by paging in the first few pages, then paging in the rest of the pages on demand, while `-n' produces a shared text image that run by loading the entire image, then paging in only pages that are later paged out. Hence `preloaded' means only that when run, the entire text image is read. >Will my system's performance improve if I relink the most heavily used >programs, like sh, csh, vi, and emacs, with the -n switch? Probably not, but all depends on your configuration. -- In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163) Domain: chris@mimsy.umd.edu Path: uunet!mimsy!chris