From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,76a4168747368bf X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1992-01-02 09:11:34 PST Path: sparky!uunet!mcsun!unido!uni-koeln!IKP.Uni-Koeln.DE!se From: se@IKP.Uni-Koeln.DE (Stefan Esser) Newsgroups: comp.sys.dec Subject: Re: Sticky bit? Was: Undump for DECstations? Message-ID: <1992Jan2.170241.178432@rrz.uni-koeln.de> Date: 2 Jan 92 17:02:41 GMT References: <1991Dec31.030750.19086@mtholyoke.edu> <1991Dec31.194650.9923@cis.umassd.edu> <1991Dec31.223513.1961@crl.dec.com> Sender: news@rrz.uni-koeln.de (Usenet News System) Organization: Institute of Nuclear Physics, University of Cologne, Germany In article <1991Dec31.223513.1961@crl.dec.com>, treese@crl.dec.com (Win Treese) writes: |> I wouldn't expect it to make much difference. ULTRIX, like the BSD |> system it is derived from, keeps program text pages around in memory |> until it actually needs to reclaim the memory. Hence, if you're using |> perl a lot, it will probably be in memory. If it isn't, something |> else needed the memory, and the hint of the sticky bit doesn't really |> make any difference. BSD used to swap out a binary on exit, and kept it available for paging in at a later time. This was considered reasonable, when memory was small, disks were many and a network was nonexistent. With fewer disks, larger memories (and especially network swap) this became a bad strategie and was dropped from several (all ?) implementations. Thus the sticky bit makes a difference. The binaries are swapped out after termination and can be paged in from several drives in parallel thereafter. But it also means, that you need a higher number of texts configured into your kernel and a higher amount of swap. We have a DEC 5000/200 with 4 1GB SCSI drives and see improved startup time after setting the sticky bit on often used executables. Our programs often operate on data much larger than real memory (72MB), and we have no big chance of finding left over pages from earlier executions of the same binary. If you have many swap partitions and startup times tend to be long under heavy load, setting the sticky bit may well be worth the try. It is not too useful for binaries present in memory at all times anyway (like /bin/sh), but may well be a good idea for perl (and /bin/cc and all the compiler passes, as, ld, ...). But don't try it on more executables than your kernel has text segments defined. It will make your system die after some time ... Stefan -- Stefan Esser, Institute of Nuclear Physics, University of Cologne, Germany se@IKP.Uni-Koeln.DE [134.95.192.50]