Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: se@IKP.Uni-Koeln.DE (Stefan Esser)
Subject: Re: Sticky bit? Was: Undump for DECstations?
Date: 2 Jan 92 17:02:41 GMT	[thread overview]
Message-ID: <1992Jan2.170241.178432@rrz.uni-koeln.de> (raw)
In-Reply-To: 1991Dec31.223513.1961@crl.dec.com

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]


      reply	other threads:[~1992-01-02 17:02 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1991-12-31  3:07 Undump for DECstations? Jurgen Botz
1991-12-31 14:07 ` Frank Wortner
1991-12-31 19:46 ` Sticky bit? Was: " Michael Stoodt
1991-12-31 22:13   ` Mike Iglesias
1991-12-31 22:35     ` Win Treese
1992-01-02 17:02       ` Stefan Esser [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox